from building import * import os cwd = GetCurrentDir() group = [] src = Glob('*.c') cc_flages = "" CPPPATH = [cwd] if (GetDepend('AIC_FS_IMAGE_DIR_1')) and "qc_test" in GetConfigValue('AIC_FS_IMAGE_DIR_1').lower(): cc_flages += " -DAIC_LVGL_QC_TEST_DEMO " list = os.listdir(cwd) for d in list: path = os.path.join(cwd, d) if os.path.isfile(os.path.join(path, 'SConscript')): group = group + SConscript(os.path.join(d, 'SConscript')) group = group + DefineGroup('LVGL-port', src, depend = ['AIC_LVGL_DEMO'], CPPPATH = CPPPATH, CFLAGS = cc_flages) Return('group')