Commit b4c4c5be authored by Julian Scheel's avatar Julian Scheel Committed by Jean-Baptiste Kempf

nacl: Add new system type

Add system type for Google Native Client.
Signed-off-by: Julian Scheel's avatarJulian Scheel <julian@jusst.de>
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2f5ee597
......@@ -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"])
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment