Merge changes I27fa4dd6,I5bd8c2d2
* changes:
Enable NDEBUG for libwebsockets on debuggable and host builds.
Enable device build.
diff --git a/Android.bp b/Android.bp
index bda6b4e..1e66aba 100644
--- a/Android.bp
+++ b/Android.bp
@@ -160,18 +160,37 @@
srcs: libwebsocketsSrcFiles,
local_include_dirs: libwebsocketsIncludePath,
export_include_dirs: ["include"],
- static_libs: ["libcrypto", "libssl", "libcap"],
+ static_libs: [
+ "libssl",
+ "libcap",
+ ],
host_supported: true,
- device_supported: false,
- target: {
- android: {
- enabled: false,
+ product_variables: {
+ debuggable: {
+ cflags: [
+ "-UNDEBUG",
+ ],
},
+ },
+ target: {
darwin: {
enabled: false,
},
- host: {
+ android: {
+ shared_libs: [
+ "libcrypto",
+ ],
cflags: [
+ "-Wno-unused-parameter",
+ "-Wno-missing-field-initializers",
+ ],
+ },
+ host: {
+ static_libs: [
+ "libcrypto",
+ ],
+ cflags: [
+ "-UNDEBUG",
"-Wall",
"-Wsign-compare",
"-Wstrict-aliasing",