Add explicit dependencies on jni_headers am: 86d9a592ed
Change-Id: I45b19a32b1218d4030b5578fc592b17a248ba97d
diff --git a/apps/alloc_stress_app/Android.bp b/apps/alloc_stress_app/Android.bp
index 110523d..144be77 100644
--- a/apps/alloc_stress_app/Android.bp
+++ b/apps/alloc_stress_app/Android.bp
@@ -17,6 +17,7 @@
sdk_version: "26", // Oreo
cppflags: ["-std=c++11"],
srcs: ["src/cpp/alloc_stress_activity.cpp"],
+ header_libs: ["jni_headers"],
shared_libs: ["liblog"],
stl: "c++_static",
}
diff --git a/benchmark_libs/Android.bp b/benchmark_libs/Android.bp
index c6fcfde..ef17a91 100644
--- a/benchmark_libs/Android.bp
+++ b/benchmark_libs/Android.bp
@@ -21,6 +21,7 @@
],
export_include_dirs: ["."],
+ header_libs: ["jni_headers"],
shared_libs: [
"liblog",
"libnativewindow",
diff --git a/benchmark_libs/agq.h b/benchmark_libs/agq.h
index 7c86b95..70aa3f5 100644
--- a/benchmark_libs/agq.h
+++ b/benchmark_libs/agq.h
@@ -17,7 +17,6 @@
#ifndef AGQ_H
#define AGQ_H
-#include <jni.h>
#include <android/native_activity.h>
namespace android {
diff --git a/functional_tests/java/Android.bp b/functional_tests/java/Android.bp
index 476bce8..4f60661 100644
--- a/functional_tests/java/Android.bp
+++ b/functional_tests/java/Android.bp
@@ -17,6 +17,7 @@
sdk_version: "26", // Oreo
srcs: ["src/cpp/surface_flinger_test_activity.cpp", "src/cpp/native_choreo_activity.cpp",],
stl: "c++_shared",
+ header_libs: ["jni_headers"],
shared_libs: [
"liblog",
"libandroid",