OLD | NEW |
| (Empty) |
1 # Copyright 2008-2009 Google Inc. | |
2 # | |
3 # Licensed under the Apache License, Version 2.0 (the "License"); | |
4 # you may not use this file except in compliance with the License. | |
5 # You may obtain a copy of the License at | |
6 # | |
7 # http://www.apache.org/licenses/LICENSE-2.0 | |
8 # | |
9 # Unless required by applicable law or agreed to in writing, software | |
10 # distributed under the License is distributed on an "AS IS" BASIS, | |
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
12 # See the License for the specific language governing permissions and | |
13 # limitations under the License. | |
14 # ======================================================================== | |
15 | |
16 Import('env') | |
17 | |
18 local_env = env.Clone() | |
19 local_env.FilterOut(CPPDEFINES=['_ATL_DEBUG_INTERFACES']) | |
20 | |
21 bcj2_lib = local_env.ComponentStaticLibrary( | |
22 lib_name='bcj2_lib', | |
23 source=[ | |
24 'bcj2_encoder.cc', | |
25 'range_encoder.cc', | |
26 ], | |
27 ) | |
28 | |
29 bin_env = local_env.Clone() | |
30 bin_env.FilterOut(LINKFLAGS=['/SUBSYSTEM:WINDOWS']) | |
31 bin_env.Append( | |
32 LINKFLAGS=['/SUBSYSTEM:CONSOLE'], | |
33 LIBS=[ | |
34 ('libcmt.lib', 'libcmtd.lib')[local_env.Bit('debug')], | |
35 ('libcpmt.lib', 'libcpmtd.lib')[local_env.Bit('debug')], | |
36 'kernel32.lib', | |
37 '$LIB_DIR/lzma.lib', | |
38 ], | |
39 ) | |
40 | |
41 bin_env.ComponentTool( | |
42 prog_name='bcj', | |
43 source=[ | |
44 'bcj.cc', | |
45 ], | |
46 ) | |
47 | |
48 bjc2_env = bin_env.Clone() | |
49 bjc2_env.Append( | |
50 LIBS=[ bcj2_lib ], | |
51 ) | |
52 bjc2_env.ComponentTool( | |
53 prog_name='bcj2', | |
54 source=[ | |
55 'bcj2.cc', | |
56 ], | |
57 ) | |
58 | |
59 local_env.OmahaUnittest( | |
60 name='bcj2_encoder_unittest', | |
61 source='bcj2_encoder_unittest.cc', | |
62 LIBS=[ | |
63 bcj2_lib, | |
64 '$LIB_DIR/common.lib', | |
65 '$LIB_DIR/lzma.lib', | |
66 ], | |
67 all_in_one=False, | |
68 COMPONENT_TEST_SIZE='small', | |
69 ) | |
OLD | NEW |