Tweak main build_common scripts
authorMats Wichmann <mats@linux.com>
Fri, 7 Jul 2017 18:15:37 +0000 (12:15 -0600)
committerPhil Coval <philippe.coval@osg.samsung.com>
Mon, 24 Jul 2017 08:12:43 +0000 (08:12 +0000)
commit1d8b6c23f0b1d3393033703bda880493158c5563
tree44c40627ce7c5e136ddcfbee11eb111636ba0294
parent0a92c0968c59eae7bae4e94e888124211ecf1bd0
Tweak main build_common scripts

build_common/SConscript:
  * list of supported target-os not general enough for helpmsg, updated
  * send error msg to stderr by passing it to Exit instead of doing print
  * Use simpler python slicing in Yocto tool setup
  * pull most Add(somekind of construction variable) into one big call
    to AddVariables; name some more arguments for better clarity
  Removed temporarily while chasing Jenkins fails:
  * turn all variables which behave like booleans actually into BoolVariable
build_common/external_libs.scons:
  * a bad combination of options used to "raise" an error, but there is
    no need for a stack bracktrace here, want just a simple msg+exit
  * send error msg to stderr by passing it to Exit instead of doing print
build_common/external_libs.scons
  * send error msg to stderr by passing it to Exit instead of doing print
build_common/linux/SConscript
build_common/windows/SConscript
  * reduce repeated calls to env.get for same key
  * windows: update style to like in linux script

Bug: https://jira.iotivity.org/browse/IOT-1745
Change-Id: I928199f005af805cad0b0657ca62411caf7a2500
Signed-off-by: Mats Wichmann <mats@linux.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21311
Reviewed-by: Ibrahim Esmat <iesmat@microsoft.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: George Nash <george.nash@intel.com>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
build_common/SConscript
build_common/external_builders.scons
build_common/external_libs.scons
build_common/linux/SConscript
build_common/windows/SConscript