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 --@rules_fuchsia//fuchsia/flags:fuchsia_targets_enabled=false 21common:fuchsia --@rules_fuchsia//fuchsia/flags:fuchsia_targets_enabled 22 23common:fuchsia --@pigweed//pw_assert:assert_backend=@pigweed//pw_assert_fuchsia:assert_backend 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:check_backend 26common:fuchsia --@pigweed//pw_assert:check_backend_impl=@pigweed//pw_build:empty_cc_library 27common:fuchsia --@pigweed//pw_chrono:system_clock_backend=@pigweed//pw_chrono_stl:system_clock 28common:fuchsia --@pigweed//pw_log:backend=@pigweed//pw_log_fuchsia 29common:fuchsia --@pigweed//pw_log:backend_impl=@pigweed//pw_build:empty_cc_library 30common:fuchsia --@pigweed//pw_unit_test:backend=@pigweed//pw_unit_test:googletest 31common:fuchsia --@pigweed//pw_async:task_backend=@pigweed//pw_async_fuchsia:task 32common:fuchsia --@pigweed//pw_async:fake_dispatcher_backend=@pigweed//pw_async_fuchsia:fake_dispatcher 33common:fuchsia --@pigweed//pw_sync:mutex_backend=@pigweed//pw_sync_stl:mutex 34common:fuchsia --@pigweed//pw_crypto:aes_backend=@pigweed//pw_crypto:aes_boringssl 35 36# TODO: https://pwbug.dev/374340793 - This is a temporary workaround for now and 37# this command line option shouldn't be applied more widely. 38# Disable the injection of magic TestTrimmingTransition at analysis time 39# which does not happen when aspects are visiting the configured graph, 40# creating conflicts. See https://fxrev.dev/1047976. 41build:fuchsia --experimental_retain_test_configuration_across_testonly 42cquery:fuchsia --experimental_retain_test_configuration_across_testonly 43aquery:fuchsia --experimental_retain_test_configuration_across_testonly 44 45# The following flags are needed to build boringssl with the correct size 46build:fuchsia --copt=-DBORINGSSL_ALLOW_CXX_RUNTIME 47build:fuchsia --copt=-DOPENSSL_SMALL 48build:fuchsia --copt=-DOPENSSL_NO_ASM 49build:fuchsia --copt=-DOPENSSL_NO_SOCK 50build:fuchsia --copt=-DNDEBUG 51