2022-06-27 04:22:09 +00:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
}
|
|
|
|
|
|
|
|
android_test {
|
|
|
|
name: "MicrodroidBenchmarkApp",
|
|
|
|
test_suites: [
|
|
|
|
"general-tests",
|
|
|
|
],
|
|
|
|
srcs: ["src/java/**/*.java"],
|
|
|
|
static_libs: [
|
2022-09-01 11:30:21 +00:00
|
|
|
"MicrodroidDeviceTestHelper",
|
2022-09-01 11:06:51 +00:00
|
|
|
"MicrodroidTestHelper",
|
2022-06-27 04:22:09 +00:00
|
|
|
"androidx.test.runner",
|
|
|
|
"androidx.test.ext.junit",
|
2022-07-25 14:44:13 +00:00
|
|
|
"com.android.microdroid.testservice-java",
|
2022-06-27 04:22:09 +00:00
|
|
|
"truth-prebuilt",
|
|
|
|
],
|
|
|
|
libs: ["android.system.virtualmachine"],
|
2022-08-08 15:31:58 +00:00
|
|
|
jni_libs: [
|
|
|
|
"MicrodroidBenchmarkNativeLib",
|
|
|
|
"libiovsock_host_jni",
|
|
|
|
],
|
2022-06-27 04:22:09 +00:00
|
|
|
platform_apis: true,
|
|
|
|
use_embedded_native_libs: true,
|
|
|
|
compile_multilib: "64",
|
|
|
|
}
|
|
|
|
|
|
|
|
cc_library_shared {
|
|
|
|
name: "MicrodroidBenchmarkNativeLib",
|
|
|
|
srcs: ["src/native/benchmarkbinary.cpp"],
|
2022-09-06 07:26:53 +00:00
|
|
|
static_libs: ["libiobenchmark"],
|
2022-07-25 14:44:13 +00:00
|
|
|
shared_libs: [
|
|
|
|
"android.system.virtualmachineservice-ndk",
|
|
|
|
"com.android.microdroid.testservice-ndk",
|
|
|
|
"libbase",
|
|
|
|
"libbinder_ndk",
|
|
|
|
"libbinder_rpc_unstable",
|
|
|
|
"liblog",
|
|
|
|
],
|
2022-06-27 04:22:09 +00:00
|
|
|
}
|
2022-08-08 15:31:58 +00:00
|
|
|
|
|
|
|
cc_library {
|
2022-09-06 07:26:53 +00:00
|
|
|
name: "libiobenchmark",
|
2022-08-08 15:31:58 +00:00
|
|
|
srcs: ["src/native/io_vsock.cpp"],
|
|
|
|
export_include_dirs: ["src/native/include"],
|
|
|
|
shared_libs: [
|
|
|
|
"libbase",
|
|
|
|
],
|
|
|
|
}
|