BuildAtomicNET.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. var fs = require('fs-extra');
  2. var path = require("path");
  3. var host = require("./Host");
  4. var os = require('os');
  5. var atomicRoot = host.atomicRoot;
  6. namespace('build', function() {
  7. task('atomicnet', {
  8. async: true
  9. }, function() {
  10. var options = host.options;
  11. var android = options["with-android"] ? true : false;
  12. var ios = options["with-ios"] ? true : false;
  13. var debug = options["debug"] ? true : false;
  14. var cmds = [];
  15. platforms = "-platform desktop";
  16. if (android)
  17. platforms += " -platform android";
  18. if (ios)
  19. platforms += " -platform ios";
  20. var netCmd = host.atomicTool + " net compile " + atomicRoot + "Script/AtomicNET/AtomicNETProject.json " + platforms + " -config " + (debug ? "Debug" : "Release");
  21. console.log(netCmd);
  22. cmds.push(netCmd);
  23. jake.exec(cmds, function() {
  24. complete();
  25. }, {
  26. printStdout: true,
  27. printStderr: true
  28. });
  29. });
  30. }); // end of build namespace