Commit 83363887 authored by Damien Fouilleul's avatar Damien Fouilleul

activex: updated build for libtool link compatibility

parent efe69dfd
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
# Building the Activex plugin # Building the Activex plugin
############################################################################### ###############################################################################
noinst_LIBRARIES = $(noinst_LIBRARIES_activex) MOSTLYCLEANFILES =
MOSTLYCLEANFILES = $(LIBRARIES_activex)
EXTRA_DIST = $(SOURCES_activex) $(DIST_rsrc) $(DIST_misc) EXTRA_DIST = $(SOURCES_activex) $(DIST_rsrc) $(DIST_misc)
BUILT_SOURCES = $(BUILT_SOURCES_activex) BUILT_SOURCES = $(BUILT_SOURCES_activex)
...@@ -64,30 +62,27 @@ DIST_misc = \ ...@@ -64,30 +62,27 @@ DIST_misc = \
test.html \ test.html \
$(NULL) $(NULL)
LIBRARIES_libvlc = $(top_builddir)/src/libvlc.dll.a
if BUILD_ACTIVEX if BUILD_ACTIVEX
noinst_LIBRARIES_activex = libaxvlc.a lib_LTLIBRARIES = libaxvlc.la
axvlc_DATA = axvlc$(LIBEXT)
axvlcdir = $(libdir)
LDFLAGS_activex = `$(VLC_CONFIG) --libs activex libvlc` LIBRARIES_libvlc = $(top_builddir)/src/libvlc-control.la \
$(top_builddir)/src/libvlc.la
libaxvlc_a_SOURCES = $(SOURCES_activex) $(SOURCE_dll) libaxvlc_la_SOURCES = $(SOURCES_activex)
libaxvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags activex` libaxvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags activex`
libaxvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags activex` libaxvlc_la_CXXFLAGS = `$(VLC_CONFIG) --cxxflags activex`
libaxvlc_a_DEPENDENCIES = axvlc.def $(DATA_axvlc_rc) $(LIBRARIES_libvlc) libaxvlc_la_DEPENDENCIES = axvlc.def $(DATA_axvlc_rc) $(LIBRARIES_libvlc)
libaxvlc_la_LDFLAGS = $(srcdir)/axvlc.def -Wl,$(DATA_axvlc_rc) \
axvlc$(LIBEXT): $(libaxvlc_a_OBJECTS) \ -no-undefined -avoid-version $(LIBRARIES_libvlc) \
$(libaxvlc_a_DEPENDENCIES) `$(VLC_CONFIG) --libs activex libvlc` \
$(CXXLINK) $(libaxvlc_a_OBJECTS) $(DATA_axvlc_rc) \ -Wl,--output,axvlc$(LIBEXT)
$(srcdir)/axvlc.def \
$(LIBRARIES_libvlc) -shared $(LIBRARIES_libvlc) $(LDFLAGS_activex) \
$(INCLUDED_LIBINTL)
# Cygwin work-around
@if test -f "$@.exe"; then mv -f "$@.exe" "$@"; fi
DATA_axvlc_rc = $(noinst_axvlc_rc_DATA)
noinst_axvlc_rc_DATA = axvlc_rc.$(OBJEXT)
noinst_axvlc_rcdir = $(libdir)
axvlc_rc.$(OBJEXT): axvlc_rc.rc inplace.bmp axvlc.tlb
$(WINDRES) -DVERSION=$(VERSION) -DVERSION_NUMBER=`echo $(VERSION).0.0.0 | sed 's/[^0-9]*\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\).*/\1,\2,\3,\4/'` --include-dir $(srcdir) -i $< -o $@
DATA_axvlc_tlb = $(axvlc_tlb_DATA) DATA_axvlc_tlb = $(axvlc_tlb_DATA)
noinst_axvlc_tlb_DATA = axvlc.tlb noinst_axvlc_tlb_DATA = axvlc.tlb
...@@ -117,12 +112,6 @@ clean-tlb: ...@@ -117,12 +112,6 @@ clean-tlb:
endif endif
endif endif
DATA_axvlc_rc = $(noinst_axvlc_rc_DATA)
noinst_axvlc_rc_DATA = axvlc_rc.$(OBJEXT)
noinst_axvlc_rcdir = $(libdir)
axvlc_rc.$(OBJEXT): axvlc_rc.rc inplace.bmp axvlc.tlb
$(WINDRES) -DVERSION=$(VERSION) -DVERSION_NUMBER=`echo $(VERSION).0.0.0 | sed 's/[^0-9]*\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\).*/\1,\2,\3,\4/'` --include-dir $(srcdir) -i $< -o $@
else else
clean-tlb: clean-tlb:
......
...@@ -5463,7 +5463,7 @@ AS_IF([test "${enable_gnutls}" != "no"], [ ...@@ -5463,7 +5463,7 @@ AS_IF([test "${enable_gnutls}" != "no"], [
VLC_ADD_PLUGINS([gnutls]) VLC_ADD_PLUGINS([gnutls])
VLC_ADD_CFLAGS([gnutls], [$GNUTLS_CFLAGS]) VLC_ADD_CFLAGS([gnutls], [$GNUTLS_CFLAGS])
AS_IF([test "${SYS}" = "mingw32"], [ AS_IF([test "${SYS}" = "mingw32"], [
dnl pkg-config --libs gnutls ignores these dnl pkg-config --libs gnutls omits these
VLC_ADD_LDFLAGS([gnutls], [-lz]) VLC_ADD_LDFLAGS([gnutls], [-lz])
AS_IF([test "${enable_libtool}" != "no"], [ AS_IF([test "${enable_libtool}" != "no"], [
VLC_ADD_LDFLAGS([gnutls], [${LTLIBINTL}]) VLC_ADD_LDFLAGS([gnutls], [${LTLIBINTL}])
...@@ -5602,7 +5602,7 @@ then ...@@ -5602,7 +5602,7 @@ then
[AC_CHECK_HEADERS(olectl.h, [AC_CHECK_HEADERS(olectl.h,
[ VLC_ADD_CPPFLAGS([activex],[-DUNICODE -D_UNICODE -D_MIDL_USE_GUIDDEF_]) [ VLC_ADD_CPPFLAGS([activex],[-DUNICODE -D_UNICODE -D_MIDL_USE_GUIDDEF_])
VLC_ADD_CXXFLAGS([activex],[-fno-exceptions]) VLC_ADD_CXXFLAGS([activex],[-fno-exceptions])
VLC_ADD_LDFLAGS([activex],[-lole32 -loleaut32 -luuid -lshlwapi]) VLC_ADD_LDFLAGS([activex],[-lole32 -loleaut32 -luuid -lshlwapi -lgdi32])
AC_CHECK_HEADERS(objsafe.h, AC_CHECK_HEADERS(objsafe.h,
VLC_ADD_CXXFLAGS([activex],[-DHAVE_OBJSAFE_HEADER]),, VLC_ADD_CXXFLAGS([activex],[-DHAVE_OBJSAFE_HEADER]),,
[ [
......
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