diff options
-rw-r--r-- | BUILD | 27 | ||||
-rw-r--r-- | ink_stroke_modeler/BUILD | 2 | ||||
-rw-r--r-- | ink_stroke_modeler/internal/BUILD | 2 |
3 files changed, 28 insertions, 3 deletions
@@ -0,0 +1,27 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +exports_files(["LICENSE"]) + +# Use this when testonly libraries must depend on :gtest, that requires +# different behavior in the upstream repo. +alias( + name = "gtest_for_library_testonly", + testonly = 1, + actual = "@com_google_googletest//:gtest", +) diff --git a/ink_stroke_modeler/BUILD b/ink_stroke_modeler/BUILD index f711149..f0c00c1 100644 --- a/ink_stroke_modeler/BUILD +++ b/ink_stroke_modeler/BUILD @@ -16,8 +16,6 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -exports_files(["LICENSE"]) - cc_library( name = "params", srcs = ["params.cc"], diff --git a/ink_stroke_modeler/internal/BUILD b/ink_stroke_modeler/internal/BUILD index 9679529..bf76f70 100644 --- a/ink_stroke_modeler/internal/BUILD +++ b/ink_stroke_modeler/internal/BUILD @@ -31,8 +31,8 @@ cc_library( hdrs = ["type_matchers.h"], deps = [ ":internal_types", + "//:gtest_for_library_testonly", "//ink_stroke_modeler:types", - "@com_google_googletest//:gtest", ], ) |