1package { 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: [ 12 "MicrodroidDeviceTestHelper", 13 "MicrodroidTestHelper", 14 "androidx.test.runner", 15 "androidx.test.ext.junit", 16 "com.android.microdroid.testservice-java", 17 "truth", 18 ], 19 jni_libs: [ 20 "MicrodroidBenchmarkNativeLib", 21 "MicrodroidIdleNativeLib", 22 "MicrodroidTestNativeLib", 23 "libiovsock_host_jni", 24 ], 25 libs: [ 26 "framework-virtualization.impl", 27 ], 28 platform_apis: true, 29 use_embedded_native_libs: true, 30 compile_multilib: "64", 31 required: ["perf-setup"], 32 host_required: ["MicrodroidTestPreparer"], 33 data: [":test_microdroid_vendor_image"], 34} 35 36cc_library_shared { 37 name: "MicrodroidBenchmarkNativeLib", 38 defaults: ["avf_build_flags_cc"], 39 srcs: ["src/native/*.cpp"], 40 local_include_dirs: ["src/native/include"], 41 static_libs: [ 42 "com.android.microdroid.testservice-ndk", 43 ], 44 shared_libs: [ 45 "libbase", 46 "libbinder_ndk", 47 "liblog", 48 "libvm_payload#current", 49 ], 50} 51