Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: testing/gtest/BUILD.gn

Issue 2847693002: V8: Roll googletest to 1.8.0.
Patch Set: Fix for Mac build error. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 import("//build_overrides/gtest.gni")
2
3 config("gtest_direct_config") {
4 visibility = [ ":*" ]
5 defines = [ "UNIT_TEST" ]
6 }
7
8 # The file/directory layout of Google Test is not yet considered stable. Until
9 # it stabilizes, Chromium code MUST use this target instead of reaching directly
10 # into //third_party/googletest.
11 static_library("gtest") {
12 testonly = true
13
14 # This target needs to be a static_library (not a source set) on Mac to avoid
15 # the build errors in https://codereview.chromium.org/2779193002#msg82.
16 complete_static_lib = true
17
18 sources = [
19 "include/gtest/gtest-death-test.h",
20 "include/gtest/gtest-message.h",
21 "include/gtest/gtest-param-test.h",
22 "include/gtest/gtest-spi.h",
23 "include/gtest/gtest.h",
24 "include/gtest/gtest_prod.h",
25 ]
26 deps = [
27 "//third_party/googletest:gtest",
28 ]
29
30 public_configs = [ ":gtest_direct_config" ]
31
32 if (gtest_include_multiprocess) {
33 sources += [
34 "../multiprocess_func_list.cc",
35 "../multiprocess_func_list.h",
36 ]
37 }
38
39 if (gtest_include_platform_test) {
40 sources += [ "../platform_test.h" ]
41 }
42
43 if ((is_mac || is_ios) && gtest_include_objc_support) {
44 if (is_ios) {
45 set_sources_assignment_filter([])
46 }
47 sources += [
48 "../gtest_mac.h",
49 "../gtest_mac.mm",
50 ]
51 if (gtest_include_platform_test) {
52 sources += [ "../platform_test_mac.mm" ]
53 }
54 set_sources_assignment_filter(sources_assignment_filter)
55 }
56
57 if (is_ios && gtest_include_ios_coverage) {
58 sources += [
59 "../coverage_util_ios.cc",
60 "../coverage_util_ios.h",
61 ]
62 }
63 }
64
65 # The file/directory layout of Google Test is not yet considered stable. Until
66 # it stabilizes, Chromium code MUST use this target instead of reaching directly
67 # into //third_party/googletest.
68 source_set("gtest_main") {
69 testonly = true
70 deps = [
71 "//third_party/googletest:gtest_main",
72 ]
73 }
OLDNEW
« testing/gmock/BUILD.gn ('K') | « testing/gtest.gyp ('k') | testing/gtest/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698