Commit 3f1a7824 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Set a bunch of flags for libvlccore from Makefile

parent a2679b31
...@@ -475,8 +475,6 @@ dnl ...@@ -475,8 +475,6 @@ dnl
dnl Iconv stuff dnl Iconv stuff
dnl dnl
AM_ICONV AM_ICONV
VLC_ADD_CFLAGS([libvlccore],[${INCICONV}])
VLC_ADD_LIBS([libvlccore],[${LTLIBICONV}])
dnl Check for broken versions of mingw-runtime compatability library dnl Check for broken versions of mingw-runtime compatability library
AS_IF([test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce"], [ AS_IF([test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce"], [
...@@ -614,7 +612,7 @@ AC_SEARCH_LIBS(connect, [socket], [ ...@@ -614,7 +612,7 @@ AC_SEARCH_LIBS(connect, [socket], [
]) ])
LIBS="$LIBS_save" LIBS="$LIBS_save"
AS_IF([test -n "$SOCKET_LIBS"], [ AS_IF([test -n "$SOCKET_LIBS"], [
VLC_ADD_LIBS([libvlccore access_http access_mms access_udp access_tcp access_ftp access_rtmp access_output_udp access_output_shout sap stream_out_select stream_out_standard stream_out_rtp stream_out_raop vod_rtsp access_realrtsp rtp oldrc netsync gnutls growl_udp flac ts audioscrobbler lua remoteosd zvbi audiobargraph_a netsync],[${SOCKET_LIBS}]) VLC_ADD_LIBS([access_http access_mms access_udp access_tcp access_ftp access_rtmp access_output_udp access_output_shout sap stream_out_select stream_out_standard stream_out_rtp stream_out_raop vod_rtsp access_realrtsp rtp oldrc netsync gnutls growl_udp flac ts audioscrobbler lua remoteosd zvbi audiobargraph_a netsync],[${SOCKET_LIBS}])
]) ])
AC_SUBST(SOCKET_LIBS) AC_SUBST(SOCKET_LIBS)
...@@ -678,7 +676,7 @@ AC_CHECK_FUNC(getopt_long,, [ ...@@ -678,7 +676,7 @@ AC_CHECK_FUNC(getopt_long,, [
AC_SUBST(GNUGETOPT_LIBS) AC_SUBST(GNUGETOPT_LIBS)
AC_CHECK_LIB(m,cos,[ AC_CHECK_LIB(m,cos,[
VLC_ADD_LIBS([adjust wave ripple psychedelic gradient a52tofloat32 dtstofloat32 x264 goom visual panoramix rotate noise grain scene kate flac lua chorus_flanger freetype avcodec avformat access_avio swscale postproc i420_rgb faad twolame equalizer spatializer param_eq samplerate libvlccore freetype mod mpc dmo quicktime realvideo qt4 compressor headphone_channel_mixer normvol audiobargraph_a speex mono colorthres extract ball access_imem hotkeys mosaic gaussianblur dbus x264],[-lm]) VLC_ADD_LIBS([adjust wave ripple psychedelic gradient a52tofloat32 dtstofloat32 x264 goom visual panoramix rotate noise grain scene kate flac lua chorus_flanger freetype avcodec avformat access_avio swscale postproc i420_rgb faad twolame equalizer spatializer param_eq samplerate freetype mod mpc dmo quicktime realvideo qt4 compressor headphone_channel_mixer normvol audiobargraph_a speex mono colorthres extract ball access_imem hotkeys mosaic gaussianblur dbus x264],[-lm])
LIBM="-lm" LIBM="-lm"
], [ ], [
LIBM="" LIBM=""
...@@ -713,7 +711,7 @@ AS_IF([test "$LIBDL" != "no"], [ ...@@ -713,7 +711,7 @@ AS_IF([test "$LIBDL" != "no"], [
LIBDL="" LIBDL=""
]) ])
AC_SUBST(LIBDL) AC_SUBST(LIBDL)
VLC_ADD_LIBS([libvlccore realvideo lua],[$LIBDL]) VLC_ADD_LIBS([realvideo lua],[$LIBDL])
dnl Check for thread library dnl Check for thread library
if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"; then if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"; then
......
...@@ -199,18 +199,21 @@ AM_LDFLAGS += -avoid-version ...@@ -199,18 +199,21 @@ AM_LDFLAGS += -avoid-version
endif endif
libvlccore_la_SOURCES = $(SOURCES_libvlc) libvlccore_la_SOURCES = $(SOURCES_libvlc)
libvlccore_la_CFLAGS = $(CFLAGS_libvlccore) \ libvlccore_la_CPPFLAGS = $(INCICONV) \
-DMODULE_STRING=\"main\" \ -DMODULE_STRING=\"main\" \
-DLOCALEDIR=\"$(localedir)\" \ -DLOCALEDIR=\"$(localedir)\" \
-DSYSCONFDIR=\"$(sysconfdir)\" \ -DSYSCONFDIR=\"$(sysconfdir)\" \
-DDATA_PATH=\"$(vlcdatadir)\" \ -DDATA_PATH=\"$(vlcdatadir)\" \
-DPKGLIBDIR=\"$(vlclibdir)\" -DPKGLIBDIR=\"$(vlclibdir)\"
libvlccore_la_CFLAGS = $(CFLAGS_libvlccore)
libvlccore_la_LDFLAGS = $(LDFLAGS_libvlccore) $(AM_LDFLAGS) \ libvlccore_la_LDFLAGS = $(LDFLAGS_libvlccore) $(AM_LDFLAGS) \
-no-undefined \ -no-undefined \
-export-symbols $(srcdir)/libvlccore.sym \ -export-symbols $(srcdir)/libvlccore.sym \
-version-info 5:0:0 -version-info 5:0:0
libvlccore_la_LIBADD = $(LIBS_libvlccore) $(AM_LIBADD) \ libvlccore_la_LIBADD = $(LIBS_libvlccore) \
$(LTLIBINTL) ../compat/libcompat.la $(LTLIBINTL) $(LTLIBICONV) \
$(SOCKET_LIBS) $(LIBDL) $(LIBM) \
../compat/libcompat.la
libvlccore_la_DEPENDENCIES = libvlccore.sym libvlccore_la_DEPENDENCIES = libvlccore.sym
if HAVE_WIN32 if HAVE_WIN32
libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT) libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
......
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