Jean-Luc Brouillet | a2dd52f | 2017-02-16 20:57:26 -0800 | [diff] [blame] | 1 | // Copyright (C) 2017 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
Bob Badour | 8735385 | 2021-02-12 17:59:41 -0800 | [diff] [blame] | 15 | package { |
| 16 | // See: http://go/android-license-faq |
| 17 | // A large-scale-change added 'default_applicable_licenses' to import |
| 18 | // all of the 'license_kinds' from "frameworks_compile_libbcc_license" |
| 19 | // to get the below license kinds: |
| 20 | // SPDX-license-identifier-Apache-2.0 |
| 21 | default_applicable_licenses: ["frameworks_compile_libbcc_license"], |
| 22 | } |
| 23 | |
Tim Klein | 12677b0 | 2019-05-14 00:08:58 +0100 | [diff] [blame] | 24 | cc_library { |
Jean-Luc Brouillet | a2dd52f | 2017-02-16 20:57:26 -0800 | [diff] [blame] | 25 | name: "libbcc", |
Tim Klein | 12677b0 | 2019-05-14 00:08:58 +0100 | [diff] [blame] | 26 | vendor_available: true, |
Jean-Luc Brouillet | a2dd52f | 2017-02-16 20:57:26 -0800 | [diff] [blame] | 27 | host_supported: true, |
| 28 | defaults: ["libbcc-defaults"], |
| 29 | |
| 30 | srcs: [ |
| 31 | "BCCContext.cpp", |
| 32 | "BCCContextImpl.cpp", |
| 33 | "Compiler.cpp", |
| 34 | "CompilerConfig.cpp", |
Jean-Luc Brouillet | a2dd52f | 2017-02-16 20:57:26 -0800 | [diff] [blame] | 35 | "FileBase.cpp", |
| 36 | "Initialization.cpp", |
Jean-Luc Brouillet | a2dd52f | 2017-02-16 20:57:26 -0800 | [diff] [blame] | 37 | "RSAddDebugInfoPass.cpp", |
| 38 | "RSCompilerDriver.cpp", |
| 39 | "RSEmbedInfo.cpp", |
| 40 | "RSGlobalInfoPass.cpp", |
| 41 | "RSInvariant.cpp", |
| 42 | "RSInvokeHelperPass.cpp", |
| 43 | "RSIsThreadablePass.cpp", |
| 44 | "RSKernelExpand.cpp", |
| 45 | "RSScreenFunctionsPass.cpp", |
Jean-Luc Brouillet | a2dd52f | 2017-02-16 20:57:26 -0800 | [diff] [blame] | 46 | "RSScriptGroupFusion.cpp", |
Pirama Arumuga Nainar | b85ce44 | 2020-07-26 22:34:08 -0700 | [diff] [blame] | 47 | "RSFunctionsList.cpp", |
Jean-Luc Brouillet | a2dd52f | 2017-02-16 20:57:26 -0800 | [diff] [blame] | 48 | "RSX86CallConvPass.cpp", |
| 49 | "RSX86TranslateGEPPass.cpp", |
| 50 | "Script.cpp", |
| 51 | "Source.cpp", |
| 52 | ], |
| 53 | |
| 54 | shared_libs: ["libbcinfo"], |
| 55 | |
David Gross | 97e5099 | 2017-03-29 20:52:30 +0000 | [diff] [blame] | 56 | header_libs: ["slang_headers"], |
| 57 | |
Jean-Luc Brouillet | a2dd52f | 2017-02-16 20:57:26 -0800 | [diff] [blame] | 58 | target: { |
| 59 | windows: { |
| 60 | enabled: true, |
Pirama Arumuga Nainar | fbc576f | 2017-08-03 11:40:21 -0700 | [diff] [blame] | 61 | shared_libs: ["libLLVM_android"], |
Jean-Luc Brouillet | a2dd52f | 2017-02-16 20:57:26 -0800 | [diff] [blame] | 62 | }, |
| 63 | darwin: { |
Pirama Arumuga Nainar | fbc576f | 2017-08-03 11:40:21 -0700 | [diff] [blame] | 64 | shared_libs: ["libLLVM_android"], |
Jean-Luc Brouillet | a2dd52f | 2017-02-16 20:57:26 -0800 | [diff] [blame] | 65 | }, |
Colin Cross | 3291096 | 2022-03-08 18:24:37 -0800 | [diff] [blame] | 66 | host_linux: { |
Jean-Luc Brouillet | a2dd52f | 2017-02-16 20:57:26 -0800 | [diff] [blame] | 67 | static_libs: ["libLLVMLinker"], |
| 68 | allow_undefined_symbols: true, |
| 69 | }, |
| 70 | host: { |
| 71 | static_libs: [ |
| 72 | "libutils", |
| 73 | "libcutils", |
| 74 | "liblog", |
| 75 | ], |
| 76 | }, |
| 77 | android: { |
| 78 | shared_libs: [ |
Pirama Arumuga Nainar | fbc576f | 2017-08-03 11:40:21 -0700 | [diff] [blame] | 79 | "libLLVM_android", |
Jean-Luc Brouillet | a2dd52f | 2017-02-16 20:57:26 -0800 | [diff] [blame] | 80 | "libdl", |
Jean-Luc Brouillet | a2dd52f | 2017-02-16 20:57:26 -0800 | [diff] [blame] | 81 | "liblog", |
| 82 | ], |
| 83 | }, |
| 84 | }, |
| 85 | |
| 86 | product_variables: { |
| 87 | unbundled_build: { |
| 88 | // Don't build in unbundled branches |
| 89 | enabled: false, |
| 90 | }, |
| 91 | }, |
| 92 | } |