blob: 7c53f60a56cb7e11f813668ddbefe740f41d655a [file] [log] [blame]
Jean-Luc Brouilleta2dd52f2017-02-16 20:57:26 -08001// 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 Badour87353852021-02-12 17:59:41 -080015package {
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 Klein12677b02019-05-14 00:08:58 +010024cc_library {
Jean-Luc Brouilleta2dd52f2017-02-16 20:57:26 -080025 name: "libbcc",
Tim Klein12677b02019-05-14 00:08:58 +010026 vendor_available: true,
Jean-Luc Brouilleta2dd52f2017-02-16 20:57:26 -080027 host_supported: true,
28 defaults: ["libbcc-defaults"],
29
30 srcs: [
31 "BCCContext.cpp",
32 "BCCContextImpl.cpp",
33 "Compiler.cpp",
34 "CompilerConfig.cpp",
Jean-Luc Brouilleta2dd52f2017-02-16 20:57:26 -080035 "FileBase.cpp",
36 "Initialization.cpp",
Jean-Luc Brouilleta2dd52f2017-02-16 20:57:26 -080037 "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 Brouilleta2dd52f2017-02-16 20:57:26 -080046 "RSScriptGroupFusion.cpp",
Pirama Arumuga Nainarb85ce442020-07-26 22:34:08 -070047 "RSFunctionsList.cpp",
Jean-Luc Brouilleta2dd52f2017-02-16 20:57:26 -080048 "RSX86CallConvPass.cpp",
49 "RSX86TranslateGEPPass.cpp",
50 "Script.cpp",
51 "Source.cpp",
52 ],
53
54 shared_libs: ["libbcinfo"],
55
David Gross97e50992017-03-29 20:52:30 +000056 header_libs: ["slang_headers"],
57
Jean-Luc Brouilleta2dd52f2017-02-16 20:57:26 -080058 target: {
59 windows: {
60 enabled: true,
Pirama Arumuga Nainarfbc576f2017-08-03 11:40:21 -070061 shared_libs: ["libLLVM_android"],
Jean-Luc Brouilleta2dd52f2017-02-16 20:57:26 -080062 },
63 darwin: {
Pirama Arumuga Nainarfbc576f2017-08-03 11:40:21 -070064 shared_libs: ["libLLVM_android"],
Jean-Luc Brouilleta2dd52f2017-02-16 20:57:26 -080065 },
Colin Cross32910962022-03-08 18:24:37 -080066 host_linux: {
Jean-Luc Brouilleta2dd52f2017-02-16 20:57:26 -080067 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 Nainarfbc576f2017-08-03 11:40:21 -070079 "libLLVM_android",
Jean-Luc Brouilleta2dd52f2017-02-16 20:57:26 -080080 "libdl",
Jean-Luc Brouilleta2dd52f2017-02-16 20:57:26 -080081 "liblog",
82 ],
83 },
84 },
85
86 product_variables: {
87 unbundled_build: {
88 // Don't build in unbundled branches
89 enabled: false,
90 },
91 },
92}