summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
author[email protected] <[email protected]>2010-11-21 02:04:54 +0000
committer[email protected] <[email protected]>2010-11-21 02:04:54 +0000
commitf3c4c419c8d0541fd71d2d49edf94e35241d6a65 (patch)
treef824a8d8e80cf5703dc6ecb63126ef9114708068 /components
parent71f3490515d574c9e4d1871c5733b66b583c96f0 (diff)
update ftk building script.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1077 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components')
-rw-r--r--components/external/ftk/SConscript13
1 files changed, 12 insertions, 1 deletions
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')