1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5cc_library_shared { 6 name: "libapkmanifest_native", 7 defaults: ["avf_build_flags_cc"], 8 srcs: ["native/*.cpp"], 9 shared_libs: [ 10 "libandroidfw", 11 "libbase", 12 "liblog", 13 "libutils", 14 ], 15} 16 17rust_bindgen { 18 name: "libapkmanifest_bindgen", 19 defaults: ["avf_build_flags_rust"], 20 edition: "2021", 21 wrapper_src: "native/apkmanifest.hpp", 22 crate_name: "apkmanifest_bindgen", 23 source_stem: "bindings", 24 bindgen_flags: [ 25 "--default-enum-style rust", 26 ], 27} 28 29rust_library { 30 name: "libapkmanifest", 31 crate_name: "apkmanifest", 32 defaults: ["avf_build_flags_rust"], 33 edition: "2021", 34 srcs: ["src/apkmanifest.rs"], 35 rustlibs: [ 36 "libanyhow", 37 "libapkzip", 38 "libapkmanifest_bindgen", 39 "libscopeguard", 40 ], 41 shared_libs: ["libapkmanifest_native"], 42 multilib: { 43 lib32: { 44 enabled: false, 45 }, 46 }, 47} 48