-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fuchsia_sdk: Exclude targets from non-linux builds
Move all references to @fuchsia_sdk into //pw_bluetooth_sapphire/fuchsia and specify --deleted-packages=//pw_bluetooth_sapphire/fuchsia for macos and windows host build configurations. Bug: 357895400 Change-Id: Ib4eb9ea5556cc673ba1b40d2234324def23cdb35 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/230391 Reviewed-by: Armando Montanez <[email protected]> Lint: Lint 🤖 <[email protected]> Reviewed-by: Ben Lawson <[email protected]> Commit-Queue: Darren Chan <[email protected]>
- Loading branch information
1 parent
b0b9007
commit c82a1f3
Showing
33 changed files
with
712 additions
and
383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -266,4 +266,5 @@ cc_library( | |
includes = [ | ||
"public", | ||
], | ||
tags = ["manual"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Copyright 2024 The Pigweed Authors | ||
# | ||
# 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 | ||
# | ||
# https://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. | ||
|
||
load( | ||
"@fuchsia_sdk//fuchsia:defs.bzl", | ||
"fuchsia_cc_test", | ||
"fuchsia_unittest_package", | ||
) | ||
load("//pw_build:compatibility.bzl", "incompatible_with_mcu") | ||
|
||
fuchsia_cc_test( | ||
name = "att_test", | ||
death_unittest = True, | ||
# TODO: b/310957361 - gtest not supported on device | ||
target_compatible_with = incompatible_with_mcu(), | ||
deps = [ | ||
"//pw_bluetooth_sapphire/host/att", | ||
"//pw_bluetooth_sapphire/host/att:att_test.lib", | ||
"//pw_bluetooth_sapphire/host/l2cap:testing", | ||
"//pw_bluetooth_sapphire/host/testing:gtest_main", | ||
], | ||
) | ||
|
||
fuchsia_unittest_package( | ||
name = "test_pkg", | ||
package_name = "att_tests", | ||
fuchsia_api_level = "22", | ||
tags = ["manual"], | ||
unit_tests = [ | ||
":att_test", | ||
], | ||
visibility = ["//visibility:public"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Copyright 2024 The Pigweed Authors | ||
# | ||
# 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 | ||
# | ||
# https://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. | ||
|
||
load( | ||
"@fuchsia_sdk//fuchsia:defs.bzl", | ||
"fuchsia_cc_test", | ||
"fuchsia_unittest_package", | ||
) | ||
load("//pw_build:compatibility.bzl", "incompatible_with_mcu") | ||
|
||
fuchsia_cc_test( | ||
name = "common_test", | ||
death_unittest = True, | ||
# TODO: b/310957361 - gtest not supported on device | ||
target_compatible_with = incompatible_with_mcu(), | ||
deps = [ | ||
"//pw_async:fake_dispatcher_fixture", | ||
"//pw_bluetooth_sapphire/host/common", | ||
"//pw_bluetooth_sapphire/host/common:common_test.lib", | ||
"//pw_bluetooth_sapphire/host/common:uuid_string_util", | ||
"//pw_bluetooth_sapphire/host/testing", | ||
"//pw_bluetooth_sapphire/host/testing:gtest_main", | ||
], | ||
) | ||
|
||
fuchsia_unittest_package( | ||
name = "test_pkg", | ||
package_name = "common_tests", | ||
fuchsia_api_level = "22", | ||
tags = ["manual"], | ||
unit_tests = [ | ||
":common_test", | ||
], | ||
visibility = ["//visibility:public"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Copyright 2024 The Pigweed Authors | ||
# | ||
# 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 | ||
# | ||
# https://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. | ||
|
||
load( | ||
"@fuchsia_sdk//fuchsia:defs.bzl", | ||
"fuchsia_cc_test", | ||
"fuchsia_unittest_package", | ||
) | ||
load("//pw_build:compatibility.bzl", "incompatible_with_mcu") | ||
|
||
fuchsia_cc_test( | ||
name = "gap_test", | ||
death_unittest = True, | ||
# TODO: b/310957361 - gtest not supported on device | ||
target_compatible_with = incompatible_with_mcu(), | ||
deps = [ | ||
"//pw_bluetooth_sapphire/host/common", | ||
"//pw_bluetooth_sapphire/host/gap", | ||
"//pw_bluetooth_sapphire/host/gap:gap_test.lib", | ||
"//pw_bluetooth_sapphire/host/gap:testing", | ||
"//pw_bluetooth_sapphire/host/gatt:testing", | ||
"//pw_bluetooth_sapphire/host/hci:testing", | ||
"//pw_bluetooth_sapphire/host/l2cap:testing", | ||
"//pw_bluetooth_sapphire/host/sm", | ||
"//pw_bluetooth_sapphire/host/sm:testing", | ||
"//pw_bluetooth_sapphire/host/testing", | ||
"//pw_bluetooth_sapphire/host/testing:gtest_main", | ||
], | ||
) | ||
|
||
fuchsia_unittest_package( | ||
name = "test_pkg", | ||
package_name = "gap_tests", | ||
fuchsia_api_level = "22", | ||
tags = ["manual"], | ||
unit_tests = [ | ||
":gap_test", | ||
], | ||
visibility = ["//visibility:public"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Copyright 2024 The Pigweed Authors | ||
# | ||
# 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 | ||
# | ||
# https://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. | ||
|
||
load( | ||
"@fuchsia_sdk//fuchsia:defs.bzl", | ||
"fuchsia_cc_test", | ||
"fuchsia_unittest_package", | ||
) | ||
load("//pw_build:compatibility.bzl", "incompatible_with_mcu") | ||
|
||
fuchsia_cc_test( | ||
name = "gatt_test", | ||
death_unittest = True, | ||
# TODO: b/310957361 - gtest not supported on device | ||
target_compatible_with = incompatible_with_mcu(), | ||
deps = [ | ||
"//pw_bluetooth_sapphire/host/gatt:gatt_test.lib", | ||
"@pigweed//pw_bluetooth_sapphire/host/testing:gtest_main", | ||
], | ||
) | ||
|
||
fuchsia_unittest_package( | ||
name = "test_pkg", | ||
package_name = "gatt_tests", | ||
fuchsia_api_level = "22", | ||
tags = ["manual"], | ||
unit_tests = [ | ||
":gatt_test", | ||
], | ||
visibility = ["//visibility:public"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Copyright 2024 The Pigweed Authors | ||
# | ||
# 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 | ||
# | ||
# https://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. | ||
|
||
load( | ||
"@fuchsia_sdk//fuchsia:defs.bzl", | ||
"fuchsia_cc_test", | ||
"fuchsia_unittest_package", | ||
) | ||
load("//pw_build:compatibility.bzl", "incompatible_with_mcu") | ||
|
||
fuchsia_cc_test( | ||
name = "hci_spec_test", | ||
size = "small", | ||
# TODO: b/310957361 - gtest not supported on device | ||
target_compatible_with = incompatible_with_mcu(), | ||
deps = [ | ||
"//pw_bluetooth_sapphire/host/hci-spec", | ||
"//pw_bluetooth_sapphire/host/hci-spec:hci-spec_test.lib", | ||
"//pw_bluetooth_sapphire/host/testing:gtest_main", | ||
], | ||
) | ||
|
||
fuchsia_unittest_package( | ||
name = "test_pkg", | ||
package_name = "hci_spec_tests", | ||
fuchsia_api_level = "22", | ||
tags = ["manual"], | ||
unit_tests = [ | ||
":hci_spec_test", | ||
], | ||
visibility = ["//visibility:public"], | ||
) |
Oops, something went wrong.