Chromium Code Reviews| 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 # TODO(brettw) move to testing/gtest/BUILD.gn | 5 # TODO(brettw) move to testing/gtest/BUILD.gn |
| 6 config("gtest_config") { | 6 config("gtest_config") { |
| 7 defines = [ "UNIT_TEST" ] | 7 defines = [ "UNIT_TEST" ] |
| 8 includes = [ "gtest/include" ] # Gtest headers need to be able to find themse lves. | 8 includes = [ "gtest/include" ] # Gtest headers need to be able to find themse lves. |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 40 "gtest/src/gtest-test-part.cc", | 40 "gtest/src/gtest-test-part.cc", |
| 41 "gtest/src/gtest-typed-test.cc", | 41 "gtest/src/gtest-typed-test.cc", |
| 42 "gtest/src/gtest.cc", | 42 "gtest/src/gtest.cc", |
| 43 "multiprocess_func_list.cc", | 43 "multiprocess_func_list.cc", |
| 44 "multiprocess_func_list.h", | 44 "multiprocess_func_list.h", |
| 45 "platform_test.h", | 45 "platform_test.h", |
| 46 ] | 46 ] |
| 47 | 47 |
| 48 includes = [ "gtest" ] | 48 includes = [ "gtest" ] |
| 49 direct_dependent_configs = [ ":gtest_config" ] | 49 direct_dependent_configs = [ ":gtest_config" ] |
| 50 | |
| 51 configs -= "//build/config/compiler:chromium_code" | |
| 52 configs += "//build/config/compiler:no_chromium_code" | |
|
jamesr
2013/10/02 09:07:02
this is a really annoying stanza to state repeated
| |
| 50 } | 53 } |
| 51 | 54 |
| 52 # TODO(brettw) move to testing/gmock/BUILD.gn | 55 # TODO(brettw) move to testing/gmock/BUILD.gn |
| 53 config("gmock_config") { | 56 config("gmock_config") { |
| 54 # Gmock headers need to be able to find themselves. | 57 # Gmock headers need to be able to find themselves. |
| 55 includes = [ "gmock/include" ] | 58 includes = [ "gmock/include" ] |
| 56 } | 59 } |
| 57 | 60 |
| 58 # TODO(brettw) move to testing/gmock/BUILD.gn | 61 # TODO(brettw) move to testing/gmock/BUILD.gn |
| 59 static_library("gmock") { | 62 static_library("gmock") { |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 89 "//testing:gtest_config", | 92 "//testing:gtest_config", |
| 90 ] | 93 ] |
| 91 } | 94 } |
| 92 | 95 |
| 93 # TODO(brettw) move to testing/gmock/BUILD.gn | 96 # TODO(brettw) move to testing/gmock/BUILD.gn |
| 94 static_library("gmock_main") { | 97 static_library("gmock_main") { |
| 95 external = true | 98 external = true |
| 96 sources = [ "src/gmock_main.cc" ] | 99 sources = [ "src/gmock_main.cc" ] |
| 97 deps = [ ":gmock" ] | 100 deps = [ ":gmock" ] |
| 98 } | 101 } |
| OLD | NEW |