-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathbuild_examples.py
More file actions
27 lines (21 loc) · 836 Bytes
/
Copy pathbuild_examples.py
File metadata and controls
27 lines (21 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env python3
from dependency_build import *
def build_examples():
windows = True
if os.name != "nt":
windows = False
configure = "cmake -Bbuild -S. -DBUILD_TESTS=OFF"
build = "cmake --build build/ -j 8 --config RelWithDebInfo"
if not windows:
configure = "cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTS=OFF"
build = "cmake --build build/ -j 8"
configure_build = configure + " && " + build
os.system(configure_build)
if __name__ == "__main__":
parser = argparse.ArgumentParser(prog='Stratus Engine Dependency + Examples Build')
parser.add_argument('-a', '--assimp',
action='store_true',
default=False)
args = parser.parse_args()
build_dependencies(args.assimp)
build_examples()