Browse Source

Adding control for generation documentation file

Josh Engebretson 9 years ago
parent
commit
90c24d20fc

+ 1 - 0
Script/AtomicNET/AtomicNETProject.json

@@ -38,6 +38,7 @@
         },
         {
             "name": "AtomicNET.Desktop",
+            "assemblyDocFile" : true,
             "platforms" : ["desktop"],
             "outputType" : "Library",
             "defineConstants" : ["ATOMIC_DESKTOP"],

+ 14 - 2
Source/ToolCore/NETTools/NETProjectGen.cpp

@@ -73,8 +73,9 @@ namespace ToolCore
     }
 
     NETCSProject::NETCSProject(Context* context, NETProjectGen* projectGen) : NETProjectBase(context, projectGen),
-        androidApplication_(false),
-        playerApplication_(false)
+        genAssemblyDocFile_(false),
+        playerApplication_(false),
+        androidApplication_(false)
     {
 
     }
@@ -418,6 +419,11 @@ namespace ToolCore
         pgroup.CreateChild("ConsolePause").SetValue("false");
         pgroup.CreateChild("AllowUnsafeBlocks").SetValue("true");
 
+        if (genAssemblyDocFile_)
+        {
+            pgroup.CreateChild("DocumentationFile").SetValue(outputPath + assemblyName_ + ".xml");
+        }
+
         if (SupportsDesktop())
         {
             pgroup.CreateChild("DebugType").SetValue(GetIsPCL() ? "pdbonly": "full");
@@ -505,6 +511,11 @@ namespace ToolCore
 
         pgroup.CreateChild("DebugSymbols").SetValue("true");
 
+        if (genAssemblyDocFile_)
+        {
+            pgroup.CreateChild("DocumentationFile").SetValue(outputPath + assemblyName_ + ".xml");
+        }
+
         if (SupportsDesktop())
         {
             pgroup.CreateChild("DebugType").SetValue(GetIsPCL() ? "pdbonly": "full");
@@ -1244,6 +1255,7 @@ namespace ToolCore
 
         androidApplication_ = root["androidApplication"].GetBool();
         playerApplication_ = root["playerApplication"].GetBool();
+        genAssemblyDocFile_ = root["assemblyDocFile"].GetBool();
 
         rootNamespace_ = root["rootNamespace"].GetString();
         assemblyName_ = root["assemblyName"].GetString();

+ 2 - 0
Source/ToolCore/NETTools/NETProjectGen.h

@@ -139,6 +139,8 @@ namespace ToolCore
         String targetFrameworkProfile_;
         Vector<String> sharedReferences_;
 
+        bool genAssemblyDocFile_;
+
         bool playerApplication_;
 
         // Android