|
@@ -1,6 +1,7 @@
|
|
|
Import('env')
|
|
|
Import('rtconfig')
|
|
|
Import('RTT_ROOT')
|
|
|
+Import('projects')
|
|
|
|
|
|
common_src = Split("""
|
|
|
common/rtgui_object.c
|
|
@@ -58,11 +59,28 @@ widgets/workbench.c
|
|
|
# The set of source files associated with this SConscript file.
|
|
|
src_local = common_src + server_src + widgets_src
|
|
|
|
|
|
-path = [RTT_ROOT + '/rtgui/include']
|
|
|
-path = path + [RTT_ROOT + '/rgtui/common', RTT_ROOT + '/rtgui/server', RTT_ROOT + '/rtgui/widgets']
|
|
|
-path = path + [RTT_ROOT + '/filesystem/dfs', RTT_ROOT + '/filesystem/dfs/include']
|
|
|
-env.Append(CPPPATH = path)
|
|
|
+path = [RTT_ROOT + '/components/rtgui/include',
|
|
|
+ RTT_ROOT + '/components/rgtui/common',
|
|
|
+ RTT_ROOT + '/components/rtgui/server',
|
|
|
+ RTT_ROOT + '/components/rtgui/widgets']
|
|
|
|
|
|
-obj = env.Object(src_local)
|
|
|
+# group definitions
|
|
|
+group = {}
|
|
|
+group['name'] = 'GUI'
|
|
|
+group['src'] = File(src_local)
|
|
|
+group['CCFLAGS'] = ''
|
|
|
+group['CPPPATH'] = path
|
|
|
+group['CPPDEFINES'] = ''
|
|
|
+group['LINKFLAGS'] = ''
|
|
|
|
|
|
-Return('obj')
|
|
|
+# add group to project list
|
|
|
+projects.append(group)
|
|
|
+
|
|
|
+env.Append(CCFLAGS = group['CCFLAGS'])
|
|
|
+env.Append(CPPPATH = group['CPPPATH'])
|
|
|
+env.Append(CPPDEFINES = group['CPPDEFINES'])
|
|
|
+env.Append(LINKFLAGS = group['LINKFLAGS'])
|
|
|
+
|
|
|
+objs = env.Object(group['src'])
|
|
|
+
|
|
|
+Return('objs')
|