1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5rust_binary { 6 name: "android.hardware.light-service.cuttlefish", 7 relative_install_path: "hw", 8 vendor: true, 9 prefer_rlib: true, 10 rustlibs: [ 11 "android.hardware.light-V2-rust", 12 "libanyhow", 13 "libbinder_rs", 14 "liblog_rust", 15 "liblogger", 16 "libnix", 17 "librustutils", 18 "libserde", 19 "libserde_json", 20 "libvsock", 21 ], 22 srcs: ["main.rs"], 23 installable: false, // installed in APEX 24} 25 26prebuilt_etc { 27 name: "lights-cuttlefish.rc", 28 src: "lights-cuttlefish.rc", 29 installable: false, 30} 31 32prebuilt_etc { 33 name: "lights-cuttlefish.xml", 34 src: "lights-cuttlefish.xml", 35 sub_dir: "vintf", 36 installable: false, 37} 38 39apex { 40 name: "com.google.cf.light", 41 manifest: "apex_manifest.json", 42 file_contexts: "apex_file_contexts", 43 key: "com.google.cf.apex.key", 44 certificate: ":com.google.cf.apex.certificate", 45 updatable: false, 46 vendor: true, 47 48 binaries: ["android.hardware.light-service.cuttlefish"], 49 prebuilts: [ 50 "lights-cuttlefish.rc", 51 "lights-cuttlefish.xml", 52 ], 53 54 // remove some modules manually. 55 // TODO(b/295593640) delete this once the bug fixed. 56 unwanted_transitive_deps: [ 57 "libbase", 58 "libc++", 59 "libcutils", 60 ], 61} 62