X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=SConstruct;h=0ebc436441dffdff7a0837c4dc1b7aa2c6c016c9;hb=ca13f4d1b524dd9c53c7faac9411ac367c6b8482;hp=3ffc00c84aff1566fa7b812f3785495b45994ee1;hpb=61d1cb4bad20c304abe225ad91aaf16175ada8e9;p=platform%2Fupstream%2Fiotivity.git diff --git a/SConstruct b/SConstruct index 3ffc00c..0ebc436 100644 --- a/SConstruct +++ b/SConstruct @@ -1,18 +1,47 @@ +#****************************************************************** +# +# Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved. +# +#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + ## # The main build script # ## +import os # 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') -Import('env') 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//// # @@ -27,11 +56,15 @@ build_dir = env.get('BUILD_DIR') # Build 'resource' sub-project SConscript(build_dir + 'resource/SConscript') -SConscript(build_dir + 'examples/OICMiddle/SConscript') +if target_os not in ['arduino','darwin','ios', 'android']: + SConscript(build_dir + 'examples/OICMiddle/SConscript') # Build 'service' sub-project SConscript(build_dir + 'service/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() @@ -39,3 +72,7 @@ env.PrintTargets() # Print bin upload command line (arduino only) if target_os == 'arduino': env.UploadHelp() + +# to install the generated pc file into custome prefix location +env.UserInstallTargetPCFile('iotivity.pc', 'iotivity.pc') +