-
Notifications
You must be signed in to change notification settings - Fork 1
/
Android.bp
172 lines (161 loc) · 4.25 KB
/
Android.bp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
package {
default_applicable_licenses: ["prebuilts_build-tools_license"],
}
// Added automatically by a large-scale-change that took the approach of
// 'apply every license found to every target'. While this makes sure we respect
// every license restriction, it may not be entirely correct.
//
// e.g. GPL in an MIT project might only apply to the contrib/ directory.
//
// Please consider splitting the single license below into multiple licenses,
// taking care not to lose any license_kind information, and overriding the
// default license using the 'licenses: [...]' property on targets as needed.
//
// For unused files, consider creating a 'fileGroup' with "//visibility:private"
// to attach the license to, and including a comment whether the files may be
// used in the current project.
// See: http://go/android-license-faq
license {
name: "prebuilts_build-tools_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-0BSD",
"SPDX-license-identifier-Apache-2.0",
"SPDX-license-identifier-BSD",
"SPDX-license-identifier-GPL",
"SPDX-license-identifier-GPL-3.0",
"SPDX-license-identifier-MIT",
"SPDX-license-identifier-PSF-2.0",
"SPDX-license-identifier-Zlib",
"legacy_unencumbered",
],
// large-scale-change unable to identify any license_text files
}
cc_library_headers {
name: "FlexLexer",
host_supported: true,
vendor_available: true,
// TODO(b/153609531): remove when no longer needed.
native_bridge_supported: true,
export_include_dirs: ["common/flex"],
notice: "common/flex/NOTICE",
}
prebuilt_build_tool {
name: "bison",
deps: ["common/bison/**/*"],
export_to_make_var: "BISON",
enabled: false,
arch: {
x86_64: {
enabled: true,
},
},
target: {
darwin: {
src: "darwin-x86/bin/bison",
deps: ["darwin-x86/lib64/libc++.dylib"],
},
linux: {
src: "linux-x86/bin/bison",
deps: ["linux-x86/lib64/libc++.so"],
},
},
}
prebuilt_build_tool {
name: "flex",
export_to_make_var: "LEX",
enabled: false,
arch: {
x86_64: {
enabled: true,
},
},
target: {
darwin: {
src: "darwin-x86/bin/flex",
},
linux: {
src: "linux-x86/bin/flex",
},
},
}
prebuilt_build_tool {
name: "m4",
export_to_make_var: "M4",
enabled: false,
arch: {
x86_64: {
enabled: true,
},
},
target: {
darwin: {
src: "darwin-x86/bin/m4",
},
linux: {
src: "linux-x86/bin/m4",
},
},
}
///
// cpython3 host prebuilts
///
soong_config_module_type {
name: "cpython3_cc_prebuilt_binary",
module_type: "cc_prebuilt_binary",
config_namespace: "cpython3",
bool_variables: ["force_build_host"],
properties: ["prefer"],
}
cpython3_cc_prebuilt_binary {
name: "py3-launcher",
host_supported: true,
device_supported: false,
compile_multilib: "64",
stl: "none",
notice: "common/py3-stdlib/NOTICE",
target: {
linux_glibc_x86_64: {
srcs: ["linux-x86/bin/py3-launcher64"]
},
darwin_x86_64: {
srcs: ["darwin-x86/bin/py3-launcher64"],
},
},
// Use the prebuilts for most branches
prefer: true,
soong_config_variables: {
force_build_host: {
prefer: false,
},
},
}
cpython3_cc_prebuilt_binary {
name: "py3-launcher-autorun",
host_supported: true,
device_supported: false,
compile_multilib: "64",
stl: "none",
notice: "common/py3-stdlib/NOTICE",
target: {
linux_glibc_x86_64: {
srcs: ["linux-x86/bin/py3-launcher-autorun64"]
},
darwin_x86_64: {
srcs: ["darwin-x86/bin/py3-launcher-autorun64"],
},
},
// Use the prebuilts for most branches
prefer: true,
soong_config_variables: {
force_build_host: {
prefer: false,
},
},
}
filegroup {
name: "py3-stdlib-prebuilt-srcs",
visibility: ["//external/python/cpython3/Lib"],
srcs: ["common/py3-stdlib/**/*.py"],
path: "common/py3-stdlib",
}