From 02607c85ace5d96766fc0d01e4b05cad399130b7 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Mon, 5 Jun 2017 17:36:45 +0800 Subject: [GUI Engine] change directory for image and font. --- components/gui/SConscript | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'components/gui/SConscript') diff --git a/components/gui/SConscript b/components/gui/SConscript index fcf0ea044e..1b90649151 100644 --- a/components/gui/SConscript +++ b/components/gui/SConscript @@ -47,6 +47,14 @@ src/window.c ''') CPPPATH = [cwd + '/include'] -group = DefineGroup('GUIEngine', src, depend = ['RT_USING_GUIENGINE'], CPPPATH = CPPPATH) +group = [] +if GetDepend('RT_USING_GUIENGINE'): + group = DefineGroup('GUIEngine', src, depend = ['RT_USING_GUIENGINE'], CPPPATH = CPPPATH) + + 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')) Return('group') -- cgit v1.3.1