blob: 9c1969361ea07f9a523b388a7ef575d7c53adcfc [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",
7 crate_name: "vmbase_example",
8 srcs: ["src/main.rs"],
9 edition: "2021",
10 no_stdlibs: true,
11 stdlibs: [
12 "libcompiler_builtins.rust_sysroot",
13 "libcore.rust_sysroot",
14 ],
15 rustlibs: [
Andrew Walbranf7b6dc82022-04-20 16:24:30 +000016 "libbuddy_system_allocator",
Andrew Walbraneef98202022-04-27 16:23:06 +000017 "libvmbase",
18 ],
19 enabled: false,
20 target: {
21 android_arm64: {
22 enabled: true,
23 },
24 },
25 apex_available: ["com.android.virt"],
26}
27
28cc_binary {
29 name: "vmbase_example_elf",
30 stem: "vmbase_example",
31 srcs: [
32 "idmap.S",
33 ],
34 static_libs: [
35 "libvmbase_entry",
36 "libvmbase_example",
37 ],
38 static_executable: true,
39 nocrt: true,
40 system_shared_libs: ["libc"],
41 stl: "none",
42 linker_scripts: ["image.ld"],
43 installable: false,
44 enabled: false,
45 target: {
46 android_arm64: {
47 enabled: true,
48 },
49 },
50 apex_available: ["com.android.virt"],
51}
52
53raw_binary {
54 name: "vmbase_example",
55 src: ":vmbase_example_elf",
56 stem: "vmbase_example.bin",
57 enabled: false,
58 target: {
59 android_arm64: {
60 enabled: true,
61 },
62 },
63}