Enable libnativehelper for Windows
This requires using the Windows specific API for loading/manipulating
native libraries, and string printing.
libnativehelper is a dependency of layoutlib native (used for desktop
rendering of Android resources), which is why it needs a Windows verion.
Bug: 117921091
Test: lunch sdk && make libnativehelper
Change-Id: I20fa392ac7e3c031ce076435bf4380205992608b
diff --git a/Android.bp b/Android.bp
index 06f096e..f2340f1 100644
--- a/Android.bp
+++ b/Android.bp
@@ -17,18 +17,33 @@
host_supported: true,
export_include_dirs: ["include_jni"],
vendor_available: true,
+ target: {
+ windows: {
+ enabled: true,
+ },
+ },
}
cc_library_headers {
name: "libnativehelper_header_only",
host_supported: true,
export_include_dirs: ["header_only_include"],
+ target: {
+ windows: {
+ enabled: true,
+ },
+ },
}
cc_library_headers {
name: "jni_platform_headers",
host_supported: true,
export_include_dirs: ["platform_include"],
+ target: {
+ windows: {
+ enabled: true,
+ },
+ },
}
cc_library {
@@ -41,6 +56,7 @@
"toStringArray.cpp",
],
shared_libs: [
+ "libbase",
"liblog",
],
cflags: [
@@ -56,6 +72,11 @@
symbol_file: "libnativehelper.map.txt",
versions: ["1"],
},
+ target: {
+ windows: {
+ enabled: true,
+ },
+ },
}
//