SConscript 969 B

12345678910111213141516171819202122232425262728293031
  1. from building import *
  2. import rtconfig
  3. # get current directory
  4. cwd = GetCurrentDir()
  5. # The set of source files associated with this SConscript file.
  6. src = Glob('Arm-2D/Library/Source/*.c')
  7. src += Glob('Arm-2D/Helper/Source/*.c')
  8. src += Glob('Arm-2D/Lcdprintf/*.c')
  9. if GetDepend('PKG_ARM_2D_USE_EXAMPLE_BASIC'):
  10. src += Glob('example/example_basic.c')
  11. if GetDepend('PKG_ARM_2D_USE_EXAMPLE_COMPLEX'):
  12. src += Glob('example/example_complex.c')
  13. src += Glob('example/array.c')
  14. path = [cwd + '/Arm-2D/Library/Include']
  15. path += [cwd + '/Arm-2D/Helper/Include']
  16. path += [cwd + '/Arm-2D/Lcdprintf']
  17. path += [cwd + '/example']
  18. LOCAL_CCFLAGS = ''
  19. CPPDEFINES = []
  20. if GetDepend('PKG_ARM_2D_USE_ANTI_ALIAS_TRANSFORM'):
  21. CPPDEFINES += ['__ARM_2D_HAS_ANTI_ALIAS_TRANSFORM__=1']
  22. group = DefineGroup('Arm-2D', src, depend = ['PKG_USING_ARM_2D'], CPPPATH = path, CPPDEFINES = CPPDEFINES, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
  23. Return('group')