Browse Source

Add a parameter to genvs2015 task to enable/disable ATOMIC_DEV_BUILD

Matt Benic 9 years ago
parent
commit
d6b46829c3
2 changed files with 5 additions and 3 deletions
  1. 4 2
      Build/Scripts/BuildWindows.js
  2. 1 1
      Build/Scripts/Windows/GenerateVS2015.bat

+ 4 - 2
Build/Scripts/BuildWindows.js

@@ -69,7 +69,9 @@ namespace('build', function() {
   // Generate a Visual Studio 2015 solution
   // Generate a Visual Studio 2015 solution
   task('genvs2015', {
   task('genvs2015', {
     async: true
     async: true
-  }, function() {
+  }, function(devBuild) {
+    if (devBuild === undefined)
+      devBuild = 1;
 
 
     var slnRoot = path.resolve(atomicRoot, "") + "-VS2015\\";
     var slnRoot = path.resolve(atomicRoot, "") + "-VS2015\\";
 
 
@@ -81,7 +83,7 @@ namespace('build', function() {
 
 
     var cmds = [];
     var cmds = [];
 
 
-    cmds.push(atomicRoot + "Build/Scripts/Windows/GenerateVS2015.bat " + atomicRoot);
+    cmds.push(atomicRoot + "Build/Scripts/Windows/GenerateVS2015.bat " + atomicRoot + " " + devBuild);
 
 
     jake.exec(cmds, function() {
     jake.exec(cmds, function() {
 
 

+ 1 - 1
Build/Scripts/Windows/GenerateVS2015.bat

@@ -1,3 +1,3 @@
 call "%VS140COMNTOOLS%..\..\VC\bin\amd64\vcvars64.bat"
 call "%VS140COMNTOOLS%..\..\VC\bin\amd64\vcvars64.bat"
-cmake %1 -DATOMIC_DEV_BUILD=1 -G "Visual Studio 14 2015 Win64"
+cmake %1 -DATOMIC_DEV_BUILD=%2 -G "Visual Studio 14 2015 Win64"