SConscript 544 B

12345678910111213141516171819202122
  1. # RT-Thread building script for FreeType
  2. import os
  3. from building import *
  4. cwd = GetCurrentDir()
  5. list = os.listdir(cwd)
  6. GroupPath = cwd
  7. CPPDEFINES = ['FT2_BUILD_LIBRARY']
  8. src = []
  9. group = []
  10. group = DefineGroup('freetype', src, depend = ['RTGUI_USING_TTF'], CPPDEFINES=CPPDEFINES, GroupPath = GroupPath)
  11. if GetDepend('RTGUI_USING_TTF'):
  12. for d in list:
  13. path = os.path.join(cwd, d)
  14. if os.path.isfile(os.path.join(path, 'SConscript')):
  15. group = group + SConscript(os.path.join(d, 'SConscript'))
  16. Return('group')