[vlc-commits] contrib: main: export ANDROID_API in CFLAGS
Alexandre Janniaux
git at videolan.org
Tue Nov 26 13:58:13 CET 2019
vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Tue Nov 26 10:56:41 2019 +0100| [e08b8f6a8431fefe142a85e24e08a1c6dcc74183] | committer: Thomas Guillem
contrib: main: export ANDROID_API in CFLAGS
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.
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e08b8f6a8431fefe142a85e24e08a1c6dcc74183
---
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) $@
More information about the vlc-commits
mailing list