Jeongik Cha | 146bd25 | 2024-08-13 17:44:00 +0900 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
| 5 | android_app { |
| 6 | name: "VmTerminalApp", |
Mu-Le Lee | 0b53a60 | 2024-10-10 21:01:03 +0800 | [diff] [blame] | 7 | srcs: [ |
| 8 | "java/**/*.java", |
| 9 | "java/**/*.kt", |
| 10 | ], |
Jeongik Cha | d23c5d9 | 2024-12-03 18:51:50 +0900 | [diff] [blame] | 11 | asset_dirs: ["assets"], |
Jeongik Cha | 146bd25 | 2024-08-13 17:44:00 +0900 | [diff] [blame] | 12 | resource_dirs: ["res"], |
| 13 | static_libs: [ |
Jeongik Cha | 36a58f9 | 2025-01-13 10:19:07 +0900 | [diff] [blame] | 14 | // TODO(b/330257000): will be removed when binder RPC is used |
| 15 | "android.system.virtualizationservice_internal-java", |
Mu-Le Lee | 0b53a60 | 2024-10-10 21:01:03 +0800 | [diff] [blame] | 16 | "androidx-constraintlayout_constraintlayout", |
Mu-Le Lee | 32fc7b0 | 2025-03-17 15:02:00 +0800 | [diff] [blame] | 17 | "androidx.navigation_navigation-fragment-ktx", |
Mu-Le Lee | 0b53a60 | 2024-10-10 21:01:03 +0800 | [diff] [blame] | 18 | "androidx.window_window", |
Keiichi Watanabe | 4d75b33 | 2025-03-05 12:18:32 +0000 | [diff] [blame] | 19 | "androidx.work_work-runtime", |
Seungjae Yoo | 675f133 | 2024-11-20 19:29:05 +0900 | [diff] [blame] | 20 | "apache-commons-compress", |
Jeongik Cha | 2233af3 | 2025-01-13 11:28:18 +0900 | [diff] [blame] | 21 | "avf_aconfig_flags_java", |
Seungjae Yoo | 675f133 | 2024-11-20 19:29:05 +0900 | [diff] [blame] | 22 | "com.google.android.material_material", |
| 23 | "debian-service-grpclib-lite", |
| 24 | "gson", |
Jeongik Cha | 36a58f9 | 2025-01-13 10:19:07 +0900 | [diff] [blame] | 25 | // TODO(b/331708504): will be removed when AVF framework handles surface |
| 26 | "libcrosvm_android_display_service-java", |
Seungjae Yoo | 675f133 | 2024-11-20 19:29:05 +0900 | [diff] [blame] | 27 | "VmTerminalApp.aidl-java", |
Jiyong Park | 61a9ecc | 2024-12-17 21:47:51 +0900 | [diff] [blame] | 28 | "MicrodroidTestHelper", // for DeviceProperties class |
Jeongik Cha | 146bd25 | 2024-08-13 17:44:00 +0900 | [diff] [blame] | 29 | ], |
Seungjae Yoo | e04fac8 | 2024-10-31 15:53:46 +0900 | [diff] [blame] | 30 | jni_libs: [ |
| 31 | "libforwarder_host_jni", |
| 32 | ], |
Seungjae Yoo | 675f133 | 2024-11-20 19:29:05 +0900 | [diff] [blame] | 33 | libs: [ |
| 34 | "androidx.annotation_annotation", |
| 35 | "framework-virtualization.impl", |
| 36 | "framework-annotations-lib", |
| 37 | ], |
Seungjae Yoo | e04fac8 | 2024-10-31 15:53:46 +0900 | [diff] [blame] | 38 | use_embedded_native_libs: true, |
Jeongik Cha | 4a8ee3a | 2024-09-20 18:06:29 +0900 | [diff] [blame] | 39 | platform_apis: true, |
| 40 | privileged: true, |
Jeongik Cha | 146bd25 | 2024-08-13 17:44:00 +0900 | [diff] [blame] | 41 | optimize: { |
Jiyong Park | 6a2a4dc | 2024-11-05 07:33:00 +0900 | [diff] [blame] | 42 | // TODO(b/377100096): enable bytecode optimization again |
| 43 | //optimize: true, |
| 44 | proguard_flags_files: ["proguard.flags"], |
| 45 | shrink_resources: true, |
Christoffer Adamsen | efcac11 | 2025-01-17 04:42:46 -0800 | [diff] [blame] | 46 | keep_runtime_invisible_annotations: true, |
Jeongik Cha | 146bd25 | 2024-08-13 17:44:00 +0900 | [diff] [blame] | 47 | }, |
Jeongik Cha | 856767c | 2024-08-26 16:23:51 +0900 | [diff] [blame] | 48 | apex_available: [ |
| 49 | "com.android.virt", |
| 50 | ], |
Jeongik Cha | 146bd25 | 2024-08-13 17:44:00 +0900 | [diff] [blame] | 51 | } |
Jaewan Kim | b6bcab8 | 2024-10-22 00:59:12 +0900 | [diff] [blame] | 52 | |
| 53 | aidl_interface { |
| 54 | name: "VmTerminalApp.aidl", |
| 55 | srcs: ["aidl/**/*.aidl"], |
| 56 | unstable: true, |
| 57 | local_include_dir: "aidl", |
| 58 | backend: { |
| 59 | java: { |
| 60 | enabled: true, |
| 61 | apex_available: [ |
| 62 | "com.android.virt", |
| 63 | ], |
| 64 | }, |
| 65 | }, |
| 66 | } |