aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/third_party/googletest/BUILD.gn
diff options
context:
space:
mode:
authorMichaƫl Zasso <targos@protonmail.com>2018-05-31 11:11:57 +0200
committerMyles Borins <mylesborins@google.com>2018-06-01 09:58:27 +0200
commit352a525eb984b8fa2d6f0f6fd68395e6a080bba4 (patch)
treea105ae93f8fd8f533cce19a429f1b6e95d6e11ca /deps/v8/third_party/googletest/BUILD.gn
parentfaf449ca0490f5371dc6cbbc94a87eb697b00fcc (diff)
downloadandroid-node-v8-352a525eb984b8fa2d6f0f6fd68395e6a080bba4.tar.gz
android-node-v8-352a525eb984b8fa2d6f0f6fd68395e6a080bba4.tar.bz2
android-node-v8-352a525eb984b8fa2d6f0f6fd68395e6a080bba4.zip
deps: update V8 to 6.7.288.43
PR-URL: https://github.com/nodejs/node/pull/19989 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matheus Marchini <matheus@sthima.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'deps/v8/third_party/googletest/BUILD.gn')
-rw-r--r--deps/v8/third_party/googletest/BUILD.gn148
1 files changed, 148 insertions, 0 deletions
diff --git a/deps/v8/third_party/googletest/BUILD.gn b/deps/v8/third_party/googletest/BUILD.gn
new file mode 100644
index 0000000000..8271959ad0
--- /dev/null
+++ b/deps/v8/third_party/googletest/BUILD.gn
@@ -0,0 +1,148 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+config("gtest_config") {
+ visibility = [ ":*" ] # gmock also shares this config.
+
+ defines = [
+ # Chromium always links googletest statically, so no API qualifier is
+ # necessary. The definition in gtest-port.h at the time of this writing
+ # causes crashes in content_browsertests.
+ "GTEST_API_=",
+
+ # In order to allow regex matches in gtest to be shared between Windows
+ # and other systems, we tell gtest to always use its internal engine.
+ "GTEST_HAS_POSIX_RE=0",
+
+ "GTEST_LANG_CXX11=1",
+ "GTEST_HAS_STD_TUPLE=1",
+ ]
+
+ # Gtest headers need to be able to find themselves.
+ include_dirs = [
+ # TODO(crbug.com/829773): Remove this after transitioning off <tr1/tuple>.
+ "custom",
+
+ "src/googletest/include",
+ ]
+
+ if (is_win) {
+ cflags = [ "/wd4800" ] # Unused variable warning.
+ }
+}
+
+config("gmock_config") {
+ # Gmock headers need to be able to find themselves.
+ include_dirs = [
+ # TODO(crbug.com/829773): Add "custom" here after transitioning off
+ # <tr1/tuple>.
+ "src/googlemock/include",
+ ]
+}
+
+# Do NOT depend on this directly. Use //testing/gtest instead.
+# See README.chromium for details.
+source_set("gtest") {
+ testonly = true
+ sources = [
+ # TODO(crbug.com/829773): Remove this after transitioning off <tr1/tuple>.
+ "custom/gmock/internal/custom/gmock-port.h",
+ "src/googletest/include/gtest/gtest-death-test.h",
+ "src/googletest/include/gtest/gtest-message.h",
+ "src/googletest/include/gtest/gtest-param-test.h",
+ "src/googletest/include/gtest/gtest-printers.h",
+ "src/googletest/include/gtest/gtest-spi.h",
+ "src/googletest/include/gtest/gtest-test-part.h",
+ "src/googletest/include/gtest/gtest-typed-test.h",
+ "src/googletest/include/gtest/gtest.h",
+ "src/googletest/include/gtest/gtest_pred_impl.h",
+ "src/googletest/include/gtest/internal/gtest-death-test-internal.h",
+ "src/googletest/include/gtest/internal/gtest-filepath.h",
+ "src/googletest/include/gtest/internal/gtest-internal.h",
+ "src/googletest/include/gtest/internal/gtest-linked_ptr.h",
+ "src/googletest/include/gtest/internal/gtest-param-util-generated.h",
+ "src/googletest/include/gtest/internal/gtest-param-util.h",
+ "src/googletest/include/gtest/internal/gtest-port.h",
+ "src/googletest/include/gtest/internal/gtest-string.h",
+ "src/googletest/include/gtest/internal/gtest-tuple.h",
+ "src/googletest/include/gtest/internal/gtest-type-util.h",
+
+ #"src/googletest/src/gtest-all.cc", # Not needed by our build.
+ "src/googletest/src/gtest-death-test.cc",
+ "src/googletest/src/gtest-filepath.cc",
+ "src/googletest/src/gtest-internal-inl.h",
+ "src/googletest/src/gtest-port.cc",
+ "src/googletest/src/gtest-printers.cc",
+ "src/googletest/src/gtest-test-part.cc",
+ "src/googletest/src/gtest-typed-test.cc",
+ "src/googletest/src/gtest.cc",
+ ]
+
+ # Some files include "src/gtest-internal-inl.h".
+ include_dirs = [ "src/googletest" ]
+
+ all_dependent_configs = [ ":gtest_config" ]
+
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [ "//build/config/compiler:no_chromium_code" ]
+}
+
+# Do NOT depend on this directly. Use //testing/gtest:gtest_main instead.
+# See README.chromium for details.
+source_set("gtest_main") {
+ testonly = true
+ sources = [
+ "src/googletest/src/gtest_main.cc",
+ ]
+ deps = [
+ ":gtest",
+ ]
+}
+
+# Do NOT depend on this directly. Use //testing/gmock:gmock_main instead.
+# See README.chromium for details.
+source_set("gmock") {
+ testonly = true
+ sources = [
+ "src/googlemock/include/gmock/gmock-actions.h",
+ "src/googlemock/include/gmock/gmock-cardinalities.h",
+ "src/googlemock/include/gmock/gmock-generated-actions.h",
+ "src/googlemock/include/gmock/gmock-generated-function-mockers.h",
+ "src/googlemock/include/gmock/gmock-generated-matchers.h",
+ "src/googlemock/include/gmock/gmock-generated-nice-strict.h",
+ "src/googlemock/include/gmock/gmock-matchers.h",
+ "src/googlemock/include/gmock/gmock-spec-builders.h",
+ "src/googlemock/include/gmock/gmock.h",
+ "src/googlemock/include/gmock/internal/gmock-generated-internal-utils.h",
+ "src/googlemock/include/gmock/internal/gmock-internal-utils.h",
+ "src/googlemock/include/gmock/internal/gmock-port.h",
+
+ # gmock helpers.
+ "custom/gmock/internal/custom/gmock-port.h",
+
+ #"src/googlemock/src/gmock-all.cc", # Not needed by our build.
+ "src/googlemock/src/gmock-cardinalities.cc",
+ "src/googlemock/src/gmock-internal-utils.cc",
+ "src/googlemock/src/gmock-matchers.cc",
+ "src/googlemock/src/gmock-spec-builders.cc",
+ "src/googlemock/src/gmock.cc",
+ ]
+
+ public_configs = [
+ ":gmock_config",
+ ":gtest_config",
+ ]
+}
+
+# Do NOT depend on this directly. Use //testing/gmock:gmock_main instead.
+# See README.chromium for details.
+static_library("gmock_main") {
+ testonly = true
+ sources = [
+ "src/googlemock/src/gmock_main.cc",
+ ]
+ deps = [
+ ":gmock",
+ ]
+}