From 7818d3ba887d096a281aeea5eb3d2b5f33abc0c3 Mon Sep 17 00:00:00 2001 From: Brian Barcenas Date: Fri, 2 Dec 2022 23:48:11 +0000 Subject: [PATCH] pw_unit_test: Marking pw_disableable_target as exportable and internal Change-Id: Ib06fbbee8792f3261dd74492fbd1b015652df3d0 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/122370 Reviewed-by: Wyatt Hepler Commit-Queue: Brian Barcenas Commit-Queue: Wyatt Hepler --- pw_unit_test/test.gni | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pw_unit_test/test.gni b/pw_unit_test/test.gni index e7e3ccd891..19344d6eb9 100644 --- a/pw_unit_test/test.gni +++ b/pw_unit_test/test.gni @@ -109,11 +109,11 @@ if (pw_unit_test_EXECUTABLE_TARGET_TYPE != "pw_executable" && # .DISABLED and creates an empty group. This can be # used to conditionally create targets without having to conditionally add them # to groups. This results in simpler BUILD.gn files. -template("_pw_disableable_target") { +template("pw_internal_disableable_target") { assert(defined(invoker.enable_if), - "`enable_if` is required for _pw_disableable_target") + "`enable_if` is required for pw_internal_disableable_target") assert(defined(invoker.target_type), - "`target_type` is required for _pw_disableable_target") + "`target_type` is required for pw_internal_disableable_target") if (invoker.enable_if) { _actual_target_name = target_name @@ -206,7 +206,7 @@ template("pw_test") { } # The unit test code as a source_set. - _pw_disableable_target("$target_name.lib") { + pw_internal_disableable_target("$target_name.lib") { target_type = "pw_source_set" enable_if = _test_is_enabled forward_variables_from(invoker, "*", [ "metadata" ]) @@ -225,7 +225,7 @@ template("pw_test") { } } - _pw_disableable_target(_test_target_name) { + pw_internal_disableable_target(_test_target_name) { target_type = pw_unit_test_EXECUTABLE_TARGET_TYPE enable_if = _test_is_enabled