diff options
author | Ted Pudlik <tpudlik@google.com> | 2023-09-20 23:09:19 +0000 |
---|---|---|
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-09-20 23:09:19 +0000 |
commit | c177a43eef90582bfcb0d7ea59c00ec9e1dc6cab (patch) | |
tree | d4093d1e4c8e00c92c4b0c08b50cfd09b95040a4 /pw_unit_test | |
parent | f18b8bbb4602bfbd027ad09da208d22eb9956029 (diff) | |
download | pigweed-c177a43eef90582bfcb0d7ea59c00ec9e1dc6cab.tar.gz |
Bazel: Retire pigweed_config (part 1)
This change introduces new label flags in targets/BUILD.bazel, but
doesn't yet remove the old pigweed_config mechanism. This will allow
downstream projects to have a soft transition: they can replace all
references to pigweed_config with those to the new label flags. A
followup CL will remove the pigweed_config altogether.
Bug: b/291106264
Change-Id: I2ee8517881f12a5dfd3201be1088a5777940c073
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/168721
Reviewed-by: Kayce Basques <kayce@google.com>
Commit-Queue: Ted Pudlik <tpudlik@google.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
Diffstat (limited to 'pw_unit_test')
-rw-r--r-- | pw_unit_test/BUILD.bazel | 4 | ||||
-rw-r--r-- | pw_unit_test/docs.rst | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pw_unit_test/BUILD.bazel b/pw_unit_test/BUILD.bazel index 10f524a1a..56a26a096 100644 --- a/pw_unit_test/BUILD.bazel +++ b/pw_unit_test/BUILD.bazel @@ -65,14 +65,14 @@ pw_cc_library( config_setting( name = "light_setting", flag_values = { - "@pigweed_config//:pw_unit_test_googletest_backend": "@pigweed//pw_unit_test:light", + "@pigweed//targets:pw_unit_test_googletest_backend": "@pigweed//pw_unit_test:light", }, ) config_setting( name = "gtest_setting", flag_values = { - "@pigweed_config//:pw_unit_test_googletest_backend": "@com_google_googletest//:gtest", + "@pigweed//targets:pw_unit_test_googletest_backend": "@com_google_googletest//:gtest", }, ) diff --git a/pw_unit_test/docs.rst b/pw_unit_test/docs.rst index 74e7f18cc..7b1959436 100644 --- a/pw_unit_test/docs.rst +++ b/pw_unit_test/docs.rst @@ -597,7 +597,7 @@ test code. pw_cc_test rule ``````````````` ``pw_cc_test`` is a wrapper for `cc_test`_ that provides some defaults, -such as a dep on ``@pigweed_config//:pw_unit_test_main``. It supports and passes +such as a dep on ``@pigweed//targets:pw_unit_test_main``. It supports and passes through all the arguments recognized by ``cc_test``. Notably, tests can be enabled or disabled using ``target_compatible_with``. For example, the following test is skipped when `using upstream GoogleTest`_: |