blob: e69abcdeb738f41819e2a920e7252222b7fc83ea [file] [edit]
# Copyright 2025 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("@rules_python//python:defs.bzl", "py_binary", "py_library")
load("@rules_python//python:py_test.bzl", "py_test")
package(default_visibility = ["//visibility:public"])
py_library(
name = "cmake_converter_common_lib",
srcs = ["cmake_converter_common.py"],
)
py_test(
name = "cmake_converter_common_test",
srcs = ["cmake_converter_common_test.py"],
imports = ["."],
deps = [":cmake_converter_common_lib"],
)
py_binary(
name = "driver_subsys_cmake_to_bazel",
srcs = ["driver_subsys_cmake_to_bazel.py"],
deps = [":driver_subsys_cmake_to_bazel_lib"],
)
py_test(
name = "driver_subsys_cmake_to_bazel_test",
srcs = ["driver_subsys_cmake_to_bazel_test.py"],
imports = ["."],
deps = [":driver_subsys_cmake_to_bazel_lib"],
)
py_library(
name = "driver_subsys_cmake_to_bazel_lib",
srcs = ["driver_subsys_cmake_to_bazel.py"],
deps = [":cmake_converter_common_lib"],
)
py_binary(
name = "soc_cmake_to_bazel",
srcs = ["soc_cmake_to_bazel.py"],
deps = [":soc_cmake_to_bazel_lib"],
)
py_test(
name = "soc_cmake_to_bazel_test",
srcs = ["soc_cmake_to_bazel_test.py"],
imports = ["."],
deps = [":soc_cmake_to_bazel_lib"],
)
py_library(
name = "soc_cmake_to_bazel_lib",
srcs = ["soc_cmake_to_bazel.py"],
deps = [":cmake_converter_common_lib"],
)