|
| 1 | +# ******************************************************************************* |
| 2 | +# Copyright (c) 2025 Contributors to the Eclipse Foundation |
| 3 | +# |
| 4 | +# See the NOTICE file(s) distributed with this work for additional |
| 5 | +# information regarding copyright ownership. |
| 6 | +# |
| 7 | +# This program and the accompanying materials are made available under the |
| 8 | +# terms of the Apache License Version 2.0 which is available at |
| 9 | +# https://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# SPDX-License-Identifier: Apache-2.0 |
| 12 | +# ******************************************************************************* |
| 13 | + |
| 14 | +common --registry=https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/ |
| 15 | +common --registry=https://bcr.bazel.build |
| 16 | + |
| 17 | + |
| 18 | +# Flags needed by score_baselibs and communication modules. |
| 19 | +# Do not add more! |
| 20 | +build --@score_baselibs//score/mw/log/detail/flags:KUse_Stub_Implementation_Only=False |
| 21 | +build --@score_baselibs//score/mw/log/flags:KRemote_Logging=False |
| 22 | +build --@score_baselibs//score/json:base_library=nlohmann |
| 23 | +build --@score_communication//score/mw/com/flags:tracing_library=stub |
| 24 | + |
| 25 | +# stop legacy behavior of creating __init__.py files |
| 26 | +build --incompatible_default_to_explicit_init_py |
| 27 | +build --incompatible_strict_action_env |
| 28 | +build --experimental_retain_test_configuration_across_testonly #https://github.com/bazelbuild/bazel/issues/6842 |
| 29 | + |
| 30 | +test --test_tag_filters=-manual |
| 31 | +test --test_output=errors |
| 32 | + |
| 33 | +build:_bl_common --host_platform=@score_bazel_platforms//:x86_64-linux |
| 34 | + |
| 35 | +# This config is for internal module usage ONLY. |
| 36 | +build:bl-x86_64-linux --config=_bl_common |
| 37 | +build:bl-x86_64-linux --platforms=@score_bazel_platforms//:x86_64-linux |
| 38 | +build:bl-x86_64-linux --extra_toolchains=@gcc_toolchain//:host_gcc_12 |
| 39 | + |
| 40 | +# This config is for internal module usage ONLY. |
| 41 | +build:bl-x86_64-qnx --config=_bl_common |
| 42 | +build:bl-x86_64-qnx --platforms=@score_bazel_platforms//:x86_64-qnx |
| 43 | +build:bl-x86_64-qnx --extra_toolchains=@toolchains_qnx_qcc//:qcc_x86_64 |
| 44 | + |
| 45 | +# This config is for internal module usage ONLY. |
| 46 | +# build --incompatible_enable_cc_toolchain_resolution |
| 47 | +build:bl-x86_64-linux-autosd --config=_bl_common |
| 48 | +build:bl-x86_64-linux-autosd --platforms=@score_bazel_platforms//:x86_64-linux |
| 49 | +build:bl-x86_64-linux-autosd --extra_toolchains=@autosd_10_gcc_repo//:gcc_toolchain_linux_x86_64 |
| 50 | +build:bl-x86_64-linux-autosd --force_pic |
| 51 | + |
| 52 | +# This config is for internal module usage ONLY. |
| 53 | +test:bl-x86_64-linux --config=_bl_common |
| 54 | +test:bl-x86_64-linux --build_tests_only |
| 55 | +test:bl-x86_64-linux --test_tag_filters=-manual |
| 56 | +test:bl-x86_64-linux --test_output=errors |
| 57 | + |
| 58 | + |
| 59 | +# config from communication .bazelrc file |
| 60 | +# unshare /dev/shm and /tmp |
| 61 | +test --sandbox_tmpfs_path=/dev/shm |
| 62 | +test --sandbox_tmpfs_path=/tmp |
| 63 | + |
| 64 | +# Java |
| 65 | +build --java_language_version=17 |
| 66 | +build --tool_java_language_version=17 |
| 67 | +build --java_runtime_version=remotejdk_17 |
| 68 | +build --tool_java_runtime_version=remotejdk_17 |
| 69 | + |
| 70 | +# user specific overrides (like proxy settings) |
| 71 | +try-import %workspace%/user.bazelrc |
0 commit comments