SConscript 720 B

123456789101112131415161718192021222324252627
  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('*.c')
  7. src += Glob('libnfc/*.c')
  8. src += Glob('libnfc/drivers/*.c')
  9. src += Glob('libnfc/chips/*.c')
  10. src += Glob('libnfc/buses/*.c')
  11. path = [cwd + '/include']
  12. path += [cwd + '/libnfc']
  13. path += [cwd + '/libnfc/buses']
  14. path += [cwd + '/libnfc/chips']
  15. path += [cwd + '/libnfc/drivers']
  16. if GetDepend('LIBNFC_USING_READ_TAG_EXAMPLE'):
  17. src += Glob('examples/nfc_read_tag.c')
  18. LOCAL_CCFLAGS = ''
  19. group = DefineGroup('libnfc', src, depend = ['PKG_USING_LIBNFC'], CPPPATH = path, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
  20. Return('group')