Unconditionally enable absl support in googletest Same as crrev.com/1232942 Change-Id: I3ccdc42e8ec1e13edbe2ccb57dc1458a11bcf83c Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/114430 Reviewed-by: Tom Sepez <tsepez@chromium.org> Auto-Submit: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/third_party/googletest/BUILD.gn b/third_party/googletest/BUILD.gn index fb7b182..88ccd74 100644 --- a/third_party/googletest/BUILD.gn +++ b/third_party/googletest/BUILD.gn
@@ -24,8 +24,12 @@ # Prevents gtest from including both <tr1/tuple> and <tuple>. "GTEST_HAS_TR1_TUPLE=0", + + "GTEST_HAS_ABSL=1", ] + configs = [ "//third_party/abseil-cpp:absl_include_config" ] + # Gtest headers need to be able to find themselves. include_dirs = [ "custom", @@ -35,11 +39,6 @@ if (is_win) { cflags = [ "/wd4800" ] # Unused variable warning. } - - if (gtest_enable_absl_printers) { - configs = [ "//third_party/abseil-cpp:absl_include_config" ] - defines += [ "GTEST_HAS_ABSL=1" ] - } } config("gmock_config") { @@ -127,7 +126,7 @@ "custom/gtest/internal/custom/stack_trace_getter.h", ] - deps = [] + deps = [ "//third_party/abseil-cpp:absl" ] if (is_fuchsia) { deps += [ @@ -135,10 +134,6 @@ "//third_party/fuchsia-sdk/sdk/pkg/zx", ] } - - if (gtest_enable_absl_printers) { - deps += [ "//third_party/abseil-cpp:absl" ] - } } # Do NOT depend on this directly. Use //testing/gtest:gtest_main instead.