summaryrefslogtreecommitdiff
path: root/benchmark/Android.bp
diff options
context:
space:
mode:
author Igor Murashkin <iam@google.com> 2016-09-30 14:12:14 -0700
committer Igor Murashkin <iam@google.com> 2016-10-03 18:04:06 +0000
commitf5658b42d5225853d06defa84815b7d398761cd8 (patch)
treeb7a69951ca0ac81abc30751bc222443139f75e60 /benchmark/Android.bp
parent4c226593625b48b7338e6b090f5285f0eca716fc (diff)
benchmark: Add a build target that's not Android-dependent
Allow building the micronative portion of libartbenchmark as pure JNI without any android library dependencies. Bug: 31401609 Change-Id: I99f1466fb668a9ae5dd2f7229dca44d3bb064e15
Diffstat (limited to 'benchmark/Android.bp')
-rw-r--r--benchmark/Android.bp28
1 files changed, 28 insertions, 0 deletions
diff --git a/benchmark/Android.bp b/benchmark/Android.bp
index 94ad0155ff..050100ff23 100644
--- a/benchmark/Android.bp
+++ b/benchmark/Android.bp
@@ -43,3 +43,31 @@ art_cc_library {
"-Wno-frame-larger-than=",
],
}
+
+art_cc_library {
+ name: "libartbenchmark-micronative-host",
+ host_supported: true,
+ device_supported: false,
+ defaults: ["art_defaults", "art_debug_defaults"],
+ srcs: [
+ "jni_loader.cc",
+ "micro-native/micro_native.cc",
+ ],
+ shared_libs: [
+ ],
+ static_libs: [
+ ],
+ include_dirs: [
+ "libnativehelper/include/nativehelper" // only for jni.h
+ ],
+ stl: "libc++_static",
+ clang: true,
+ target: {
+ host: {
+ host_ldlibs: ["-ldl", "-lpthread"],
+ },
+ },
+ cflags: [
+ "-Wno-frame-larger-than=",
+ ],
+}