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

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

Issue 2779193002: Roll googletest to 1.8.0. (Closed)
Patch Set: Fix build errors. Created 3 years, 8 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 static_library("gtest") {
9 testonly = true
10 sources = [
11 "include/gtest/gtest-death-test.h",
12 "include/gtest/gtest-message.h",
13 "include/gtest/gtest-param-test.h",
14 "include/gtest/gtest-spi.h",
15 "include/gtest/gtest.h",
16 "include/gtest/gtest_prod.h",
17 ]
18 deps = [
19 "//third_party/googletest:gtest",
20 ]
21
22 public_configs = [ ":gtest_direct_config" ]
23
24 if (gtest_include_multiprocess) {
25 sources += [
26 "../multiprocess_func_list.cc",
27 "../multiprocess_func_list.h",
28 ]
29 }
30
31 if (gtest_include_platform_test) {
32 sources += [ "../platform_test.h" ]
33 }
34
35 if ((is_mac || is_ios) && gtest_include_objc_support) {
36 if (is_ios) {
37 set_sources_assignment_filter([])
38 }
39 sources += [
40 "../gtest_mac.h",
41 "../gtest_mac.mm",
42 ]
43 if (gtest_include_platform_test) {
44 sources += [ "../platform_test_mac.mm" ]
45 }
46 set_sources_assignment_filter(sources_assignment_filter)
47 }
48
49 if (is_ios && gtest_include_ios_coverage) {
50 sources += [
51 "../coverage_util_ios.cc",
52 "../coverage_util_ios.h",
53 ]
54 }
55 }
56
57 source_set("gtest_main") {
58 testonly = true
59 deps = [
60 "//third_party/googletest:gtest_main",
61 ]
62 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698