SConstruct (4202:f7a05daec670) SConstruct (4494:b7c909b5a5e9)
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

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

177# Set up the default build environment. This environment is copied
178# and modified according to each selected configuration.
179#
180###################################################
181
182env = Environment(ENV = os.environ, # inherit user's environment vars
183 ROOT = ROOT,
184 SRCDIR = SRCDIR)
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

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

177# Set up the default build environment. This environment is copied
178# and modified according to each selected configuration.
179#
180###################################################
181
182env = Environment(ENV = os.environ, # inherit user's environment vars
183 ROOT = ROOT,
184 SRCDIR = SRCDIR)
185Export('env')
186
187#Parse CC/CXX early so that we use the correct compiler for
188# to test for dependencies/versions/libraries/includes
189if ARGUMENTS.get('CC', None):
190 env['CC'] = ARGUMENTS.get('CC')
191
192if ARGUMENTS.get('CXX', None):
193 env['CXX'] = ARGUMENTS.get('CXX')
194
185
186#Parse CC/CXX early so that we use the correct compiler for
187# to test for dependencies/versions/libraries/includes
188if ARGUMENTS.get('CC', None):
189 env['CC'] = ARGUMENTS.get('CC')
190
191if ARGUMENTS.get('CXX', None):
192 env['CXX'] = ARGUMENTS.get('CXX')
193
194Export('env')
195
195env.SConsignFile(joinpath(build_root,"sconsign"))
196
197# Default duplicate option is to use hard links, but this messes up
198# when you use emacs to edit a file in the target dir, as emacs moves
199# file to file~ then copies to file, breaking the link. Symbolic
200# (soft) links work better.
201env.SetOption('duplicate', 'soft-copy')
202

--- 474 unchanged lines hidden ---
196env.SConsignFile(joinpath(build_root,"sconsign"))
197
198# Default duplicate option is to use hard links, but this messes up
199# when you use emacs to edit a file in the target dir, as emacs moves
200# file to file~ then copies to file, breaking the link. Symbolic
201# (soft) links work better.
202env.SetOption('duplicate', 'soft-copy')
203

--- 474 unchanged lines hidden ---