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 |
11 cpppath = [ | 11 cpppath = [ |
12 '$OPEN_VCDIFF_DIR/src', | 12 '$OPEN_VCDIFF_DIR/src', |
13 ] | 13 ] |
14 | 14 |
15 if env.Bit('windows'): | 15 if env.Bit('windows'): |
16 cpppath.append('$OPEN_VCDIFF_DIR/vsprojects') | 16 cpppath.append('$OPEN_VCDIFF_DIR/vsprojects') |
17 | 17 |
18 env.Prepend(CPPPATH = cpppath) | 18 env.Prepend(CPPPATH = cpppath) |
19 | 19 |
20 input_files = [ | 20 input_files = [ |
21 '$OPEN_VCDIFF_DIR/src/addrcache.cc', | 21 '$OPEN_VCDIFF_DIR/src/addrcache.cc', |
22 '$OPEN_VCDIFF_DIR/src/adler32.c', | 22 '$OPEN_VCDIFF_DIR/src/adler32.c', |
23 '$OPEN_VCDIFF_DIR/src/blockhash.cc', | 23 '$OPEN_VCDIFF_DIR/src/blockhash.cc', |
24 '$OPEN_VCDIFF_DIR/src/codetable.cc', | 24 '$OPEN_VCDIFF_DIR/src/codetable.cc', |
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/logging.cc', | 29 '$OPEN_VCDIFF_DIR/src/logging.cc', |
29 '$OPEN_VCDIFF_DIR/src/varint_bigendian.cc', | 30 '$OPEN_VCDIFF_DIR/src/varint_bigendian.cc', |
30 '$OPEN_VCDIFF_DIR/src/vcdecoder.cc', | 31 '$OPEN_VCDIFF_DIR/src/vcdecoder.cc', |
31 '$OPEN_VCDIFF_DIR/src/vcdiffengine.cc', | 32 '$OPEN_VCDIFF_DIR/src/vcdiffengine.cc', |
32 ] | 33 ] |
33 | 34 |
34 env.ChromeStaticLibrary('sdch', input_files) | 35 env.ChromeStaticLibrary('sdch', input_files) |
35 | 36 |
36 env.ChromeMSVSProject('$SDCH_DIR/sdch.vcproj', | 37 env.ChromeMSVSProject('$SDCH_DIR/sdch.vcproj', |
37 guid='{F54ABC59-5C00-414A-A9BA-BAF26D1699F0}') | 38 guid='{F54ABC59-5C00-414A-A9BA-BAF26D1699F0}') |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 117 |
117 header = '/* src/config.h. Generated by SCons. */\n' | 118 header = '/* src/config.h. Generated by SCons. */\n' |
118 open(str(target[0]), 'w').write(header + contents) | 119 open(str(target[0]), 'w').write(header + contents) |
119 | 120 |
120 # varlist['DEFINES'] below makes the target config.h file depend | 121 # varlist['DEFINES'] below makes the target config.h file depend |
121 # on the list of definitions in the passed-in $DEFINES variable. | 122 # on the list of definitions in the passed-in $DEFINES variable. |
122 env.Command('$OPEN_VCDIFF_DIR/src/config.h', | 123 env.Command('$OPEN_VCDIFF_DIR/src/config.h', |
123 '$OPEN_VCDIFF_DIR/src/config.h.in', | 124 '$OPEN_VCDIFF_DIR/src/config.h.in', |
124 Action(AutoConfig, varlist=['DEFINES']), | 125 Action(AutoConfig, varlist=['DEFINES']), |
125 DEFINES=defines) | 126 DEFINES=defines) |
OLD | NEW |