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 vendor_available: true, 39 srcs: [ 40 "src/debug.cpp", 41 "src/memory.cpp", 42 "src/scheduler.cpp", 43 "src/thread.cpp", 44 "src/trace.cpp", 45 ], 46 local_include_dirs: [ 47 "src", 48 ], 49 export_include_dirs: [ 50 "include", 51 ], 52 include_dirs: [ 53 "external/swiftshader/third_party/marl/include" 54 ], 55 arch: { 56 arm: { 57 instruction_set: "arm", 58 srcs: ["src/osfiber_arm.c", "src/osfiber_asm_arm.S"], 59 }, 60 arm64: { srcs: ["src/osfiber_aarch64.c", "src/osfiber_asm_aarch64.S"], }, 61 x86: { srcs: ["src/osfiber_x86.c", "src/osfiber_asm_x86.S"], }, 62 x86_64: { srcs: ["src/osfiber_x64.c", "src/osfiber_asm_x64.S"], }, 63 }, 64 cflags: [ 65 "-Wno-unused-parameter", 66 ], 67 stl: "libc++_static", 68} 69