OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 config("gtest_config") { | 5 config("gtest_config") { |
6 defines = [ | 6 defines = [ |
7 "UNIT_TEST", | 7 "UNIT_TEST", |
8 | 8 |
9 # In order to allow regex matches in gtest to be shared between Windows | 9 # In order to allow regex matches in gtest to be shared between Windows |
10 # and other systems, we tell gtest to always use it's internal engine. | 10 # and other systems, we tell gtest to always use it's internal engine. |
(...skipping 15 matching lines...) Expand all Loading... |
26 # compiler will be 4.3.2. or newer. The Mac, for example, uses | 26 # compiler will be 4.3.2. or newer. The Mac, for example, uses |
27 # 4.2.1 as that is the latest available on that platform. gtest | 27 # 4.2.1 as that is the latest available on that platform. gtest |
28 # must be instructed that RTTI is disabled here, and for any | 28 # must be instructed that RTTI is disabled here, and for any |
29 # direct dependents that might include gtest headers. | 29 # direct dependents that might include gtest headers. |
30 "GTEST_HAS_RTTI=0", | 30 "GTEST_HAS_RTTI=0", |
31 ] | 31 ] |
32 } | 32 } |
33 } | 33 } |
34 | 34 |
35 static_library("gtest") { | 35 static_library("gtest") { |
36 external = true | |
37 gyp_file = "gtest.gyp" | |
38 sources = [ | 36 sources = [ |
39 "include/gtest/gtest-death-test.h", | 37 "include/gtest/gtest-death-test.h", |
40 "include/gtest/gtest-message.h", | 38 "include/gtest/gtest-message.h", |
41 "include/gtest/gtest-param-test.h", | 39 "include/gtest/gtest-param-test.h", |
42 "include/gtest/gtest-printers.h", | 40 "include/gtest/gtest-printers.h", |
43 "include/gtest/gtest-spi.h", | 41 "include/gtest/gtest-spi.h", |
44 "include/gtest/gtest-test-part.h", | 42 "include/gtest/gtest-test-part.h", |
45 "include/gtest/gtest-typed-test.h", | 43 "include/gtest/gtest-typed-test.h", |
46 "include/gtest/gtest.h", | 44 "include/gtest/gtest.h", |
47 "include/gtest/gtest_pred_impl.h", | 45 "include/gtest/gtest_pred_impl.h", |
(...skipping 29 matching lines...) Expand all Loading... |
77 ] | 75 ] |
78 } | 76 } |
79 | 77 |
80 include_dirs = [ "." ] | 78 include_dirs = [ "." ] |
81 | 79 |
82 all_dependent_configs = [ ":gtest_config" ] | 80 all_dependent_configs = [ ":gtest_config" ] |
83 | 81 |
84 configs -= [ "//build/config/compiler:chromium_code" ] | 82 configs -= [ "//build/config/compiler:chromium_code" ] |
85 configs += [ "//build/config/compiler:no_chromium_code" ] | 83 configs += [ "//build/config/compiler:no_chromium_code" ] |
86 } | 84 } |
OLD | NEW |