# Copyright 2026 Open Source Robotics Foundation, Inc. # # 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 # # http://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("@rules_cc//cc:cc_library.bzl", "cc_library") load("@rules_cc//cc:cc_shared_library.bzl", "cc_shared_library") load("@rules_cc//cc:cc_test.bzl", "cc_test") cc_library( name = "foo", srcs = ["libfoo.c"], hdrs = ["libfoo.h"], visibility = ["//visibility:private"], ) cc_shared_library( name = "foo_dynamic", features = ["windows_export_all_symbols"], visibility = ["//visibility:private"], deps = [":foo"], ) cc_test( name = "test_c", srcs = ["test.c"], dynamic_deps = [ ":foo_dynamic", "@mimick//:mimick_dynamic", ], visibility = ["//visibility:private"], deps = [ ":foo", "@mimick", ], ) cc_test( name = "test_cpp", srcs = ["test.cpp"], dynamic_deps = [ ":foo_dynamic", "@mimick//:mimick_dynamic", ], visibility = ["//visibility:private"], deps = [ ":foo", "@mimick", ], )