فهرست منبع

SConscript update;

yangfasheng 8 سال پیش
والد
کامیت
9b0161b0f6
2فایلهای تغییر یافته به همراه10 افزوده شده و 18 حذف شده
  1. 10 5
      SConscript
  2. 0 13
      include/SConscript

+ 10 - 5
SConscript

@@ -4,13 +4,18 @@ import os
 from building import *
 
 cwd = GetCurrentDir()
-objs = []
+src = []
+CPPPATH = [ cwd + '/include',
+            cwd + '/include/rtgui',
+            cwd + '/include/rtgui/widgets']
+
+objs = DefineGroup('GuiEngine', src, depend = ['PKG_USING_GUIENGINE'], CPPPATH = CPPPATH)
 list = os.listdir(cwd)
 
 if GetDepend('PKG_USING_GUIENGINE'):
-	for d in list:
-		path = os.path.join(cwd, d)
-		if os.path.isfile(os.path.join(path, 'SConscript')):
-			objs = objs + SConscript(os.path.join(d, 'SConscript'))
+    for d in list:
+        path = os.path.join(cwd, d)
+        if os.path.isfile(os.path.join(path, 'SConscript')):
+            objs = objs + SConscript(os.path.join(d, 'SConscript'))
 
 Return('objs')

+ 0 - 13
include/SConscript

@@ -1,13 +0,0 @@
-# RT-Thread building script for Gui Engine
-
-from building import *
-
-cwd = GetCurrentDir()
-src = Glob('*.c') + Glob('*.cpp')
-CPPPATH = [ cwd,
-			cwd + '/rtgui',
-			cwd + '/rtgui/widgets']
-
-group = DefineGroup('GuiEngine', src, depend = [''], CPPPATH = CPPPATH)
-
-Return('group')