فهرست منبع

Update SConscript

Do not include the example when not selected.
Jianjia Ma 4 سال پیش
والد
کامیت
db916f765b
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      SConscript

+ 2 - 1
SConscript

@@ -3,7 +3,8 @@ from building import *
 cwd = GetCurrentDir()
 cwd = GetCurrentDir()
 path = [cwd + '/inc']
 path = [cwd + '/inc']
 src  = Glob('src/*.c')
 src  = Glob('src/*.c')
-src += Glob('samples/ppp_sample.c')
+if GetDepend(['PPP_DEVICE_SAMPLE']):
+	src += Glob('samples/ppp_sample.c')
 
 
 # Air720
 # Air720
 if GetDepend(['PPP_DEVICE_USING_AIR720']):
 if GetDepend(['PPP_DEVICE_USING_AIR720']):