xref: /aosp_15_r20/external/pigweed/pw_bluetooth_sapphire/fuchsia/backends.bazelrc (revision 61c4878ac05f98d0ceed94b57d316916de578985)
1# Copyright 2024 The Pigweed Authors
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4# use this file except in compliance with the License. You may obtain a copy of
5# the License at
6#
7#     https://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations under
13# the License.
14
15# The following blocks exists to prevent almost all targets instantiated from
16# @fuchsia_sdk rules/macros from being considered target_compatible_with unless
17# `--config=fuchsia` is explicitly specified.
18# This allows non-fuchsia globs like //... and all non-fuchsia-specific builders
19# to ignore the problematic fuchsia-specific targets.
20common --@fuchsia_sdk//fuchsia:fuchsia_targets_enabled=false
21common:fuchsia --@fuchsia_sdk//fuchsia:fuchsia_targets_enabled
22
23common:fuchsia --@pigweed//pw_assert:backend=@pigweed//pw_assert_fuchsia
24common:fuchsia --@pigweed//pw_assert:assert_backend_impl=@pigweed//pw_build:empty_cc_library
25common:fuchsia --@pigweed//pw_assert:check_backend=@pigweed//pw_assert_fuchsia
26common:fuchsia --@pigweed//pw_assert:check_backend_impl=@pigweed//pw_build:empty_cc_library
27common:fuchsia --@pigweed//pw_log:backend=@pigweed//pw_log_fuchsia
28common:fuchsia --@pigweed//pw_log:backend_impl=@pigweed//pw_build:empty_cc_library
29common:fuchsia --@pigweed//pw_unit_test:backend=@pigweed//pw_unit_test:googletest
30common:fuchsia --@pigweed//pw_async:task_backend=@pigweed//pw_async_fuchsia:task
31common:fuchsia --@pigweed//pw_async:fake_dispatcher_backend=@pigweed//pw_async_fuchsia:fake_dispatcher
32common:fuchsia --@pigweed//pw_sync:interrupt_spin_lock_backend=@pigweed//pw_sync_stl:interrupt_spin_lock
33
34# TODO: https://pwbug.dev/374340793 - This is a temporary workaround for now and
35# this command line option shouldn't be applied more widely.
36# Disable the injection of magic TestTrimmingTransition at analysis time
37# which does not happen when aspects are visiting the configured graph,
38# creating conflicts. See https://fxrev.dev/1047976.
39build:fuchsia --experimental_retain_test_configuration_across_testonly
40cquery:fuchsia --experimental_retain_test_configuration_across_testonly
41aquery:fuchsia --experimental_retain_test_configuration_across_testonly
42
43# The following flags are needed to build boringssl with the correct size
44build:fuchsia --copt=-DBORINGSSL_ALLOW_CXX_RUNTIME
45build:fuchsia --copt=-DOPENSSL_SMALL
46build:fuchsia --copt=-DOPENSSL_NO_ASM
47build:fuchsia --copt=-DOPENSSL_NO_SOCK
48build:fuchsia --copt=-DNDEBUG
49