projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tizen: Ignore tmp folder as used for local building
[platform/upstream/iotivity.git]
/
SConstruct
diff --git
a/SConstruct
b/SConstruct
index
318541f
..
ac76f39
100644
(file)
--- a/
SConstruct
+++ b/
SConstruct
@@
-22,17
+22,26
@@
# The main build script
#
##
# The main build script
#
##
+import os
# Load common build config
SConscript('build_common/SConscript')
# Load common build config
SConscript('build_common/SConscript')
+Import('env')
+
+if os.environ.get('TERM') != None:
+ env['ENV']['TERM'] = os.environ['TERM']
+
# Load extra options
SConscript('extra_options.scons')
# Load extra options
SConscript('extra_options.scons')
-Import('env')
target_os = env.get('TARGET_OS')
if target_os == 'arduino':
SConscript('arduino.scons')
target_os = env.get('TARGET_OS')
if target_os == 'arduino':
SConscript('arduino.scons')
+
+if target_os == 'android':
+ SConscript('android/android_api/SConscript')
+
# By default, src_dir is current dir, the build_dir is:
# ./out/<target_os>/<target_arch>/<release or debug>/
#
# By default, src_dir is current dir, the build_dir is:
# ./out/<target_os>/<target_arch>/<release or debug>/
#
@@
-47,12
+56,18
@@
build_dir = env.get('BUILD_DIR')
# Build 'resource' sub-project
SConscript(build_dir + 'resource/SConscript')
# Build 'resource' sub-project
SConscript(build_dir + 'resource/SConscript')
-if target_os not in ['arduino','darwin','ios']:
+if target_os not in ['arduino','darwin','ios'
, 'android', 'msys_nt', 'windows'
]:
SConscript(build_dir + 'examples/OICMiddle/SConscript')
# Build 'service' sub-project
SConscript(build_dir + 'service/SConscript')
SConscript(build_dir + 'examples/OICMiddle/SConscript')
# Build 'service' sub-project
SConscript(build_dir + 'service/SConscript')
+# Build "cloud" sub-project
+SConscript(build_dir + 'cloud/SConscript')
+
+# Build "plugin interface" sub-project
+SConscript(build_dir + 'plugins/SConscript')
+
# Append targets information to the help information, to see help info, execute command line:
# $ scon [options] -h
env.PrintTargets()
# Append targets information to the help information, to see help info, execute command line:
# $ scon [options] -h
env.PrintTargets()
@@
-61,3
+76,6
@@
env.PrintTargets()
if target_os == 'arduino':
env.UploadHelp()
if target_os == 'arduino':
env.UploadHelp()
+# to install the generated pc file into custom prefix location
+env.UserInstallTargetPCFile('iotivity.pc', 'iotivity.pc')
+