blob: d478c1608b8454e632adb3047d9d1ceddc46df33 [file] [log] [blame]
Chih-Hung Hsieh497df9d2019-10-14 22:16:51 -07001// This file is generated by cargo2android.py, then added from old Android.bp:
2// module name, enabled, relative_install_path, target, required,
3// flags, ld_flags, shared_libs, static_libs.
4
Ivan Lozano324ed132019-11-15 08:12:24 -08005rust_defaults {
6 name: "crosvm_defaults",
Ivan Lozanocb3744a2019-08-02 12:44:06 -07007 edition: "2018",
8 enabled: false,
Ivan Lozano324ed132019-11-15 08:12:24 -08009 target: {
10 linux_glibc_x86_64: {
11 enabled: true,
12 },
13 },
14}
15
16rust_binary_host {
17 name: "crosvm.experimental",
18 defaults: ["crosvm_defaults"],
19 crate_name: "crosvm",
Ivan Lozanocb3744a2019-08-02 12:44:06 -070020 srcs: ["src/main.rs"],
21
22 target: {
23 linux_glibc_x86_64: {
Ivan Lozano324ed132019-11-15 08:12:24 -080024 relative_install_path: "x86_64-linux-gnu",
Ivan Lozanocb3744a2019-08-02 12:44:06 -070025 rlibs: ["libx86_64_rust"],
Ivan Lozanocb3744a2019-08-02 12:44:06 -070026 },
27 },
28
29 // Install the crosvm prebuilts as requirements until we're building these as well.
30 required: [
31 "x86_64_linux_gnu_libepoxy.so.0_for_crosvm",
32 "x86_64_linux_gnu_libgbm.so.1_for_crosvm",
33 "x86_64_linux_gnu_libvirglrenderer.so.0_for_crosvm",
34 ],
35
36 features: [
37 "default-no-sandbox",
38 "gpu",
39 ],
40 flags: [
41 "-C overflow-checks=y",
42 "-C panic=abort",
43 "-L device/google/cuttlefish_vmm/x86_64-linux-gnu/bin/",
44 ],
45 ld_flags: [
46 "-Wl,--rpath,\\$$ORIGIN",
47 "-Wl,--rpath,\\$$ORIGIN/../../lib64",
48 ],
49
50 rlibs: [
Ivan Lozanocb3744a2019-08-02 12:44:06 -070051 "libarch",
Chih-Hung Hsieh497df9d2019-10-14 22:16:51 -070052 "libassertions",
Ivan Lozanocb3744a2019-08-02 12:44:06 -070053 "libaudio_streams",
54 "libbit_field",
55 "libbyteorder",
56 "libdata_model",
57 "libdevices",
Ivan Lozanocb3744a2019-08-02 12:44:06 -070058 "libio_jail",
59 "libkernel_cmdline",
60 "libkernel_loader",
61 "libkvm",
62 "libkvm_sys",
Chih-Hung Hsieh0074e652019-10-31 12:00:31 -070063 "liblibc",
Ivan Lozanocb3744a2019-08-02 12:44:06 -070064 "liblibcras",
65 "libmsg_socket",
66 "libnet_util",
67 "libp9",
68 "libqcow",
69 "librand_ish",
70 "libresources",
71 "libsync_rust",
72 "libsys_util",
73 "libvhost",
74 "libvm_control",
Chih-Hung Hsieh497df9d2019-10-14 22:16:51 -070075 "libx86_64_rust",
Ivan Lozanocb3744a2019-08-02 12:44:06 -070076 ],
77 proc_macros: [
Ivan Lozanocb3744a2019-08-02 12:44:06 -070078 "libenumn",
Chih-Hung Hsieh497df9d2019-10-14 22:16:51 -070079 "libremain",
Ivan Lozanocb3744a2019-08-02 12:44:06 -070080 ],
81 shared_libs: [
82 "libminijail",
83 "libcap",
84 ],
85 static_libs: [
86 "libusb",
87 "libdisplay_wl",
88 "libwayland_client",
89 "libffi",
90 "libfdt",
91 ],
92}