xref: /aosp_15_r20/external/swiftshader/third_party/marl/Android.bp (revision 03ce13f70fcc45d86ee91b7ee4cab1936a95046e)
1//
2// Copyright (C) 2019 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18    default_applicable_licenses: [
19        "external_swiftshader_third_party_marl_license",
20    ],
21}
22
23// Added automatically by a large-scale-change
24// http://go/android-license-faq
25license {
26    name: "external_swiftshader_third_party_marl_license",
27    visibility: [":__subpackages__"],
28    license_kinds: [
29        "SPDX-license-identifier-Apache-2.0",
30    ],
31    license_text: [
32        "LICENSE",
33    ],
34}
35
36cc_library_static {
37    name: "swiftshader_marl",
38    host_supported: true,
39    vendor_available: true,
40    srcs: [
41        "src/debug.cpp",
42        "src/memory.cpp",
43        "src/scheduler.cpp",
44        "src/thread.cpp",
45        "src/trace.cpp",
46    ],
47    local_include_dirs: [
48        "src",
49    ],
50    export_include_dirs: [
51        "include",
52    ],
53    include_dirs: [
54        "external/swiftshader/third_party/marl/include"
55    ],
56    arch: {
57        arm: {
58            instruction_set: "arm",
59            srcs: ["src/osfiber_arm.c", "src/osfiber_asm_arm.S"],
60        },
61        arm64: { srcs: ["src/osfiber_aarch64.c", "src/osfiber_asm_aarch64.S"], },
62        x86: { srcs: ["src/osfiber_x86.c", "src/osfiber_asm_x86.S"], },
63        x86_64: { srcs: ["src/osfiber_x64.c", "src/osfiber_asm_x64.S"], },
64        riscv64: { srcs: ["src/osfiber_rv64.c", "src/osfiber_asm_rv64.S"], },
65    },
66    cflags: [
67        "-Wno-unused-parameter",
68    ],
69    stl: "libc++_static",
70}
71