Commit 554b453c by Jamie Madill Committed by Commit Bot

gn: Add 'test_only' label to util targets.

Clarifies that angle_util is only used in tests and samples. Bug: angleproject:3162 Change-Id: I9a578cf7a9a09b2c3fd4683155824ed2e72f68cc Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1964934Reviewed-by: 's avatarYuly Novikov <ynovikov@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 270e2e88
...@@ -1041,6 +1041,7 @@ config("angle_util_loader_config") { ...@@ -1041,6 +1041,7 @@ config("angle_util_loader_config") {
} }
angle_source_set("angle_util_loader_headers") { angle_source_set("angle_util_loader_headers") {
testonly = true
sources = [ sources = [
"util/egl_loader_autogen.h", "util/egl_loader_autogen.h",
"util/gles_loader_autogen.h", "util/gles_loader_autogen.h",
...@@ -1057,6 +1058,7 @@ angle_source_set("angle_util_loader_headers") { ...@@ -1057,6 +1058,7 @@ angle_source_set("angle_util_loader_headers") {
} }
angle_source_set("angle_util_loader") { angle_source_set("angle_util_loader") {
testonly = true
defines = [ "LIBANGLE_UTIL_IMPLEMENTATION" ] defines = [ "LIBANGLE_UTIL_IMPLEMENTATION" ]
sources = [ sources = [
...@@ -1102,6 +1104,7 @@ foreach(is_shared_library, ...@@ -1102,6 +1104,7 @@ foreach(is_shared_library,
} }
target(library_type, library_name) { target(library_type, library_name) {
testonly = true
sources = util_sources sources = util_sources
deps = [ deps = [
":angle_common", ":angle_common",
......
...@@ -17,6 +17,7 @@ config("sample_util_config") { ...@@ -17,6 +17,7 @@ config("sample_util_config") {
} }
angle_static_library("sample_util") { angle_static_library("sample_util") {
testonly = true
sources = [ sources = [
"sample_util/SampleApplication.cpp", "sample_util/SampleApplication.cpp",
"sample_util/SampleApplication.h", "sample_util/SampleApplication.h",
...@@ -53,6 +54,7 @@ template("angle_sample") { ...@@ -53,6 +54,7 @@ template("angle_sample") {
} }
angle_executable(target_name) { angle_executable(target_name) {
testonly = true
forward_variables_from(invoker, forward_variables_from(invoker,
[ [
"cflags", "cflags",
......
...@@ -591,6 +591,7 @@ if (build_angle_deqp_tests && !is_fuchsia) { ...@@ -591,6 +591,7 @@ if (build_angle_deqp_tests && !is_fuchsia) {
template("angle_deqp_source_set") { template("angle_deqp_source_set") {
angle_source_set(target_name) { angle_source_set(target_name) {
testonly = true
forward_variables_from(invoker, "*") forward_variables_from(invoker, "*")
suppressed_configs += deqp_undefine_configs suppressed_configs += deqp_undefine_configs
...@@ -808,6 +809,8 @@ if (build_angle_deqp_tests && !is_fuchsia) { ...@@ -808,6 +809,8 @@ if (build_angle_deqp_tests && !is_fuchsia) {
"data_deps", "data_deps",
]) ])
testonly = true
deps += [ deps += [
":angle_deqp_libtester", ":angle_deqp_libtester",
"$angle_root:angle_util", "$angle_root:angle_util",
...@@ -826,6 +829,7 @@ if (build_angle_deqp_tests && !is_fuchsia) { ...@@ -826,6 +829,7 @@ if (build_angle_deqp_tests && !is_fuchsia) {
if (!build_with_chromium) { if (!build_with_chromium) {
angle_executable("angle_deqp_${_api}_no_gtest") { angle_executable("angle_deqp_${_api}_no_gtest") {
testonly = true
sources = [ sources = [
"deqp_support/angle_deqp_tests_main.cpp", "deqp_support/angle_deqp_tests_main.cpp",
] ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment