blob: 1c0cef89b3764d5e8eb8fe12c93bea8149449d05 [file] [log] [blame]
//
// Copyright (C) 2019 The Android Open Source Project
//
// 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.
//
cc_library_static {
name: "swiftshader_marl",
vendor_available: true,
srcs: [
"src/debug.cpp",
"src/memory.cpp",
"src/scheduler.cpp",
"src/thread.cpp",
"src/trace.cpp",
],
local_include_dirs: [
"src",
],
export_include_dirs: [
"include",
],
include_dirs: [
"external/swiftshader/third_party/marl/include"
],
arch: {
arm: { srcs: ["src/osfiber_arm.c", "src/osfiber_asm_arm.S"], },
arm64: { srcs: ["src/osfiber_aarch64.c", "src/osfiber_asm_aarch64.S"], },
x86: { srcs: ["src/osfiber_x86.c", "src/osfiber_asm_x86.S"], },
x86_64: { srcs: ["src/osfiber_x64.c", "src/osfiber_asm_x64.S"], },
},
cflags: [
"-Wno-unused-parameter",
],
stl: "libc++_static",
}