blob: 630cee6ece870f70707f667348d3ea177f473aee [file] [log] [blame]
Andrew Walbraneef98202022-04-27 16:23:06 +00001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
5rust_ffi_static {
6 name: "libvmbase_example",
David Brazdil30a7f082022-07-07 15:30:14 +01007 defaults: ["vmbase_ffi_defaults"],
Andrew Walbraneef98202022-04-27 16:23:06 +00008 crate_name: "vmbase_example",
9 srcs: ["src/main.rs"],
Andrew Walbraneef98202022-04-27 16:23:06 +000010 rustlibs: [
Andrew Walbran13564542022-04-20 16:29:45 +000011 "libaarch64_paging",
Pierre-Clément Tosi1bf532b2023-11-13 11:06:20 +000012 "libcstr",
Alice Wangcb9d2f92023-02-06 10:29:00 +000013 "libdiced_open_dice_nostd",
Andrew Walbran730375d2022-12-21 14:04:34 +000014 "libfdtpci",
David Brazdil1baa9a92022-06-28 14:47:50 +010015 "liblibfdt",
David Brazdilb41aa8f2022-07-05 12:41:00 +010016 "liblog_rust_nostd",
Andrew Walbran8217d062022-11-22 16:56:18 +000017 "libvirtio_drivers",
Andrew Walbraneef98202022-04-27 16:23:06 +000018 "libvmbase",
19 ],
Andrew Walbraneef98202022-04-27 16:23:06 +000020}
21
22cc_binary {
Pierre-Clément Tosib1300352022-09-09 11:01:06 +010023 name: "vmbase_example",
David Brazdil30a7f082022-07-07 15:30:14 +010024 defaults: ["vmbase_elf_defaults"],
Andrew Walbraneef98202022-04-27 16:23:06 +000025 srcs: [
26 "idmap.S",
27 ],
28 static_libs: [
Andrew Walbraneef98202022-04-27 16:23:06 +000029 "libvmbase_example",
30 ],
Andrew Walbrana5b7af52022-07-06 15:06:20 +000031 linker_scripts: [
32 "image.ld",
33 ":vmbase_sections",
34 ],
Andrew Walbraneef98202022-04-27 16:23:06 +000035}
36
37raw_binary {
Pierre-Clément Tosib1300352022-09-09 11:01:06 +010038 name: "vmbase_example_bin",
39 stem: "vmbase_example.bin",
40 src: ":vmbase_example",
Andrew Walbraneef98202022-04-27 16:23:06 +000041 enabled: false,
42 target: {
43 android_arm64: {
44 enabled: true,
45 },
46 },
47}