-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cb6cd: build_all.py: extracted build scripts for each sample
- Loading branch information
1 parent
3d2af96
commit 9e1967e
Showing
4 changed files
with
68 additions
and
36 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
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,19 @@ | ||
#!/usr/bin/env python3 | ||
import sys | ||
sys.path.append('../../..') | ||
from build_all import run, run_per_platform, BUILD_COMPONENTS | ||
sys.path.pop() | ||
|
||
|
||
# build EXE | ||
if 'code' in BUILD_COMPONENTS: | ||
run('jam') | ||
run(['jam', '-f', 'jamfile-test-jolt']) | ||
|
||
# build shaders | ||
if 'shaders' in BUILD_COMPONENTS: | ||
run_per_platform( | ||
cmds_windows = ['compile_game_shaders-dx11.bat', 'compile_game_shaders-metal.bat', 'compile_game_shaders-spirv.bat'], | ||
cmds_macOS = ['./compile_shaders_metal.sh'], | ||
cmds_linux = ['./compile_shaders_spirv.sh'], | ||
cwd='./shaders') |
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,23 @@ | ||
#!/usr/bin/env python3 | ||
import sys | ||
sys.path.append('../../..') | ||
from build_all import run, run_per_platform, DABUILD_CMD, BUILD_COMPONENTS | ||
sys.path.pop() | ||
|
||
|
||
# build EXE | ||
if 'code' in BUILD_COMPONENTS: | ||
run('jam') | ||
|
||
# build shaders | ||
if 'shaders' in BUILD_COMPONENTS: | ||
run_per_platform( | ||
cmds_windows = ['compile_shaders_dx12.bat', 'compile_shaders_dx11.bat', 'compile_shaders_metal.bat', 'compile_shaders_spirv.bat', | ||
'compile_shaders_tools.bat'], | ||
cmds_macOS = ['./compile_shaders_metal.sh', './compile_tool_shaders_metal.sh'], | ||
cmds_linux = ['./compile_shaders_spirv.sh', './compile_tool_shaders_spirv.sh'], | ||
cwd='./shaders') | ||
|
||
# dabuild assets | ||
if 'assets' in BUILD_COMPONENTS: | ||
run(DABUILD_CMD + ['../application.blk'], cwd='../develop') |
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,23 @@ | ||
#!/usr/bin/env python3 | ||
import sys | ||
sys.path.append('../../..') | ||
from build_all import run, run_per_platform, DABUILD_CMD, BUILD_COMPONENTS | ||
sys.path.pop() | ||
|
||
|
||
# build EXE | ||
if 'code' in BUILD_COMPONENTS: | ||
run('jam') | ||
|
||
# build shaders | ||
if 'shaders' in BUILD_COMPONENTS: | ||
run_per_platform( | ||
cmds_windows = ['compile_shaders_dx12.bat', 'compile_shaders_dx11.bat', 'compile_shaders_metal.bat', 'compile_shaders_spirv.bat', | ||
'compile_shaders_tools.bat'], | ||
cmds_macOS = ['./compile_shaders_metal.sh', './compile_tool_shaders_metal.sh'], | ||
cmds_linux = ['./compile_shaders_spirv.sh', './compile_tool_shaders_spirv.sh'], | ||
cwd='./shaders') | ||
|
||
# dabuild assets | ||
if 'assets' in BUILD_COMPONENTS: | ||
run(DABUILD_CMD + ['../application.blk'], cwd='../develop') |