| 1234567891011121314151617181920212223242526272829 |
- import os
- from building import *
- cwd = GetCurrentDir()
- src = []
- path = []
- src += Glob('arm-2d-dev/Library/Source/*.c')
- src += Glob('arm-2d-dev/Helper/Source/*.c')
- src += Glob('arm-2d-dev/examples/common/asset/*.c')
- src += Glob('arm-2d-dev/examples/common/benchmark/*.c')
- src += Glob('arm-2d-dev/examples/common/controls/*.c')
- path += [cwd + '/arm-2d-dev/Library/Include']
- path += [cwd + '/arm-2d-dev/Helper/Include']
- path += [cwd + '/arm-2d-dev/examples/common/benchmark']
- path += [cwd + '/arm-2d-dev/examples/common/controls']
- if GetDepend('TINYSQUARE_USING_PIKASCRIPT'):
- for root, dirs, files in os.walk(cwd + '/pikascript'):
- for dir in dirs:
- src += Glob(os.path.join(root,dir,'*.c'))
- path += [os.path.join(root,dir)]
- os.chdir('pikascript')
- os.system(os.getcwd() + '/' + 'rust-msc-latest-win10.exe')
- group = DefineGroup('TinySquare', src, depend = ['PKG_USING_TINYSQUARE'], CPPPATH = path)
- Return('group')
|