Advertisement
DNKpp

Scons

Aug 17th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. Import('env')
  4. import os
  5.  
  6. env_CoregroundsEngine = env.Clone()
  7. env_CoregroundsEngine.add_source_files(env.modules_sources, "*.cpp") # Add all cpp files to the build
  8.  
  9. AddOption('--cg_dir',
  10. dest='cg_dir',
  11. type='string',
  12. nargs=1,
  13. action='store',
  14. metavar='DIR',
  15. help='path to Coregrounds'
  16. )
  17.  
  18. CG_DIR = GetOption('cg_dir')
  19. if not GetOption('cg_dir'):
  20. CG_DIR = str(os.environ.get('COREGROUNDS_DIR', ""))
  21.  
  22. #print(CG_DIR)
  23.  
  24. if not GetOption('help'):
  25. env_CoregroundsEngine.Append(CPPPATH=[
  26. CG_DIR + '/Framework/include',
  27. CG_DIR + '/Serialize/include',
  28. CG_DIR + '/Utility',
  29. CG_DIR + '/Dependencies/georithm',
  30. CG_DIR + '/Dependencies/SimpleLibV2/src',
  31. CG_DIR + '/Dependencies',
  32. CG_DIR + '/Dependencies/protobuf/src'
  33. ])
  34.  
  35. env_CoregroundsEngine.Append(LIBPATH=[
  36. CG_DIR + '/out/build/x64-Debug/Framework'
  37. ])
  38. env_CoregroundsEngine.Append(LIBS=[
  39. 'Framework'
  40. ])
  41.  
  42. env_CoregroundsEngine.Append(CXXFLAGS=['/std:c++17'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement