| OLD | NEW |
| 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import re | 5 import re |
| 6 | 6 |
| 7 Import('env') | 7 Import('env') |
| 8 | 8 |
| 9 env = env.Clone(OPEN_VCDIFF_DIR='open-vcdiff') | 9 env = env.Clone(OPEN_VCDIFF_DIR='open-vcdiff') |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 '$OPEN_VCDIFF_DIR/src/decodetable.cc', | 25 '$OPEN_VCDIFF_DIR/src/decodetable.cc', |
| 26 '$OPEN_VCDIFF_DIR/src/encodetable.cc', | 26 '$OPEN_VCDIFF_DIR/src/encodetable.cc', |
| 27 '$OPEN_VCDIFF_DIR/src/headerparser.cc', | 27 '$OPEN_VCDIFF_DIR/src/headerparser.cc', |
| 28 '$OPEN_VCDIFF_DIR/src/instruction_map.cc', | 28 '$OPEN_VCDIFF_DIR/src/instruction_map.cc', |
| 29 '$OPEN_VCDIFF_DIR/src/logging.cc', | 29 '$OPEN_VCDIFF_DIR/src/logging.cc', |
| 30 '$OPEN_VCDIFF_DIR/src/varint_bigendian.cc', | 30 '$OPEN_VCDIFF_DIR/src/varint_bigendian.cc', |
| 31 '$OPEN_VCDIFF_DIR/src/vcdecoder.cc', | 31 '$OPEN_VCDIFF_DIR/src/vcdecoder.cc', |
| 32 '$OPEN_VCDIFF_DIR/src/vcdiffengine.cc', | 32 '$OPEN_VCDIFF_DIR/src/vcdiffengine.cc', |
| 33 ] | 33 ] |
| 34 | 34 |
| 35 env.ChromeStaticLibrary('sdch', input_files) | 35 env.ChromeLibrary('sdch', input_files) |
| 36 | 36 |
| 37 env.ChromeMSVSProject('$SDCH_DIR/sdch.vcproj', | 37 env.ChromeMSVSProject('$SDCH_DIR/sdch.vcproj', |
| 38 guid='{F54ABC59-5C00-414A-A9BA-BAF26D1699F0}') | 38 guid='{F54ABC59-5C00-414A-A9BA-BAF26D1699F0}') |
| 39 | 39 |
| 40 if env.Bit('posix'): | 40 if env.Bit('posix'): |
| 41 | 41 |
| 42 # Generate a target config.h file from a source config.h.in file. | 42 # Generate a target config.h file from a source config.h.in file. |
| 43 # | 43 # |
| 44 # The list of defines has been taken empirically from Autoconf | 44 # The list of defines has been taken empirically from Autoconf |
| 45 # (./configure) runs on Mac OS X and Ubuntu Hardy. | 45 # (./configure) runs on Mac OS X and Ubuntu Hardy. |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 header = '/* src/config.h. Generated by SCons. */\n' | 118 header = '/* src/config.h. Generated by SCons. */\n' |
| 119 open(str(target[0]), 'w').write(header + contents) | 119 open(str(target[0]), 'w').write(header + contents) |
| 120 | 120 |
| 121 # varlist['DEFINES'] below makes the target config.h file depend | 121 # varlist['DEFINES'] below makes the target config.h file depend |
| 122 # on the list of definitions in the passed-in $DEFINES variable. | 122 # on the list of definitions in the passed-in $DEFINES variable. |
| 123 env.Command('$OPEN_VCDIFF_DIR/src/config.h', | 123 env.Command('$OPEN_VCDIFF_DIR/src/config.h', |
| 124 '$OPEN_VCDIFF_DIR/src/config.h.in', | 124 '$OPEN_VCDIFF_DIR/src/config.h.in', |
| 125 Action(AutoConfig, varlist=['DEFINES']), | 125 Action(AutoConfig, varlist=['DEFINES']), |
| 126 DEFINES=defines) | 126 DEFINES=defines) |
| OLD | NEW |