X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=extra_options.scons;h=c8453c61a50e592042b46e5275ddf8f3aec1dc88;hb=refs%2Fheads%2Faccepted%2Ftizen_3.0_wearable;hp=e1280daf95e294c4579874c74469e87dd5cc3971;hpb=07036c2aefc07526a86df698942975286a08a5c8;p=platform%2Fupstream%2Fiotivity.git diff --git a/extra_options.scons b/extra_options.scons index e1280da..c8453c6 100644 --- a/extra_options.scons +++ b/extra_options.scons @@ -1,3 +1,23 @@ +#****************************************************************** +# +# 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. +# +#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + ###################################################################### # This script manages extra build options # @@ -11,55 +31,3 @@ target_os = env.get('TARGET_OS') target_arch = env.get('TARGET_ARCH') src_dir = env.get('SRC_DIR') -# Add 'OIC_UTILS' build option for user to set oic-utilities project path -if target_os not in ['linux', 'darwin', 'arduino']: - default_dir = os.environ.get('OIC_UTILS') - if not default_dir: - default_dir = os.path.abspath(src_dir + '/../oic-utilities') - else: - default_dir = os.path.abspath(default_dir) - - if not os.path.exists(default_dir): - default_dir = None - - help_vars = Variables() - help_vars.Add(PathVariable('OIC_UTILS', 'oic-utilities project path', default_dir)) - help_vars.Update(env) - Help(help_vars.GenerateHelpText(env)) - - utils_path = env.get('OIC_UTILS', default_dir) - if utils_path: - utils_path = os.path.abspath(utils_path) - - if not utils_path or not os.path.exists(utils_path): - print ''' -*********************************** Error: ************************************ -* oic-utilities project directory isn't set properly, please set enviornment* -* variable OIC_UTILS or set it in command line: * -* # scons OIC_UTILS= ... * -******************************************************************************* -''' - Exit(1) - -if target_os == 'arduino': - # Add 'NET' build option, let user select board network connection type - vars = Variables() - vars.Add(EnumVariable('NET', 'Network connection type', 'Ethernet', ['Ethernet', 'Wifi'])) - vars.Update(env) - Help(vars.GenerateHelpText(env)) - -# check 'cereal' library, temporarily put it here -if not os.path.exists(src_dir + '/extlibs/cereal'): - print ''' -*********************************** Error: ************************************** -* 'Cereal' library doesn't exist. please download cereal to extlibs directory * -* add apply the patch as following: * -* $ git clone https://github.com/USCiLab/cereal.git /extlibs/cereal* -* $ cd /extlibs/cereal * -* $ git reset --hard 7121e91e6ab8c3e6a6516d9d9c3e6804e6f65245 * -* $ git apply ../../resource/patches/cereal_gcc46.patch * -********************************************************************************* -''' - Exit(1) -else: - env.AppendUnique(CPPPATH = [src_dir + '/extlibs/cereal/include'])