xref: /aosp_15_r20/external/mesa3d/meson_to_hermetic/templates/bazel/static_library.txt (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1{# Copyright © 2024 Google Inc.
2   SPDX-License-Identifier: MIT
3#}
4cc_library(
5    name = "{{ name }}",
6    srcs = [
7    {%- for src in srcs %}
8        "{{ src }}",
9    {%- endfor %}
10    ],
11    hdrs = [
12    {% for hdr in hdrs -%}
13        "{{ hdr }}",
14    {%- endfor %}
15    ]
16    {%- for include_dir in include_directories %}
17        + glob(["{{ include_dir }}"])
18    {%- endfor %}
19    ,
20    copts = [
21    {%- for copt in copts %}
22        "{{ copt }}",
23    {%- endfor %}
24    ],
25    deps = [
26    {%- for dep in deps %}
27        "{{ dep }}",
28    {%- endfor %}
29    ],
30    target_compatible_with = [
31    {%- for target_compat in target_compatible_with %}
32        "{{ target_compat }}",
33    {%- endfor %}
34    ],
35    visibility = [ "//visibility:public" ],
36)
37