# 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("@zephyr-bazel//:defs.bzl", "dts_cc_library")
package(default_visibility = ["//visibility:public"])

label_flag(
    name = "pw_assert_backend_impl",
    build_setting_default = "@pigweed//pw_assert_log:assert_backend",
)

dts_cc_library(
    name = "app_host_dts",
    dts_lib = "@zephyr-bazel//boards/native/native_sim:native_sim",
)

cc_binary(
    name = "app",
    srcs = ["hello_dts.cc"],
    malloc = select({
        "@platforms//cpu:armv7e-m": "@pigweed//pw_malloc",
        "@platforms//cpu:x86_64": "@bazel_tools//tools/cpp:malloc",
    }),
    deps = [
        "@pigweed//pw_log",
        "@pigweed//pw_sys_io",
        "@pigweed//pw_assert:backend_impl",
        "@pigweed//pw_log:backend_impl",
        "@zephyr-bazel//:zephyr",
    ] + select({
        "@platforms//cpu:armv7e-m": [
            "@pigweed//pw_toolchain/arm_gcc:arm_none_eabi_gcc_support",
            "@pigweed//targets/stm32f429i_disc1:basic_linker_script",
            "@pigweed//targets/stm32f429i_disc1:pre_init",
        ],
        "@platforms//cpu:x86_64": [
            "@zephyr-bazel//:posix",
            ":app_host_dts",
        ],
    }),
    copts = select({
        "@platforms//cpu:armv7e-m": [],
        "@platforms//cpu:x86_64": [
            "-DCONFIG_ARCH_POSIX=1",
        ],
    }),
)
