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.
Windows redistributable editor build with android deployment
- Loading branch information
1 parent
80e9a3c
commit 732c1df
Showing
26 changed files
with
936 additions
and
831 deletions.
There are no files selected for viewing
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
File renamed without changes.
File renamed without changes.
0
Docs/gendocs.sh → Build/Docs/gendocs.sh
100755 → 100644
File renamed without changes.
File renamed without changes.
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,48 @@ | ||
var fs = require('fs-extra'); | ||
var path = require("path"); | ||
var host = require("./Host"); | ||
var atomicRoot = host.atomicRoot; | ||
|
||
var buildDir = host.artifactsRoot + "Build/Android/"; | ||
var editorAppFolder = host.artifactsRoot + "AtomicEditor/"; | ||
|
||
namespace('build', function() { | ||
|
||
task('android_player', ["build:atomiceditor"], { | ||
async: true | ||
}, function() { | ||
|
||
// Clean build | ||
common.cleanCreateDir(buildDir); | ||
|
||
process.chdir(buildDir); | ||
|
||
var cmds = []; | ||
|
||
// Generate bindings for each script package | ||
var scriptPackages = ["Atomic", "AtomicPlayer"]; | ||
var bindCmd = host.atomicTool + " bind \"" + atomicRoot + "\" "; | ||
|
||
for (var i in scriptPackages) { | ||
cmds.push(bindCmd + "Script/Packages/" + scriptPackages[i] + "/ ANDROID") | ||
} | ||
|
||
// Build the Android Player | ||
cmds.push(atomicRoot + "Build/Scripts/Windows/CompileAndroid.bat"); | ||
|
||
jake.exec(cmds, function() { | ||
|
||
// Install Deployment | ||
fs.copySync(buildDir + "Source/AtomicPlayer/Application/libAtomicPlayer.so", | ||
editorAppFolder + "Resources/ToolData/Deployment/Android/libs/armeabi-v7a/libAtomicPlayer.so"); | ||
|
||
complete(); | ||
|
||
}, { | ||
printStdout: true, | ||
breakOnError : false | ||
}); | ||
|
||
}); | ||
|
||
}); // end of build namespace |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
var fs = require('fs-extra'); | ||
var path = require("path"); | ||
var host = require("./Host"); | ||
var atomicRoot = host.atomicRoot; | ||
|
||
var buildDir = host.artifactsRoot + "Build/Windows/"; | ||
var editorAppFolder = host.artifactsRoot + "AtomicEditor/"; | ||
|
||
namespace('build', function() { | ||
|
||
task('atomiceditor', { | ||
async: true | ||
}, function() { | ||
|
||
// Clean build | ||
common.cleanCreateDir(buildDir); | ||
common.cleanCreateDir(editorAppFolder); | ||
|
||
process.chdir(buildDir); | ||
|
||
var cmds = []; | ||
|
||
// Build the AtomicTool | ||
cmds.push(atomicRoot + "Build/Scripts/Windows/CompileAtomicTool.bat"); | ||
|
||
// Generate bindings for each script package | ||
|
||
var scriptPackages = host.getScriptPackages(); | ||
var bindCmd = host.atomicTool + " bind \"" + atomicRoot + "\" "; | ||
|
||
for (var i in scriptPackages) { | ||
cmds.push(bindCmd + "Script/Packages/" + scriptPackages[i] + "/ WINDOWS") | ||
} | ||
|
||
// Build the AtomicEditor | ||
cmds.push(atomicRoot + "Build/Scripts/Windows/CompileAtomicEditor.bat"); | ||
|
||
jake.exec(cmds, function() { | ||
|
||
// Copy the Editor binaries | ||
fs.copySync(buildDir + "Source/AtomicEditor/Release/AtomicEditor.exe", | ||
host.artifactsRoot + "AtomicEditor/AtomicEditor.exe"); | ||
fs.copySync(buildDir + "Source/AtomicEditor/Release/D3DCompiler_47.dll", | ||
host.artifactsRoot + "AtomicEditor/D3DCompiler_47.dll"); | ||
|
||
// We need some resources to run | ||
fs.copySync(atomicRoot + "Resources/CoreData", | ||
editorAppFolder + "Resources/CoreData"); | ||
|
||
fs.copySync(atomicRoot + "Resources/EditorData", | ||
editorAppFolder + "Resources/EditorData"); | ||
|
||
fs.copySync(atomicRoot + "Resources/PlayerData", | ||
editorAppFolder + "Resources/PlayerData"); | ||
|
||
fs.copySync(atomicRoot + "Data/AtomicEditor", | ||
editorAppFolder + "Resources/ToolData"); | ||
|
||
complete(); | ||
|
||
}, { | ||
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
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
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,44 +1,5 @@ | ||
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/Windows/"; | ||
|
||
var atomicToolBinary = buildDir + "Source/AtomicTool/Release/AtomicTool.exe"; | ||
|
||
namespace('build', function() { | ||
|
||
task('atomic', { | ||
async: true | ||
}, function() { | ||
|
||
common.cleanCreateDir(buildDir); | ||
|
||
process.chdir(buildDir); | ||
|
||
var bindCmd = atomicToolBinary + " bind \"" + atomicRoot + "\" "; | ||
|
||
var cmds = [ | ||
atomicRoot + "/Build/Scripts/Windows/CompileAtomicTool.bat", | ||
bindCmd + "Script/Packages/Atomic/ WINDOWS", | ||
bindCmd + "Script/Packages/AtomicPlayer/ WINDOWS", | ||
bindCmd + "Script/Packages/ToolCore/ WINDOWS", | ||
bindCmd + "Script/Packages/Editor/ WINDOWS", | ||
bindCmd + "Script/Packages/AtomicNET/ WINDOWS", | ||
atomicRoot + "/Build/Scripts/Windows/CompileAtomic.bat", | ||
] | ||
|
||
jake.exec(cmds, function() { | ||
|
||
complete(); | ||
|
||
}, { | ||
printStdout: true | ||
}); | ||
|
||
}); | ||
|
||
}); // end of build namespace | ||
exports = module.exports = common; | ||
exports.atomicTool = exports.artifactsRoot + "Build/AtomicTool/AtomicTool.exe"; |
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,3 @@ | ||
SET PATH=%ANDROID_NDK%\prebuilt\windows\bin\;%PATH% | ||
cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=../../../CMake/Toolchains/android.toolchain.cmake -DCMAKE_BUILD_TYPE=Release ../../../ | ||
%ANDROID_NDK%\prebuilt\windows\bin\make.exe -j4 |
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
call "%VS140COMNTOOLS%..\..\VC\bin\amd64\vcvars64.bat" | ||
cmake ..\\..\\..\\ -DATOMIC_DEV_BUILD=0 -G "Visual Studio 14 2015 Win64" | ||
msbuild /m Atomic.sln /t:AtomicEditor /t:AtomicPlayer /p:Configuration=Release /p:Platform=x64 |
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,3 +1,3 @@ | ||
call "%VS140COMNTOOLS%..\..\VC\bin\amd64\vcvars64.bat" | ||
cmake ..\\..\\..\\ -DATOMIC_DEV_BUILD=1 -G "Visual Studio 14 2015 Win64" | ||
cmake ..\\..\\..\\ -DATOMIC_DEV_BUILD=0 -G "Visual Studio 14 2015 Win64" | ||
msbuild /m Atomic.sln /t:AtomicTool /p:Configuration=Release /p:Platform=x64 |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
Build\Windows\node\node.exe Build\node_modules\jake\bin\cli.js -f ./Build/Scripts/Bootstrap.js build:atomiceditor |
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 -f ./Build/Scripts/Bootstrap.js build:atomic | ||
./Build/Mac/node/node ./Build/node_modules/jake/bin/cli.js -f ./Build/Scripts/Bootstrap.js build:atomiceditor |
Empty file.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.