aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2021-04-16 00:03:20 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-04-16 00:03:20 +0000
commit5960a61e6a4ca16fe661bb8e638fa16a993dba1c (patch)
treec9f2aa6ff169baaf3ce8f031fbf1364cb8c9b07a
parenta22ec997d2e32264fd3ff752a4163c30337d84ff (diff)
parent1caf4528302ab4ba0ab82905caea172d17f87e69 (diff)
downloadlibwebsockets-android12L-d2-s6-release.tar.gz
Original change: https://android-review.googlesource.com/c/platform/external/libwebsockets/+/1672329 Change-Id: I1eb57497998d438b0849a3621a02916c8ace3be3
-rw-r--r--Android.bp29
1 files changed, 24 insertions, 5 deletions
diff --git a/Android.bp b/Android.bp
index bda6b4eb..1e66aba2 100644
--- a/Android.bp
+++ b/Android.bp
@@ -160,18 +160,37 @@ cc_library_static {
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,
},
+ android: {
+ shared_libs: [
+ "libcrypto",
+ ],
+ cflags: [
+ "-Wno-unused-parameter",
+ "-Wno-missing-field-initializers",
+ ],
+ },
host: {
+ static_libs: [
+ "libcrypto",
+ ],
cflags: [
+ "-UNDEBUG",
"-Wall",
"-Wsign-compare",
"-Wstrict-aliasing",