OLD | NEW |
| (Empty) |
1 #!/usr/bin/python2.4 | |
2 # | |
3 # Copyright 2009 Google Inc. | |
4 # | |
5 # Licensed under the Apache License, Version 2.0 (the "License"); | |
6 # you may not use this file except in compliance with the License. | |
7 # You may obtain a copy of the License at | |
8 # | |
9 # http://www.apache.org/licenses/LICENSE-2.0 | |
10 # | |
11 # Unless required by applicable law or agreed to in writing, software | |
12 # distributed under the License is distributed on an "AS IS" BASIS, | |
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
14 # See the License for the specific language governing permissions and | |
15 # limitations under the License. | |
16 # ======================================================================== | |
17 | |
18 Import('env') | |
19 | |
20 gmock_env = env.Clone() | |
21 gmock_env.Append( | |
22 CPPPATH = [ | |
23 '$MAIN_DIR/third_party/gmock', | |
24 '$MAIN_DIR/third_party/gmock/include', | |
25 '$MAIN_DIR/third_party/gtest/include', | |
26 ], | |
27 CCFLAGS = [ | |
28 '/wd4061', # enumerator is not explicitly handled by a case label | |
29 '/wd4242', # conversion from type1 to type2, possible loss of data | |
30 '/wd4244', # conversion from type1 to type2, possible loss of data | |
31 '/wd4628', # digraphs not supported with -Ze | |
32 '/wd4640', # construction of local static object is not thread-safe | |
33 ], | |
34 ) | |
35 | |
36 target_name = 'gmock' | |
37 | |
38 gmock_inputs = [ 'src/gmock-all.cc' ] | |
39 | |
40 if env.Bit('use_precompiled_headers'): | |
41 gmock_inputs += gmock_env.EnablePrecompile(target_name) | |
42 | |
43 gmock_env.ComponentLibrary( | |
44 lib_name=target_name, | |
45 source=gmock_inputs, | |
46 ) | |
47 | |
OLD | NEW |