SConscript 545 B

12345678910111213141516171819
  1. import os
  2. from building import *
  3. # The set of source files associated with this SConscript file.
  4. src = Glob('*.cc') + Glob('micro_features/*.cc')
  5. cwd = GetCurrentDir()
  6. root = str(Dir('#'))
  7. packages = os.path.join(root, 'packages')
  8. file_list = os.listdir(packages)
  9. for f in file_list:
  10. if(f.split('-')[0] == 'TensorflowLiteMicro'):
  11. tflite = os.path.join(packages, f)
  12. break
  13. CPPPATH = [cwd, tflite]
  14. group = DefineGroup('lite', src, depend = ['PKG_USING_TENSORFLOWLITEMICRO_AUDIO_EXAMPLE'], CPPPATH = CPPPATH)
  15. Return('group')