-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSCsub
More file actions
30 lines (21 loc) · 947 Bytes
/
SCsub
File metadata and controls
30 lines (21 loc) · 947 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
28
29
30
#!/usr/bin/env python
from misc.utility.scons_hints import *
from misc.utility.color import print_info
Import('env')
Import("env_modules")
module_env = env_modules.Clone()
if ARGUMENTS.get('ynet', 'no') == 'yes':
module_env.Append(CPPDEFINES=["YNET"])
if ARGUMENTS.get('fmodgodot', 'yes') == 'no':
module_env.Append(CPPDEFINES=["NO_FMOD"])
print_info("Yarn Engine building with Dummy FMOD Objects")
if ARGUMENTS.get('ygodot', 'yes') == 'yes':
module_env.Append(CPPDEFINES=["YGODOT"])
print_info("Yarn Engine building with YGodot flag")
if env.editor_build:
print_info("Yarn Engine Editor Build")
module_env.add_source_files(env.modules_sources, "./editor/*.cpp")
module_env.add_source_files(env.modules_sources, "importers/*.cpp")
module_env.add_source_files(env.modules_sources, "*.cpp")
if ARGUMENTS.get('fmodgodot', 'yes') == 'no':
module_env.add_source_files(env.modules_sources, "disabled_fmod/*.cpp")