SConstruct (5342:c19e3a1a607c) | SConstruct (5343:d90312be2aa8) |
---|---|
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 --- 684 unchanged lines hidden (view full) --- 693# 694################################################### 695 696# rename base env 697base_env = env 698 699for build_path in build_paths: 700 print "Building in", build_path | 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 --- 684 unchanged lines hidden (view full) --- 693# 694################################################### 695 696# rename base env 697base_env = env 698 699for build_path in build_paths: 700 print "Building in", build_path |
701 702 # Make a copy of the build-root environment to use for this config. 703 env = base_env.Copy() |
|
701 env['BUILDDIR'] = build_path 702 703 # build_dir is the tail component of build path, and is used to 704 # determine the build parameters (e.g., 'ALPHA_SE') 705 (build_root, build_dir) = os.path.split(build_path) | 704 env['BUILDDIR'] = build_path 705 706 # build_dir is the tail component of build path, and is used to 707 # determine the build parameters (e.g., 'ALPHA_SE') 708 (build_root, build_dir) = os.path.split(build_path) |
706 # Make a copy of the build-root environment to use for this config. 707 env = base_env.Copy() | |
708 709 # Set env options according to the build directory config. 710 sticky_opts.files = [] 711 # Options for $BUILD_ROOT/$BUILD_DIR are stored in 712 # $BUILD_ROOT/options/$BUILD_DIR so you can nuke 713 # $BUILD_ROOT/$BUILD_DIR without losing your options settings. 714 current_opts_file = joinpath(build_root, 'options', build_dir) 715 if isfile(current_opts_file): --- 91 unchanged lines hidden --- | 709 710 # Set env options according to the build directory config. 711 sticky_opts.files = [] 712 # Options for $BUILD_ROOT/$BUILD_DIR are stored in 713 # $BUILD_ROOT/options/$BUILD_DIR so you can nuke 714 # $BUILD_ROOT/$BUILD_DIR without losing your options settings. 715 current_opts_file = joinpath(build_root, 'options', build_dir) 716 if isfile(current_opts_file): --- 91 unchanged lines hidden --- |