• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by cargo_embargo.
2// Do not modify this file after the first "rust_*" or "genrule" module
3// because the changes will be overridden on upgrade.
4// Content before the first "rust_*" or "genrule" module is preserved.
5
6package {
7    default_applicable_licenses: ["external_rust_crates_quiche_license"],
8}
9
10// Added automatically by a large-scale-change that took the approach of
11// 'apply every license found to every target'. While this makes sure we respect
12// every license restriction, it may not be entirely correct.
13//
14// e.g. GPL in an MIT project might only apply to the contrib/ directory.
15//
16// Please consider splitting the single license below into multiple licenses,
17// taking care not to lose any license_kind information, and overriding the
18// default license using the 'licenses: [...]' property on targets as needed.
19//
20// For unused files, consider creating a 'fileGroup' with "//visibility:private"
21// to attach the license to, and including a comment whether the files may be
22// used in the current project.
23// See: http://go/android-license-faq
24license {
25    name: "external_rust_crates_quiche_license",
26    visibility: [":__subpackages__"],
27    license_kinds: [
28        "SPDX-license-identifier-BSD",
29        "SPDX-license-identifier-ISC",
30        "SPDX-license-identifier-OpenSSL",
31        "legacy_unencumbered",
32    ],
33    license_text: [
34        "COPYING",
35    ],
36}
37
38cc_library_headers {
39    name: "libquiche_ffi_headers",
40    export_include_dirs: ["include"],
41    apex_available: [
42        "//apex_available:platform",
43        "com.android.resolv",
44    ],
45    min_sdk_version: "29",
46}
47
48rust_library {
49    name: "libquiche",
50    host_supported: true,
51    crate_name: "quiche",
52    cargo_env_compat: true,
53    cargo_pkg_version: "0.17.1",
54    crate_root: "src/lib.rs",
55    edition: "2018",
56    rlibs: [
57        "liblazy_static",
58        "liblibc",
59        "liblibm",
60        "liblog_rust",
61        "liboctets",
62        "libring",
63        "libslab",
64        "libsmallvec",
65    ],
66    prefer_rlib: true,
67    shared_libs: [
68        "libcrypto",
69        "libssl",
70    ],
71    apex_available: [
72        "//apex_available:platform",
73        "com.android.resolv",
74    ],
75    product_available: true,
76    vendor_available: true,
77    min_sdk_version: "29",
78}
79
80rust_ffi {
81    name: "libquiche_ffi",
82    host_supported: true,
83    crate_name: "quiche",
84    cargo_env_compat: true,
85    cargo_pkg_version: "0.17.1",
86    crate_root: "src/lib.rs",
87    edition: "2018",
88    rlibs: [
89        "liblazy_static",
90        "liblibc",
91        "liblibm",
92        "liblog_rust",
93        "liboctets",
94        "libring",
95        "libslab",
96        "libsmallvec",
97    ],
98    prefer_rlib: true,
99    shared_libs: [
100        "libcrypto",
101        "libssl",
102    ],
103    apex_available: [
104        "//apex_available:platform",
105        "com.android.resolv",
106    ],
107    product_available: true,
108    vendor_available: true,
109    min_sdk_version: "29",
110}
111
112rust_test_host {
113    name: "quiche_host_test_src_lib",
114    crate_name: "quiche",
115    cargo_env_compat: true,
116    cargo_pkg_version: "0.17.1",
117    crate_root: "src/lib.rs",
118    test_suites: ["general-tests"],
119    auto_gen_config: true,
120    test_options: {
121        unit_test: true,
122    },
123    edition: "2018",
124    features: [
125        "boringssl-vendored",
126        "default",
127    ],
128    rustlibs: [
129        "liblazy_static",
130        "liblibc",
131        "liblibm",
132        "liblog_rust",
133        "libmio",
134        "liboctets",
135        "libring",
136        "libslab",
137        "libsmallvec",
138        "liburl",
139    ],
140    shared_libs: [
141        "libcrypto",
142        "libssl",
143    ],
144    data: [
145        "examples/cert.crt",
146        "examples/cert.key",
147        "examples/cert-big.crt",
148        "examples/rootca.crt",
149    ],
150}
151
152rust_test {
153    name: "quiche_device_test_src_lib",
154    crate_name: "quiche",
155    cargo_env_compat: true,
156    cargo_pkg_version: "0.17.1",
157    crate_root: "src/lib.rs",
158    test_suites: ["general-tests"],
159    auto_gen_config: true,
160    edition: "2018",
161    features: [
162        "boringssl-vendored",
163        "default",
164    ],
165    rustlibs: [
166        "liblazy_static",
167        "liblibc",
168        "liblibm",
169        "liblog_rust",
170        "libmio",
171        "liboctets",
172        "libring",
173        "libslab",
174        "libsmallvec",
175        "liburl",
176    ],
177    static_libs: [
178        "libcrypto_static",
179        "libssl",
180    ],
181    data: [
182        "examples/cert.crt",
183        "examples/cert.key",
184        "examples/cert-big.crt",
185        "examples/rootca.crt",
186    ],
187    shared_libs: ["libc++"],
188}
189
190rust_library_rlib {
191    name: "libquiche_static",
192    host_supported: true,
193    crate_name: "quiche",
194    cargo_env_compat: true,
195    cargo_pkg_version: "0.17.1",
196    crate_root: "src/lib.rs",
197    edition: "2018",
198    rustlibs: [
199        "liblazy_static",
200        "liblibc",
201        "liblibm",
202        "liblog_rust",
203        "liboctets",
204        "libring",
205        "libslab",
206        "libsmallvec",
207    ],
208    static_libs: [
209        "libcrypto_static",
210        "libssl",
211    ],
212    apex_available: [
213        "//apex_available:platform",
214        "com.android.resolv",
215    ],
216    product_available: true,
217    vendor_available: true,
218    min_sdk_version: "29",
219}
220