瀏覽代碼

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()
 path = [cwd + '/inc']
 src  = Glob('src/*.c')
-src += Glob('samples/ppp_sample.c')
+if GetDepend(['PPP_DEVICE_SAMPLE']):
+	src += Glob('samples/ppp_sample.c')
 
 # Air720
 if GetDepend(['PPP_DEVICE_USING_AIR720']):