Deleted Added
sdiff udiff text old ( 10158:24a198a46ff0 ) new ( 10160:3f4372fa8e6c )
full compact
1# -*- mode:python -*-
2
3# Copyright (c) 2013 ARM Limited
4# All rights reserved.
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

--- 862 unchanged lines hidden (view full) ---

871# the more exotic linker flags such as -Xlinker and -export-dynamic so
872# we add them explicitly below. If you want to link in an alternate
873# version of python, see above for instructions on how to invoke
874# scons with the appropriate PATH set.
875#
876# First we check if python2-config exists, else we use python-config
877python_config = readCommand(['which', 'python2-config'], exception='').strip()
878if not os.path.exists(python_config):
879 python_config = readCommand(['which', 'python-config'],
880 exception='').strip()
881py_includes = readCommand([python_config, '--includes'],
882 exception='').split()
883# Strip the -I from the include folders before adding them to the
884# CPPPATH
885main.Append(CPPPATH=map(lambda inc: inc[2:], py_includes))
886
887# Read the linker flags and split them into libraries and other link
888# flags. The libraries are added later through the call the CheckLib.

--- 436 unchanged lines hidden ---