SConscript 958 B

1234567891011121314151617181920212223242526272829
  1. import os
  2. from building import *
  3. cwd = GetCurrentDir()
  4. src = []
  5. path = []
  6. src += Glob('arm-2d-dev/Library/Source/*.c')
  7. src += Glob('arm-2d-dev/Helper/Source/*.c')
  8. src += Glob('arm-2d-dev/examples/common/asset/*.c')
  9. src += Glob('arm-2d-dev/examples/common/benchmark/*.c')
  10. src += Glob('arm-2d-dev/examples/common/controls/*.c')
  11. path += [cwd + '/arm-2d-dev/Library/Include']
  12. path += [cwd + '/arm-2d-dev/Helper/Include']
  13. path += [cwd + '/arm-2d-dev/examples/common/benchmark']
  14. path += [cwd + '/arm-2d-dev/examples/common/controls']
  15. if GetDepend('TINYSQUARE_USING_PIKASCRIPT'):
  16. for root, dirs, files in os.walk(cwd + '/pikascript'):
  17. for dir in dirs:
  18. src += Glob(os.path.join(root,dir,'*.c'))
  19. path += [os.path.join(root,dir)]
  20. os.chdir('pikascript')
  21. os.system(os.getcwd() + '/' + 'rust-msc-latest-win10.exe')
  22. group = DefineGroup('TinySquare', src, depend = ['PKG_USING_TINYSQUARE'], CPPPATH = path)
  23. Return('group')