SConscript 603 B

123456789101112131415161718192021
  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 = []
  7. #src += Glob(cwd+"/common/src/*.c")
  8. if GetDepend(['PKG_USING_LEVEL_NOR']):
  9. src += Glob(cwd+"/common/src/lx_nor*.c")
  10. if GetDepend(['PKG_USING_LEVEL_NAND']):
  11. src += Glob(cwd+"/common/src/lx_nand*.c")
  12. CPPDEFINES = ['LX_INCLUDE_USER_DEFINE_FILE']
  13. path = [cwd + '/common/inc']
  14. path += [cwd + '/levelx/']
  15. group = DefineGroup('Levelx', src, depend = ['PKG_USING_LEVELX'], CPPDEFINES = CPPDEFINES,CPPPATH = path)
  16. Return('group')