forked from drakeshin/AtomicGameEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58e3a68
commit 80e9a3c
Showing
8 changed files
with
54 additions
and
949 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
var fs = require('fs-extra'); | ||
common = require("./HostCommon"); | ||
|
||
// forward exports | ||
var atomicRoot = exports.atomicRoot = common.atomicRoot; | ||
var artifactsRoot = exports.artifactsRoot = common.artifactsRoot; | ||
exports.cleanCreateDir = common.cleanCreateDir; | ||
|
||
var buildDir = common.artifactsRoot + "Build/Mac/"; | ||
var atomicToolBinary = buildDir + "Source/AtomicTool/Debug/AtomicTool"; | ||
|
||
namespace('build', function() { | ||
|
||
task('atomic', { | ||
async: true | ||
}, function() { | ||
|
||
common.cleanCreateDir(buildDir); | ||
|
||
process.chdir(buildDir); | ||
|
||
var bindCmd = atomicToolBinary + " bind \"" + atomicRoot + "\" "; | ||
|
||
var cmds = [ | ||
"cmake ../../../ -DATOMIC_DEV_BUILD=1 -G Xcode", | ||
"xcodebuild -target AtomicTool -configuration Debug", | ||
bindCmd + "Script/Packages/Atomic/ MACOSX", | ||
bindCmd + "Script/Packages/AtomicPlayer/ MACOSX", | ||
bindCmd + "Script/Packages/ToolCore/ MACOSX", | ||
bindCmd + "Script/Packages/Editor/ MACOSX", | ||
bindCmd + "Script/Packages/AtomicNET/ MACOSX", | ||
atomicRoot + "Build/Mac/node/node " + atomicRoot + "Build/TypeScript/tsc.js -p " + atomicRoot + "./Script", | ||
"cmake ../../../ -DATOMIC_DEV_BUILD=1 -G Xcode", | ||
"xcodebuild -configuration Debug" | ||
] | ||
|
||
jake.exec(cmds, function() { | ||
|
||
fs.copySync(buildDir + "Source/AtomicEditor/Debug/AtomicEditor.app", artifactsRoot + "Bin/AtomicEditor.app"); | ||
|
||
complete(); | ||
|
||
console.log("AtomicEditor built to: " + artifactsRoot + "Bin/AtomicEditor.app"); | ||
|
||
}, { | ||
printStdout: true | ||
}); | ||
|
||
}); | ||
|
||
}); // end of build namespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/sh | ||
./Build/Mac/node/node ./Build/node_modules/jake/bin/cli.js Jakefile package:macosx | ||
./Build/Mac/node/node ./Build/node_modules/jake/bin/cli.js -f ./Build/Scripts/Bootstrap.js build:atomic |
Oops, something went wrong.