Commit 84d0f814 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Rename the shared libraries

parent 70388797
...@@ -309,7 +309,7 @@ DISTCLEANFILES = $(BUILT_SOURCES_distclean) vlc-config.in compile ChangeLog ...@@ -309,7 +309,7 @@ DISTCLEANFILES = $(BUILT_SOURCES_distclean) vlc-config.in compile ChangeLog
# Don't use it if you don't know what it is about. # Don't use it if you don't know what it is about.
# Don't complain if it doesn't work. -- Courmisch # Don't complain if it doesn't work. -- Courmisch
libvlc: libvlc:
cd src && $(MAKE) $(AM_MAKEFLAGS) libvlc.la cd src && $(MAKE) $(AM_MAKEFLAGS) libvlccore.la
core: core:
cd src && $(MAKE) $(AM_MAKEFLAGS) vlc$(EXEEXT) cd src && $(MAKE) $(AM_MAKEFLAGS) vlc$(EXEEXT)
...@@ -671,8 +671,8 @@ package-win-common: ...@@ -671,8 +671,8 @@ package-win-common:
# Copy relevant files # Copy relevant files
cp "$(top_builddir)/src/.libs/vlc$(EXEEXT)" "$(top_builddir)/vlc-$(VERSION)/" cp "$(top_builddir)/src/.libs/vlc$(EXEEXT)" "$(top_builddir)/vlc-$(VERSION)/"
cp "$(top_srcdir)/extras/package/win32/vlc.exe.manifest" "$(top_builddir)/vlc-$(VERSION)/" cp "$(top_srcdir)/extras/package/win32/vlc.exe.manifest" "$(top_builddir)/vlc-$(VERSION)/"
cp "$(top_builddir)/src/.libs/libvlccore$(LIBEXT)" "vlc-$(VERSION)/"
cp "$(top_builddir)/src/.libs/libvlc$(LIBEXT)" "vlc-$(VERSION)/" cp "$(top_builddir)/src/.libs/libvlc$(LIBEXT)" "vlc-$(VERSION)/"
cp "$(top_builddir)/src/.libs/libvlc-control$(LIBEXT)" "vlc-$(VERSION)/"
for file in AUTHORS MAINTAINERS THANKS ; \ for file in AUTHORS MAINTAINERS THANKS ; \
do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-$(VERSION)/$${file}.txt" ; done; do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-$(VERSION)/$${file}.txt" ; done;
...@@ -774,8 +774,8 @@ endif ...@@ -774,8 +774,8 @@ endif
package-win-common-strip: package-win-common-strip:
$(STRIP) "$(top_builddir)/vlc-$(VERSION)/vlc$(EXEEXT)" $(STRIP) "$(top_builddir)/vlc-$(VERSION)/vlc$(EXEEXT)"
$(STRIP) "vlc-$(VERSION)/libvlccore$(LIBEXT)"
$(STRIP) "vlc-$(VERSION)/libvlc$(LIBEXT)" $(STRIP) "vlc-$(VERSION)/libvlc$(LIBEXT)"
$(STRIP) "vlc-$(VERSION)/libvlc-control$(LIBEXT)"
if BUILD_MOZILLA if BUILD_MOZILLA
$(STRIP) $(top_builddir)/vlc-$(VERSION)/mozilla/npvlc$(LIBEXT); $(STRIP) $(top_builddir)/vlc-$(VERSION)/mozilla/npvlc$(LIBEXT);
endif endif
......
/* /*
* libvlc.cs - libvlc-control CIL bindings * libvlc.cs - libvlc CIL bindings
* *
* $Id$ * $Id$
*/ */
...@@ -68,14 +68,14 @@ namespace VideoLAN.LibVLC ...@@ -68,14 +68,14 @@ namespace VideoLAN.LibVLC
int code; int code;
IntPtr message; IntPtr message;
[DllImport ("libvlc-control.dll", EntryPoint="libvlc_exception_init")] [DllImport ("libvlc.dll", EntryPoint="libvlc_exception_init")]
static extern void Init (NativeException e); static extern void Init (NativeException e);
[DllImport ("libvlc-control.dll", EntryPoint="libvlc_exception_clear")] [DllImport ("libvlc.dll", EntryPoint="libvlc_exception_clear")]
static extern void Clear (NativeException e); static extern void Clear (NativeException e);
/*[DllImport ("libvlc-control.dll", /*[DllImport ("libvlc.dll",
EntryPoint="libvlc_exception_raised")] EntryPoint="libvlc_exception_raised")]
static extern int Raised (NativeException e);*/ static extern int Raised (NativeException e);*/
[DllImport ("libvlc-control.dll", [DllImport ("libvlc.dll",
EntryPoint="libvlc_exception_get_message")] EntryPoint="libvlc_exception_get_message")]
static extern IntPtr GetMessage (NativeException e); static extern IntPtr GetMessage (NativeException e);
......
/** /**
* @file libvlc.cs * @file libvlc.cs
* @brief libvlc-control CIL bindings * @brief libvlc CIL bindings
* *
* $Id$ * $Id$
*/ */
...@@ -71,11 +71,11 @@ namespace VideoLAN.LibVLC ...@@ -71,11 +71,11 @@ namespace VideoLAN.LibVLC
{ {
} }
[DllImport ("libvlc-control.dll", EntryPoint="libvlc_new")] [DllImport ("libvlc.dll", EntryPoint="libvlc_new")]
internal static extern internal static extern
InstanceHandle Create (int argc, U8String[] argv, NativeException ex); InstanceHandle Create (int argc, U8String[] argv, NativeException ex);
[DllImport ("libvlc-control.dll", EntryPoint="libvlc_release")] [DllImport ("libvlc.dll", EntryPoint="libvlc_release")]
static extern void Destroy (IntPtr ptr, NativeException ex); static extern void Destroy (IntPtr ptr, NativeException ex);
/** /**
...@@ -115,7 +115,7 @@ namespace VideoLAN.LibVLC ...@@ -115,7 +115,7 @@ namespace VideoLAN.LibVLC
return new MediaDescriptor (dh); return new MediaDescriptor (dh);
} }
[DllImport ("libvlc-control.dll", EntryPoint="libvlc_playlist_loop")] [DllImport ("libvlc.dll", EntryPoint="libvlc_playlist_loop")]
static extern void PlaylistLoop (InstanceHandle self, bool b, static extern void PlaylistLoop (InstanceHandle self, bool b,
NativeException ex); NativeException ex);
/** Sets the playlist loop flag. */ /** Sets the playlist loop flag. */
...@@ -128,7 +128,7 @@ namespace VideoLAN.LibVLC ...@@ -128,7 +128,7 @@ namespace VideoLAN.LibVLC
} }
} }
[DllImport ("libvlc-control.dll", EntryPoint="libvlc_playlist_play")] [DllImport ("libvlc.dll", EntryPoint="libvlc_playlist_play")]
static extern void PlaylistPlay (InstanceHandle self, int id, int optc, static extern void PlaylistPlay (InstanceHandle self, int id, int optc,
U8String[] optv, NativeException ex); U8String[] optv, NativeException ex);
/** Plays the next playlist item (if not already playing). */ /** Plays the next playlist item (if not already playing). */
...@@ -138,7 +138,7 @@ namespace VideoLAN.LibVLC ...@@ -138,7 +138,7 @@ namespace VideoLAN.LibVLC
ex.Raise (); ex.Raise ();
} }
[DllImport ("libvlc-control.dll", EntryPoint="libvlc_playlist_pause")] [DllImport ("libvlc.dll", EntryPoint="libvlc_playlist_pause")]
static extern void PlaylistPause (InstanceHandle self, static extern void PlaylistPause (InstanceHandle self,
NativeException ex); NativeException ex);
/** Toggles pause (starts playing if stopped, pauses if playing). */ /** Toggles pause (starts playing if stopped, pauses if playing). */
...@@ -148,7 +148,7 @@ namespace VideoLAN.LibVLC ...@@ -148,7 +148,7 @@ namespace VideoLAN.LibVLC
ex.Raise (); ex.Raise ();
} }
[DllImport ("libvlc-control.dll", [DllImport ("libvlc.dll",
EntryPoint="libvlc_playlist_isplaying")] EntryPoint="libvlc_playlist_isplaying")]
static extern int PlaylistIsPlaying (InstanceHandle self, static extern int PlaylistIsPlaying (InstanceHandle self,
NativeException ex); NativeException ex);
...@@ -163,7 +163,7 @@ namespace VideoLAN.LibVLC ...@@ -163,7 +163,7 @@ namespace VideoLAN.LibVLC
} }
} }
[DllImport ("libvlc-control.dll", EntryPoint="libvlc_playlist_stop")] [DllImport ("libvlc.dll", EntryPoint="libvlc_playlist_stop")]
static extern void PlaylistStop (InstanceHandle self, static extern void PlaylistStop (InstanceHandle self,
NativeException ex); NativeException ex);
/** Stops playing. */ /** Stops playing. */
...@@ -173,7 +173,7 @@ namespace VideoLAN.LibVLC ...@@ -173,7 +173,7 @@ namespace VideoLAN.LibVLC
ex.Raise (); ex.Raise ();
} }
[DllImport ("libvlc-control.dll", EntryPoint="libvlc_playlist_next")] [DllImport ("libvlc.dll", EntryPoint="libvlc_playlist_next")]
static extern void PlaylistNext (InstanceHandle self, static extern void PlaylistNext (InstanceHandle self,
NativeException ex); NativeException ex);
/** Switches to next playlist item, and starts playing it. */ /** Switches to next playlist item, and starts playing it. */
...@@ -183,7 +183,7 @@ namespace VideoLAN.LibVLC ...@@ -183,7 +183,7 @@ namespace VideoLAN.LibVLC
ex.Raise (); ex.Raise ();
} }
[DllImport ("libvlc-control.dll", EntryPoint="libvlc_playlist_prev")] [DllImport ("libvlc.dll", EntryPoint="libvlc_playlist_prev")]
static extern void PlaylistPrev (InstanceHandle self, static extern void PlaylistPrev (InstanceHandle self,
NativeException ex); NativeException ex);
/** Switches to previous playlist item, and starts playing it. */ /** Switches to previous playlist item, and starts playing it. */
...@@ -193,7 +193,7 @@ namespace VideoLAN.LibVLC ...@@ -193,7 +193,7 @@ namespace VideoLAN.LibVLC
ex.Raise (); ex.Raise ();
} }
[DllImport ("libvlc-control.dll", EntryPoint="libvlc_playlist_clear")] [DllImport ("libvlc.dll", EntryPoint="libvlc_playlist_clear")]
static extern void PlaylistClear (InstanceHandle self, static extern void PlaylistClear (InstanceHandle self,
NativeException ex); NativeException ex);
/** Clears the whole playlist. */ /** Clears the whole playlist. */
...@@ -207,7 +207,7 @@ namespace VideoLAN.LibVLC ...@@ -207,7 +207,7 @@ namespace VideoLAN.LibVLC
items.Clear (); items.Clear ();
} }
[DllImport ("libvlc-control.dll", [DllImport ("libvlc.dll",
EntryPoint="libvlc_playlist_add_extended")] EntryPoint="libvlc_playlist_add_extended")]
static extern int PlaylistAdd (InstanceHandle self, U8String uri, static extern int PlaylistAdd (InstanceHandle self, U8String uri,
U8String name, int optc, U8String name, int optc,
...@@ -264,7 +264,7 @@ namespace VideoLAN.LibVLC ...@@ -264,7 +264,7 @@ namespace VideoLAN.LibVLC
return Add (mrl, null, new string[0]); return Add (mrl, null, new string[0]);
} }
[DllImport ("libvlc-control.dll", [DllImport ("libvlc.dll",
EntryPoint="libvlc_playlist_delete_item")] EntryPoint="libvlc_playlist_delete_item")]
static extern int PlaylistDelete (InstanceHandle self, int id, static extern int PlaylistDelete (InstanceHandle self, int id,
NativeException e); NativeException e);
...@@ -320,13 +320,13 @@ namespace VideoLAN.LibVLC ...@@ -320,13 +320,13 @@ namespace VideoLAN.LibVLC
{ {
} }
[DllImport ("libvlc-control.dll", [DllImport ("libvlc.dll",
EntryPoint="libvlc_media_new")] EntryPoint="libvlc_media_new")]
public static extern public static extern
DescriptorHandle Create (InstanceHandle inst, U8String mrl, DescriptorHandle Create (InstanceHandle inst, U8String mrl,
NativeException ex); NativeException ex);
[DllImport ("libvlc-control.dll", [DllImport ("libvlc.dll",
EntryPoint="libvlc_media_release")] EntryPoint="libvlc_media_release")]
public static extern void Release (IntPtr ptr); public static extern void Release (IntPtr ptr);
......
/* /*
* testvlc.cs - tests for libvlc-control CIL bindings * testvlc.cs - tests for libvlc CIL bindings
* *
* $Id$ * $Id$
*/ */
......
...@@ -38,7 +38,7 @@ import com.sun.jna.Union; ...@@ -38,7 +38,7 @@ import com.sun.jna.Union;
public interface LibVlc extends Library public interface LibVlc extends Library
{ {
LibVlc INSTANCE = (LibVlc) Native.loadLibrary("vlc-control", LibVlc.class); LibVlc INSTANCE = (LibVlc) Native.loadLibrary("vlc", LibVlc.class);
LibVlc SYNC_INSTANCE = (LibVlc) Native.synchronizedLibrary(INSTANCE); LibVlc SYNC_INSTANCE = (LibVlc) Native.synchronizedLibrary(INSTANCE);
......
...@@ -71,7 +71,7 @@ def get_cflags(): ...@@ -71,7 +71,7 @@ def get_cflags():
def get_ldflags(): def get_ldflags():
vlcconfig=get_vlcconfig() vlcconfig=get_vlcconfig()
if vlcconfig is None: if vlcconfig is None:
return [ '-lvlc-control' ] return [ '-lvlc' ]
else: else:
ldflags = [] ldflags = []
if os.sys.platform == 'darwin': if os.sys.platform == 'darwin':
...@@ -81,9 +81,9 @@ def get_ldflags(): ...@@ -81,9 +81,9 @@ def get_ldflags():
if os.sys.platform == 'darwin': if os.sys.platform == 'darwin':
ldflags.append('-lstdc++') ldflags.append('-lstdc++')
if not libtool: if not libtool:
# vlc-config is broken and gives a -lvlc-control which # vlc-config is broken and gives a -lvlc which
# does not exist if libtool is disabled. # does not exist if libtool is disabled.
ldflags.remove('-lvlc-control') ldflags.remove('-lvlc')
return ldflags return ldflags
#source_files = [ 'vlc_module.c', 'vlc_mediacontrol.c', #source_files = [ 'vlc_module.c', 'vlc_mediacontrol.c',
......
...@@ -6291,8 +6291,8 @@ dnl ...@@ -6291,8 +6291,8 @@ dnl
dnl Pic and shared libvlc stuff dnl Pic and shared libvlc stuff
dnl dnl
AS_IF([test "${SYS}" = "mingw32"], [ AS_IF([test "${SYS}" = "mingw32"], [
FILE_LIBVLCCORE_DLL="!define LIBVLCCORE_DLL libvlccore.dll"
FILE_LIBVLC_DLL="!define LIBVLC_DLL libvlc.dll" FILE_LIBVLC_DLL="!define LIBVLC_DLL libvlc.dll"
FILE_LIBVLC_CONTROL_DLL="!define LIBVLC_CONTROL_DLL libvlc-control.dll"
]) ])
dnl dnl
...@@ -6352,8 +6352,8 @@ AC_SUBST(WINE_SDK_PATH) ...@@ -6352,8 +6352,8 @@ AC_SUBST(WINE_SDK_PATH)
AC_SUBST(LIBEXT) AC_SUBST(LIBEXT)
AC_SUBST(AM_CPPFLAGS) AC_SUBST(AM_CPPFLAGS)
AC_SUBST(MACOSX_DEPLOYMENT_TARGET) AC_SUBST(MACOSX_DEPLOYMENT_TARGET)
AC_SUBST(FILE_LIBVLCCORE_DLL)
AC_SUBST(FILE_LIBVLC_DLL) AC_SUBST(FILE_LIBVLC_DLL)
AC_SUBST(FILE_LIBVLC_CONTROL_DLL)
dnl Create vlc-config.in dnl Create vlc-config.in
VLC_OUTPUT_VLC_CONFIG_IN VLC_OUTPUT_VLC_CONFIG_IN
......
...@@ -13,7 +13,7 @@ BUILT_SOURCES = ...@@ -13,7 +13,7 @@ BUILT_SOURCES =
CLEANFILES = $(BUILT_SOURCES) CLEANFILES = $(BUILT_SOURCES)
if HAVE_PLUGINS if HAVE_PLUGINS
LTLIBVLC = $(top_builddir)/src/libvlc.la LTLIBVLCCORE = $(top_builddir)/src/libvlccore.la
AM_CFLAGS = `$(VLC_CONFIG) --cflags plugin $@` AM_CFLAGS = `$(VLC_CONFIG) --cflags plugin $@`
AM_CXXFLAGS = `$(VLC_CONFIG) --cxxflags plugin $@` AM_CXXFLAGS = `$(VLC_CONFIG) --cxxflags plugin $@`
...@@ -22,7 +22,7 @@ AM_LDFLAGS = -rpath '$(libvlcdir)' \ ...@@ -22,7 +22,7 @@ AM_LDFLAGS = -rpath '$(libvlcdir)' \
-avoid-version -module -no-undefined \ -avoid-version -module -no-undefined \
-shrext $(LIBEXT) \ -shrext $(LIBEXT) \
`$(VLC_CONFIG) --ldflags plugin $@` `$(VLC_CONFIG) --ldflags plugin $@`
AM_LIBADD = `$(VLC_CONFIG) -libs plugin $@` $(LTLIBVLC) AM_LIBADD = `$(VLC_CONFIG) -libs plugin $@` $(LTLIBVLCCORE)
if HAVE_COMPILER_EXPORT if HAVE_COMPILER_EXPORT
AM_LDFLAGS += -export-dynamic AM_LDFLAGS += -export-dynamic
......
...@@ -66,8 +66,8 @@ if BUILD_ACTIVEX ...@@ -66,8 +66,8 @@ if BUILD_ACTIVEX
lib_LTLIBRARIES = axvlc.la lib_LTLIBRARIES = axvlc.la
LIBRARIES_libvlc = $(top_builddir)/src/libvlc-control.la \ LIBRARIES_libvlc = $(top_builddir)/src/libvlc.la \
$(top_builddir)/src/libvlc.la $(top_builddir)/src/libvlccore.la
axvlc_la_SOURCES = $(SOURCES_activex) axvlc_la_SOURCES = $(SOURCES_activex)
axvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags activex` axvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags activex`
......
...@@ -23,8 +23,8 @@ DIST_sources = $(SOURCES_mozilla_common) \ ...@@ -23,8 +23,8 @@ DIST_sources = $(SOURCES_mozilla_common) \
if BUILD_MOZILLA if BUILD_MOZILLA
LIBRARIES_libvlc = $(top_builddir)/src/libvlc-control.la \ LIBRARIES_libvlc = $(top_builddir)/src/libvlc.la \
$(top_builddir)/src/libvlc.la $(top_builddir)/src/libvlccore.la
if HAVE_WIN32 if HAVE_WIN32
...@@ -111,22 +111,22 @@ VLC\ Plugin.plugin: npvlc.rsrc $(lib_LTLIBRARIES) ...@@ -111,22 +111,22 @@ VLC\ Plugin.plugin: npvlc.rsrc $(lib_LTLIBRARIES)
$(INSTALL) -d "$@/Contents/MacOS/lib" $(INSTALL) -d "$@/Contents/MacOS/lib"
$(INSTALL) ".libs/npvlc.dylib" "$@/Contents/MacOS/VLC Plugin" $(INSTALL) ".libs/npvlc.dylib" "$@/Contents/MacOS/VLC Plugin"
$(INSTALL) -d "$(srcdir)/$@/Contents/MacOS/lib"; \ $(INSTALL) -d "$(srcdir)/$@/Contents/MacOS/lib"; \
install_name_tool -change "$(libdir)/libvlc.1.dylib" \ install_name_tool -change "$(libdir)/libvlccore.0.dylib" \
"@executable_path/lib/libvlc.dylib" \ "@executable_path/lib/libvlccore.dylib" \
"$@/Contents/MacOS/VLC Plugin" "$@/Contents/MacOS/VLC Plugin"
install_name_tool -change "$(libdir)/libvlc-control.1.dylib" \ install_name_tool -change "$(libdir)/libvlc.2.dylib" \
"@executable_path/lib/libvlc-control.dylib" \ "@executable_path/lib/libvlc.dylib" \
"$@/Contents/MacOS/VLC Plugin" "$@/Contents/MacOS/VLC Plugin"
$(INSTALL) "$(top_builddir)/src/.libs/libvlc.1.dylib" \ $(INSTALL) "$(top_builddir)/src/.libs/libvlccore.0.dylib" \
"$@/Contents/MacOS/lib/libvlccore.dylib"
$(INSTALL) "$(top_builddir)/src/.libs/libvlc.2.dylib" \
"$@/Contents/MacOS/lib/libvlc.dylib"
install_name_tool -change "$(libdir)/libvlccore.0.dylib" \
"@executable_path/lib/libvlccore.dylib" \
"$@/Contents/MacOS/lib/libvlc.dylib" "$@/Contents/MacOS/lib/libvlc.dylib"
$(INSTALL) "$(top_builddir)/src/.libs/libvlc-control.1.dylib" \
"$@/Contents/MacOS/lib/libvlc-control.dylib"
install_name_tool -change "$(libdir)/libvlc.1.dylib" \
"@executable_path/lib/libvlc.dylib" \
"$@/Contents/MacOS/lib/libvlc-control.dylib"
dylib="$@/Contents/MacOS/VLC Plugin"; $(FIXEXECPATH) ; dylib="$@/Contents/MacOS/VLC Plugin"; $(FIXEXECPATH) ;
dylib="$@/Contents/MacOS/lib/libvlccore.dylib"; $(FIXEXECPATH) ;
dylib="$@/Contents/MacOS/lib/libvlc.dylib"; $(FIXEXECPATH) ; dylib="$@/Contents/MacOS/lib/libvlc.dylib"; $(FIXEXECPATH) ;
dylib="$@/Contents/MacOS/lib/libvlc-control.dylib"; $(FIXEXECPATH) ;
$(INSTALL) -d "$@/Contents/Resources" $(INSTALL) -d "$@/Contents/Resources"
$(INSTALL) npvlc.rsrc "$@/Contents/Resources/VLC Plugin.rsrc" $(INSTALL) npvlc.rsrc "$@/Contents/Resources/VLC Plugin.rsrc"
cp -r "$(top_srcdir)/extras/package/macosx/plugin/English.lproj" "$@/Contents/Resources/" cp -r "$(top_srcdir)/extras/package/macosx/plugin/English.lproj" "$@/Contents/Resources/"
...@@ -137,8 +137,8 @@ VLC\ Plugin.plugin: npvlc.rsrc $(lib_LTLIBRARIES) ...@@ -137,8 +137,8 @@ VLC\ Plugin.plugin: npvlc.rsrc $(lib_LTLIBRARIES)
if test -n "$$i" ; then \ if test -n "$$i" ; then \
dylib="$@/Contents/MacOS/modules/`basename $$i`"; \ dylib="$@/Contents/MacOS/modules/`basename $$i`"; \
$(INSTALL) "$$i" "$$dylib"; \ $(INSTALL) "$$i" "$$dylib"; \
install_name_tool -change "$(libdir)/libvlc.1.dylib" \ install_name_tool -change "$(libdir)/libvlccore.0.dylib" \
"@executable_path/lib/libvlc.dylib" "$$dylib"; \ "@executable_path/lib/libvlccore.dylib" "$$dylib"; \
$(FIXEXECPATH) ; \ $(FIXEXECPATH) ; \
fi ; \ fi ; \
done done
......
...@@ -8,7 +8,7 @@ NULL = ...@@ -8,7 +8,7 @@ NULL =
EXTRA_DIST = extras/COPYING modules/builtin.h.in \ EXTRA_DIST = extras/COPYING modules/builtin.h.in \
vlc-control.pc.in \ vlc-control.pc.in \
vlc-plugin.pc.in \ vlc-plugin.pc.in \
libvlc.sym libvlccore.sym
BUILT_SOURCES = modules/builtin.h misc/revision.c ../include/vlc_about.h BUILT_SOURCES = modules/builtin.h misc/revision.c ../include/vlc_about.h
CLEANFILES = $(BUILT_SOURCES) CLEANFILES = $(BUILT_SOURCES)
...@@ -159,47 +159,46 @@ CLEANFILES += $(pkgconfig_DATA) ...@@ -159,47 +159,46 @@ CLEANFILES += $(pkgconfig_DATA)
nice: nice:
$(top_builddir)/compile $(top_builddir)/compile
lib_LTLIBRARIES = libvlc.la libvlc-control.la lib_LTLIBRARIES = libvlccore.la libvlc.la
AM_LDFLAGS = -no-undefined -no-install AM_LDFLAGS = -no-undefined -no-install
if HAVE_WIN32 if HAVE_WIN32
AM_LDFLAGS += -avoid-version AM_LDFLAGS += -avoid-version
endif endif
libvlc_la_SOURCES = $(SOURCES_libvlc) libvlccore_la_SOURCES = $(SOURCES_libvlc)
nodist_libvlc_la_SOURCES = misc/revision.c nodist_libvlccore_la_SOURCES = misc/revision.c
libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc` \ libvlccore_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc` \
-DMODULE_STRING=\"main\" \ -DMODULE_STRING=\"main\" \
-DLOCALEDIR=\"$(localedir)\" \ -DLOCALEDIR=\"$(localedir)\" \
-DSYSCONFDIR=\"$(sysconfdir)\" \ -DSYSCONFDIR=\"$(sysconfdir)\" \
-DDATA_PATH=\"$(pkgdatadir)\" \ -DDATA_PATH=\"$(pkgdatadir)\" \
-DLIBDIR=\"$(libdir)\" \ -DLIBDIR=\"$(libdir)\" \
-DPLUGIN_PATH=\"$(pkglibdir)\" -DPLUGIN_PATH=\"$(pkglibdir)\"
libvlc_la_CXXFLAGS = `$(VLC_CONFIG) --cxxflags libvlc` libvlccore_la_CXXFLAGS = `$(VLC_CONFIG) --cxxflags libvlc`
libvlc_la_OBJCFLAGS = `$(VLC_CONFIG) --objcflags libvlc` libvlccore_la_OBJCFLAGS = `$(VLC_CONFIG) --objcflags libvlc`
libvlc_la_LDFLAGS = `$(VLC_CONFIG) --ldflags libvlc` $(AM_LDFLAGS) \ libvlccore_la_LDFLAGS = `$(VLC_CONFIG) --ldflags libvlc` $(AM_LDFLAGS) \
-version-info 1:0:0 -version-info 0:0:0
if HAVE_COMPILER_EXPORT if HAVE_COMPILER_EXPORT
libvlc_la_LDFLAGS += -export-dynamic libvlccore_la_LDFLAGS += -export-dynamic
else else
libvlc_la_LDFLAGS += -export-symbols $(srcdir)/libvlc.sym libvlccore_la_LDFLAGS += -export-symbols $(srcdir)/libvlccore.sym
endif endif
libvlc_la_LIBADD = `$(VLC_CONFIG) -libs libvlc` $(AM_LIBADD) $(LTLIBINTL) libvlccore_la_LIBADD = `$(VLC_CONFIG) -libs libvlc` $(AM_LIBADD) $(LTLIBINTL)
libvlccore_la_DEPENDENCIES = libvlccore.sym
libvlc_la_DEPENDENCIES = libvlc.sym
libvlc_control_la_SOURCES = $(SOURCES_libvlc_control) libvlc_la_SOURCES = $(SOURCES_libvlc_control)
libvlc_control_la_LIBADD = libvlc.la libvlc_la_LIBADD = libvlccore.la
libvlc_control_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc` \ libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc` \
-DMODULE_STRING=\"control\" -DMODULE_STRING=\"control\"
libvlc_control_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:0:0 libvlc_la_LDFLAGS = $(AM_LDFLAGS) -version-info 2:0:0
if HAVE_COMPILER_EXPORT if HAVE_COMPILER_EXPORT
libvlc_control_la_LDFLAGS += -export-dynamic libvlc_la_LDFLAGS += -export-dynamic
else else
libvlc_control_la_LDFLAGS += -export-symbols-regex '^_?(libvlc|mediacontrol)_.*' libvlc_la_LDFLAGS += -export-symbols-regex '^_?(libvlc|mediacontrol)_.*'
endif endif
EXTRA_libvlc_la_SOURCES = \ EXTRA_libvlccore_la_SOURCES = \
$(SOURCES_libvlc_beos) \ $(SOURCES_libvlc_beos) \
$(SOURCES_libvlc_darwin) \ $(SOURCES_libvlc_darwin) \
$(SOURCES_libvlc_linux) \ $(SOURCES_libvlc_linux) \
...@@ -210,34 +209,34 @@ EXTRA_libvlc_la_SOURCES = \ ...@@ -210,34 +209,34 @@ EXTRA_libvlc_la_SOURCES = \
$(SOURCES_libvlc_sout) \ $(SOURCES_libvlc_sout) \
$(NULL) $(NULL)
if HAVE_BEOS if HAVE_BEOS
libvlc_la_SOURCES += $(SOURCES_libvlc_beos) libvlccore_la_SOURCES += $(SOURCES_libvlc_beos)
else else
if HAVE_DARWIN if HAVE_DARWIN
libvlc_la_SOURCES += $(SOURCES_libvlc_darwin) libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
else else
if HAVE_LINUX if HAVE_LINUX
libvlc_la_SOURCES += $(SOURCES_libvlc_linux) libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
else else
if HAVE_WIN32 if HAVE_WIN32
libvlc_la_SOURCES += $(SOURCES_libvlc_win32) libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
else else
if HAVE_WINCE if HAVE_WINCE
libvlc_la_SOURCES += $(SOURCES_libvlc_win32) libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
else else
libvlc_la_SOURCES += $(SOURCES_libvlc_other) libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
endif endif
endif endif
endif endif
endif endif
endif endif
if BUILD_DIRENT if BUILD_DIRENT
libvlc_la_SOURCES += $(SOURCES_libvlc_dirent) libvlccore_la_SOURCES += $(SOURCES_libvlc_dirent)
endif endif
if BUILD_GETOPT if BUILD_GETOPT
libvlc_la_SOURCES += $(SOURCES_libvlc_getopt) libvlccore_la_SOURCES += $(SOURCES_libvlc_getopt)
endif endif
if ENABLE_SOUT if ENABLE_SOUT
libvlc_la_SOURCES += $(SOURCES_libvlc_sout) libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
endif endif
SOURCES_libvlc_beos = \ SOURCES_libvlc_beos = \
...@@ -440,7 +439,8 @@ vlc_DEPENDENCIES = $(DATA_win32_rc) libvlc.la ...@@ -440,7 +439,8 @@ vlc_DEPENDENCIES = $(DATA_win32_rc) libvlc.la
vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc` vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
vlc_LDFLAGS = `$(VLC_CONFIG) --ldflags vlc` vlc_LDFLAGS = `$(VLC_CONFIG) --ldflags vlc`
vlc_LDADD = $(DATA_win32_rc) libvlc.la $(LTLIBINTL) `$(VLC_CONFIG) -libs vlc` vlc_LDADD = $(DATA_win32_rc) libvlccore.la $(LTLIBINTL) \
`$(VLC_CONFIG) -libs vlc`
if BUILD_VLC if BUILD_VLC
vlc$(EXEEXT): $(vlc_OBJECTS) $(vlc_DEPENDENCIES) vlc$(EXEEXT): $(vlc_OBJECTS) $(vlc_DEPENDENCIES)
......
...@@ -7,5 +7,5 @@ Name: LibVLC control API ...@@ -7,5 +7,5 @@ Name: LibVLC control API
Description: VLC media player external control library Description: VLC media player external control library
Version: @VERSION@ Version: @VERSION@
Cflags: -I${includedir} Cflags: -I${includedir}
Libs: -L${libdir} -lvlc-control Libs: -L${libdir} -lvlc
Libs.private: -lvlc Libs.private: -lvlccore
...@@ -12,4 +12,4 @@ Cflags: -I${includedir} -I${includedir}/vlc/plugins \ ...@@ -12,4 +12,4 @@ Cflags: -I${includedir} -I${includedir}/vlc/plugins \
-D_LARGEFILE64_SOURCE \ -D_LARGEFILE64_SOURCE \
-D_REENTRANT \ -D_REENTRANT \
-D_THREAD_SAFE -D_THREAD_SAFE
Libs: -L${libdir} -lvlc Libs: -L${libdir} -lvlccore
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