Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- Import('env')
- import os
- env_CoregroundsEngine = env.Clone()
- env_CoregroundsEngine.add_source_files(env.modules_sources, "*.cpp") # Add all cpp files to the build
- AddOption('--cg_dir',
- dest='cg_dir',
- type='string',
- nargs=1,
- action='store',
- metavar='DIR',
- help='path to Coregrounds'
- )
- CG_DIR = GetOption('cg_dir')
- if not GetOption('cg_dir'):
- CG_DIR = str(os.environ.get('COREGROUNDS_DIR', ""))
- #print(CG_DIR)
- if not GetOption('help'):
- env_CoregroundsEngine.Append(CPPPATH=[
- CG_DIR + '/Framework/include',
- CG_DIR + '/Serialize/include',
- CG_DIR + '/Utility',
- CG_DIR + '/Dependencies/georithm',
- CG_DIR + '/Dependencies/SimpleLibV2/src',
- CG_DIR + '/Dependencies',
- CG_DIR + '/Dependencies/protobuf/src'
- ])
- env_CoregroundsEngine.Append(LIBPATH=[
- CG_DIR + '/out/build/x64-Debug/Framework'
- ])
- env_CoregroundsEngine.Append(LIBS=[
- 'Framework'
- ])
- env_CoregroundsEngine.Append(CXXFLAGS=['/std:c++17'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement