blob: 1747183f0fc6cbf5e920f4c26dc6d3aa294d2bd6 [file] [log] [blame]
Inseob Kim5d5476b2022-06-27 13:22:09 +09001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
5android_test {
6 name: "MicrodroidBenchmarkApp",
7 test_suites: [
8 "general-tests",
9 ],
10 srcs: ["src/java/**/*.java"],
11 static_libs: [
Alice Wang7e0843d2022-09-01 11:30:21 +000012 "MicrodroidDeviceTestHelper",
Alice Wangbc039c02022-09-01 11:06:51 +000013 "MicrodroidTestHelper",
Inseob Kim5d5476b2022-06-27 13:22:09 +090014 "androidx.test.runner",
15 "androidx.test.ext.junit",
Alice Wang246108f2022-07-25 14:44:13 +000016 "com.android.microdroid.testservice-java",
Inseob Kim5d5476b2022-06-27 13:22:09 +090017 "truth-prebuilt",
18 ],
Nikita Ioffe0ef49382022-11-18 14:28:08 +000019 // We need to compile against the .impl library which includes the hidden
20 // APIs. Once the APIs are promoted to @SystemApi we can switch to
21 // framework-virtualization, which contains API stubs.
22 libs: ["framework-virtualization.impl"],
Alice Wang98e6e8a2022-08-08 15:31:58 +000023 jni_libs: [
24 "MicrodroidBenchmarkNativeLib",
Alan Stokes38d00f82022-10-03 17:43:45 +010025 "MicrodroidIdleNativeLib",
Alice Wang98e6e8a2022-08-08 15:31:58 +000026 "libiovsock_host_jni",
27 ],
Inseob Kim5d5476b2022-06-27 13:22:09 +090028 platform_apis: true,
29 use_embedded_native_libs: true,
30 compile_multilib: "64",
31}
32
33cc_library_shared {
34 name: "MicrodroidBenchmarkNativeLib",
Alan Stokes08c421a2022-11-15 16:06:26 +000035 srcs: ["src/native/*.cpp"],
36 local_include_dirs: ["src/native/include"],
Alan Stokes18986452022-10-28 11:11:11 +010037 static_libs: [
Alice Wang246108f2022-07-25 14:44:13 +000038 "com.android.microdroid.testservice-ndk",
Alan Stokes18986452022-10-28 11:11:11 +010039 ],
40 shared_libs: [
Alice Wang246108f2022-07-25 14:44:13 +000041 "libbase",
42 "libbinder_ndk",
Alice Wang246108f2022-07-25 14:44:13 +000043 "liblog",
Alice Wang4d370e62022-10-11 08:33:34 +000044 "libvm_payload",
Alice Wang246108f2022-07-25 14:44:13 +000045 ],
Inseob Kim5d5476b2022-06-27 13:22:09 +090046}