[vlc-devel] [PATCH v4 04/18] nacl: Add new system type

Julian Scheel julian at jusst.de
Wed Mar 22 09:58:52 CET 2017


Add system type for Google Native Client.

Signed-off-by: Julian Scheel <julian at jusst.de>
---
 configure.ac    |  6 ++++++
 src/Makefile.am | 11 +++++++++++
 2 files changed, 17 insertions(+)

diff --git a/configure.ac b/configure.ac
index 3ba74f3ee8..f986f43acc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -297,6 +297,10 @@ case "${host_os}" in
     AC_LIBOBJ([freeaddrinfo])
     AC_LIBOBJ([gai_strerror])
     ;;
+  *nacl*)
+    SYS=nacl
+    AC_DEFINE([_XOPEN_SOURCE], [700], [POSIX and XPG 7th edition])
+    ;;
   *)
     SYS="${host_os}"
     ;;
@@ -328,6 +332,8 @@ AM_CONDITIONAL(HAVE_IOS,     test "${HAVE_IOS}" = "1")
 AM_CONDITIONAL(HAVE_OSX,     test "${HAVE_OSX}" = "1")
 AM_CONDITIONAL(HAVE_TVOS,    test "${HAVE_TVOS}" = "1")
 
+AM_CONDITIONAL(HAVE_NACL,    test "${SYS}" = "nacl")
+
 AM_CONDITIONAL(HAVE_WIN32,   test "${SYS}" = "mingw32")
 AM_CONDITIONAL(HAVE_WIN64,   test "${HAVE_WIN64}" = "1") dnl Only used for the packaging
 AM_CONDITIONAL([HAVE_WINSTORE], [test "$vlc_winstore_app" = "1"])
diff --git a/src/Makefile.am b/src/Makefile.am
index 7e9a615763..955ee1041d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -382,6 +382,16 @@ libvlccore_la_SOURCES += \
 	os2/rand.c \
 	os2/thread.c
 else
+if HAVE_NACL
+libvlccore_la_SOURCES += \
+	android/error.c \
+	posix/dirs.c \
+	posix/filesystem.c \
+	posix/netconf.c \
+	posix/rand.c \
+	posix/specific.c \
+	posix/timer.c
+else
 libvlccore_la_SOURCES += \
 	posix/filesystem.c \
 	posix/plugin.c \
@@ -425,6 +435,7 @@ endif
 endif
 endif
 endif
+endif
 
 if BUILD_HTTPD
 libvlccore_la_SOURCES += network/httpd.c
-- 
2.12.0



More information about the vlc-devel mailing list