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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: testing/gtest/BUILD.gn
diff --git a/testing/gtest/BUILD.gn b/testing/gtest/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..8b82a310f33f671a7259e7ad71d1d41d70477865
--- /dev/null
+++ b/testing/gtest/BUILD.gn
@@ -0,0 +1,62 @@
+import("//build_overrides/gtest.gni")
+
+config("gtest_direct_config") {
+ visibility = [ ":*" ]
+ defines = [ "UNIT_TEST" ]
+}
+
+static_library("gtest") {
+ testonly = true
+ sources = [
+ "include/gtest/gtest-death-test.h",
+ "include/gtest/gtest-message.h",
+ "include/gtest/gtest-param-test.h",
+ "include/gtest/gtest-spi.h",
+ "include/gtest/gtest.h",
+ "include/gtest/gtest_prod.h",
+ ]
+ deps = [
+ "//third_party/googletest:gtest",
+ ]
+
+ public_configs = [ ":gtest_direct_config" ]
+
+ if (gtest_include_multiprocess) {
+ sources += [
+ "../multiprocess_func_list.cc",
+ "../multiprocess_func_list.h",
+ ]
+ }
+
+ if (gtest_include_platform_test) {
+ sources += [ "../platform_test.h" ]
+ }
+
+ if ((is_mac || is_ios) && gtest_include_objc_support) {
+ if (is_ios) {
+ set_sources_assignment_filter([])
+ }
+ sources += [
+ "../gtest_mac.h",
+ "../gtest_mac.mm",
+ ]
+ if (gtest_include_platform_test) {
+ sources += [ "../platform_test_mac.mm" ]
+ }
+ set_sources_assignment_filter(sources_assignment_filter)
+ }
+
+ if (is_ios && gtest_include_ios_coverage) {
+ sources += [
+ "../coverage_util_ios.cc",
+ "../coverage_util_ios.h",
+ ]
+ }
+}
+
+source_set("gtest_main") {
+ testonly = true
+ deps = [
+ "//third_party/googletest:gtest_main",
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698