| 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 include_dirs = [ "gtest/include" ] # Gtest headers need to be able to find th
emselves. | 8 include_dirs = [ "gtest/include" ] # Gtest headers need to be able to find th
emselves. |
| 9 if (is_win) { | 9 if (is_win) { |
| 10 cflags = [ "/wd4800" ] # Unused variable warning. | 10 cflags = [ "/wd4800" ] # Unused variable warning. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 "gtest/src/gtest-port.cc", | 42 "gtest/src/gtest-port.cc", |
| 43 "gtest/src/gtest-printers.cc", | 43 "gtest/src/gtest-printers.cc", |
| 44 "gtest/src/gtest-test-part.cc", | 44 "gtest/src/gtest-test-part.cc", |
| 45 "gtest/src/gtest-typed-test.cc", | 45 "gtest/src/gtest-typed-test.cc", |
| 46 "gtest/src/gtest.cc", | 46 "gtest/src/gtest.cc", |
| 47 "multiprocess_func_list.cc", | 47 "multiprocess_func_list.cc", |
| 48 "multiprocess_func_list.h", | 48 "multiprocess_func_list.h", |
| 49 "platform_test.h", | 49 "platform_test.h", |
| 50 ] | 50 ] |
| 51 | 51 |
| 52 if (is_mac) { |
| 53 sources += [ |
| 54 "gtest_mac.h", |
| 55 "gtest_mac.mm", |
| 56 "platform_test_mac.mm", |
| 57 ] |
| 58 } |
| 59 |
| 52 include_dirs = [ "gtest" ] | 60 include_dirs = [ "gtest" ] |
| 53 direct_dependent_configs = [ ":gtest_config" ] | 61 direct_dependent_configs = [ ":gtest_config" ] |
| 62 |
| 63 configs -= "//build/config/compiler:chromium_code" |
| 64 configs += "//build/config/compiler:no_chromium_code" |
| 54 } | 65 } |
| 55 | 66 |
| 56 # TODO(brettw) move to testing/gmock/BUILD.gn | 67 # TODO(brettw) move to testing/gmock/BUILD.gn |
| 57 config("gmock_config") { | 68 config("gmock_config") { |
| 58 # Gmock headers need to be able to find themselves. | 69 # Gmock headers need to be able to find themselves. |
| 59 include_dirs = [ "gmock/include" ] | 70 include_dirs = [ "gmock/include" ] |
| 60 } | 71 } |
| 61 | 72 |
| 62 # TODO(brettw) move to testing/gmock/BUILD.gn | 73 # TODO(brettw) move to testing/gmock/BUILD.gn |
| 63 static_library("gmock") { | 74 static_library("gmock") { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 ] | 106 ] |
| 96 } | 107 } |
| 97 | 108 |
| 98 # TODO(brettw) move to testing/gmock/BUILD.gn | 109 # TODO(brettw) move to testing/gmock/BUILD.gn |
| 99 static_library("gmock_main") { | 110 static_library("gmock_main") { |
| 100 external = true | 111 external = true |
| 101 gyp_file = "gmock.gyp" | 112 gyp_file = "gmock.gyp" |
| 102 sources = [ "src/gmock_main.cc" ] | 113 sources = [ "src/gmock_main.cc" ] |
| 103 deps = [ ":gmock" ] | 114 deps = [ ":gmock" ] |
| 104 } | 115 } |
| OLD | NEW |