| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 visibility = [ | 6 visibility = [ |
| 7 ":*", | 7 ":*", |
| 8 "//testing/gmock:*", # gmock also shares this config. | 8 "//testing/gmock:*", # gmock also shares this config. |
| 9 ] | 9 ] |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 # GTEST_USE_OWN_TR1_TUPLE only works if GTEST_HAS_TR1_TUPLE is set. | 48 # GTEST_USE_OWN_TR1_TUPLE only works if GTEST_HAS_TR1_TUPLE is set. |
| 49 # gtest r625 made it so that GTEST_HAS_TR1_TUPLE is set to 0 | 49 # gtest r625 made it so that GTEST_HAS_TR1_TUPLE is set to 0 |
| 50 # automatically on android, so it has to be set explicitly here. | 50 # automatically on android, so it has to be set explicitly here. |
| 51 "GTEST_HAS_TR1_TUPLE=1", | 51 "GTEST_HAS_TR1_TUPLE=1", |
| 52 ] | 52 ] |
| 53 } | 53 } |
| 54 } | 54 } |
| 55 | 55 |
| 56 config("gtest_direct_config") { | 56 config("gtest_direct_config") { |
| 57 visibility = ":*" | 57 visibility = [ ":*" ] |
| 58 defines = [ "UNIT_TEST" ] | 58 defines = [ "UNIT_TEST" ] |
| 59 } | 59 } |
| 60 | 60 |
| 61 static_library("gtest") { | 61 static_library("gtest") { |
| 62 sources = [ | 62 sources = [ |
| 63 "include/gtest/gtest-death-test.h", | 63 "include/gtest/gtest-death-test.h", |
| 64 "include/gtest/gtest-message.h", | 64 "include/gtest/gtest-message.h", |
| 65 "include/gtest/gtest-param-test.h", | 65 "include/gtest/gtest-param-test.h", |
| 66 "include/gtest/gtest-printers.h", | 66 "include/gtest/gtest-printers.h", |
| 67 "include/gtest/gtest-spi.h", | 67 "include/gtest/gtest-spi.h", |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 direct_dependent_configs = [ ":gtest_direct_config" ] | 107 direct_dependent_configs = [ ":gtest_direct_config" ] |
| 108 | 108 |
| 109 configs -= [ "//build/config/compiler:chromium_code" ] | 109 configs -= [ "//build/config/compiler:chromium_code" ] |
| 110 configs += [ "//build/config/compiler:no_chromium_code" ] | 110 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 111 } | 111 } |
| 112 | 112 |
| 113 source_set("gtest_main") { | 113 source_set("gtest_main") { |
| 114 sources = [ "src/gtest_main.cc" ] | 114 sources = [ "src/gtest_main.cc" ] |
| 115 deps = [ ":gtest" ] | 115 deps = [ ":gtest" ] |
| 116 } | 116 } |
| OLD | NEW |