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 gtest_env = env.Clone() | |
21 gtest_env.Append( | |
22 CPPPATH = [ | |
23 '$MAIN_DIR/third_party/gtest/include', | |
24 '$MAIN_DIR/third_party/gtest', | |
25 ], | |
26 CCFLAGS = [ | |
27 '/wd4061', # enumerator in switch is not handled by a case label | |
28 '/wd4100', # unreferenced formal parameter | |
29 '/wd4640', # construction of local static object is not thread-safe | |
30 '/wd4505', # unreferenced local function has been removed | |
31 '/wd4548', # expression before comma has no effect | |
32 ], | |
33 CPPDEFINES = [ | |
34 '_CRT_NONSTDC_NO_DEPRECATE', | |
35 ], | |
36 ) | |
37 | |
38 target_name = 'gtest' | |
39 | |
40 gtest_inputs = [ 'src/gtest-all.cc' ] | |
41 if env.Bit('use_precompiled_headers'): | |
42 gtest_inputs += gtest_env.EnablePrecompile(target_name) | |
43 | |
44 gtest_env.ComponentLibrary( | |
45 lib_name=target_name, | |
46 source=gtest_inputs, | |
47 ) | |
48 | |
OLD | NEW |