aboutsummaryrefslogtreecommitdiff
path: root/src/decoder/BUILD.bazel
diff options
context:
space:
mode:
authorGravatar Jeff McGlynn <jwmcglynn@google.com>2019-01-24 16:43:50 -0800
committerGravatar Jeff McGlynn <jeff@jeffmcglynn.com>2019-01-24 17:11:52 -0800
commit4e0cc971ea82fbb985f27933af23d1afb3994290 (patch)
tree2914807c2be3ea0a0f2fc29d5faf97c19fabb368 /src/decoder/BUILD.bazel
parentf9809cf95cd592923e614f16427c4303c0eec64c (diff)
Sync/format build files
* Always compile astc_utils with -O3, since it is very slow when built with fastbuild. * Add missing licenses() declarations. * Declare test library as testonly. * Run BUILD file formatter. Additionally, fix one ambiguous usage of auto in src/decoder/parition.cc
Diffstat (limited to 'src/decoder/BUILD.bazel')
-rw-r--r--src/decoder/BUILD.bazel22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/decoder/BUILD.bazel b/src/decoder/BUILD.bazel
index f2fded5..2ff0ead 100644
--- a/src/decoder/BUILD.bazel
+++ b/src/decoder/BUILD.bazel
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+licenses(["notice"])
+
cc_library(
name = "footprint",
srcs = ["footprint.cc"],
@@ -47,6 +49,10 @@ cc_library(
"types.h",
"weight_infill.h",
],
+ copts = [
+ "-Wno-unused-variable",
+ "-O3",
+ ],
deps = [
":footprint",
"//src/base",
@@ -57,12 +63,12 @@ cc_library(
name = "codec",
srcs = ["codec.cc"],
hdrs = ["codec.h"],
+ visibility = ["//:__pkg__"],
deps = [
":astc_utils",
":footprint",
"//src/base",
],
- visibility = ["//:__pkg__"],
)
cc_binary(
@@ -82,10 +88,9 @@ cc_binary(
cc_library(
name = "test",
+ testonly = 1,
hdrs = ["test/image_utils.h"],
- deps = [
- "@gtest//:gtest_main",
- ],
+ deps = ["@gtest//:gtest_main"],
)
cc_test(
@@ -95,12 +100,13 @@ cc_test(
deps = [
":astc_utils",
"@gtest//:gtest_main",
+ "//src/base",
],
)
cc_test(
name = "partition_test",
- size = "small",
+ size = "medium",
srcs = ["test/partition_test.cc"],
deps = [
":astc_utils",
@@ -115,6 +121,7 @@ cc_test(
deps = [
":astc_utils",
"@gtest//:gtest_main",
+ "//src/base",
],
)
@@ -180,8 +187,8 @@ cc_test(
"testdata/rgb_*.bmp",
]),
deps = [
- ":test",
":astc_utils",
+ ":test",
"@gtest//:gtest_main",
],
)
@@ -195,9 +202,10 @@ cc_test(
"testdata/atlas_small_*.bmp",
]),
deps = [
- ":test",
":codec",
+ ":test",
"@gtest//:gtest_main",
+ "//:api",
],
)