From f3c4c419c8d0541fd71d2d49edf94e35241d6a65 Mon Sep 17 00:00:00 2001 From: "bernard.xiong@gmail.com" Date: Sun, 21 Nov 2010 02:04:54 +0000 Subject: [PATCH] update ftk building script. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1077 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/external/ftk/SConscript | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/components/external/ftk/SConscript b/components/external/ftk/SConscript index 0c125061c6..3bb294871a 100644 --- a/components/external/ftk/SConscript +++ b/components/external/ftk/SConscript @@ -1,7 +1,18 @@ # for module compiling import os +from building import * Import('RTT_ROOT') -objs = SConscript('ftk/src/os/rt-thread/SConscript') +if os.path.isfile(os.path.join(RTT_ROOT, 'components', 'external', 'ftk', + 'ftk/src/os/rt-thread/SConscript')): + objs = SConscript('ftk/src/os/rt-thread/SConscript') +else: + if GetDepend('RT_USING_FTK'): + print '================ERROR============================' + print 'Please get ftk file and put them under ftk folder' + print '=================================================' + exit(0) + + objs = [] Return('objs') -- GitLab