blob: ac2fcfb248d8d9bf8f47b630db183a3215df2c20 [file] [log] [blame]
Alan Stokes16fb8552022-02-10 15:07:27 +00001package {
Aditya Choudhary53696172024-02-05 15:46:19 +00002 default_team: "trendy_team_virtualization",
Alan Stokes16fb8552022-02-10 15:07:27 +00003 default_applicable_licenses: ["Android-Apache-2.0"],
4}
5
6rust_library {
7 name: "libcompos_verify_native_rust",
8 crate_name: "compos_verify_native",
Nikita Ioffeda1b2732023-09-04 13:46:56 +01009 defaults: ["avf_build_flags_rust"],
Alan Stokes16fb8552022-02-10 15:07:27 +000010 srcs: ["lib.rs"],
11 rustlibs: [
12 "libanyhow",
13 "libcxx",
14 "liblibc",
15 ],
16 static_libs: [
17 "libcompos_verify_native_cpp",
18 "libcompos_key",
19 ],
20 shared_libs: [
21 "libcrypto",
22 ],
23 apex_available: ["com.android.compos"],
24}
25
26cc_library_static {
27 name: "libcompos_verify_native_cpp",
Nikita Ioffe38b9e712024-02-08 15:55:07 +000028 defaults: ["avf_build_flags_cc"],
Alan Stokes16fb8552022-02-10 15:07:27 +000029 srcs: ["verify_native.cpp"],
30 static_libs: ["libcompos_key"],
31 shared_libs: [
32 "libbase",
33 "libcrypto",
34 ],
35 generated_headers: ["compos_verify_native_header"],
36 generated_sources: ["compos_verify_native_code"],
37 apex_available: ["com.android.compos"],
38}
39
40genrule {
41 name: "compos_verify_native_code",
42 tools: ["cxxbridge"],
43 cmd: "$(location cxxbridge) $(in) >> $(out)",
44 srcs: ["lib.rs"],
45 out: ["verify_native_cxx_generated.cc"],
46}
47
48genrule {
49 name: "compos_verify_native_header",
50 tools: ["cxxbridge"],
51 cmd: "$(location cxxbridge) $(in) --header >> $(out)",
52 srcs: ["lib.rs"],
53 out: ["lib.rs.h"],
54}