[vlc-devel] [PATCH 5/6] contrib: main: export ANDROID_API in CFLAGS
Alexandre Janniaux
ajanni at videolabs.io
Fri Nov 22 16:08:03 CET 2019
The headers from Android NDK will use them to expose the functions
according to their arrival in the SDK. Without this option, it could
raise issues with Meson build systems depending on Android features in
some environment configuration.
---
contrib/src/main.mak | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index fcc5411743..4ce040bb4f 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -544,6 +544,10 @@ ifdef HAVE_DARWIN_OS
CMAKE_SYSTEM_NAME = Darwin
endif
+ifdef HAVE_ANDROID
+CFLAGS += -DANDROID_NATIVE_API_LEVEL=$(ANDROID_API)
+endif
+
# CMake toolchain
toolchain.cmake:
$(RM) $@
--
2.24.0
More information about the vlc-devel
mailing list