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