X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=activex%2FMakefile.am;h=f5df58e5cf5afcc6674cb6d6b99162520cbc46c4;hb=4be8a1bbc7aabf3879742d57248245e857c51df7;hp=758ba6aa3555f3f8796c668ae333622364ccd4b7;hpb=ad2d545ad029b26714b92a695b706b63ba894880;p=vlc diff --git a/activex/Makefile.am b/activex/Makefile.am index 758ba6aa35..f5df58e5cf 100644 --- a/activex/Makefile.am +++ b/activex/Makefile.am @@ -36,12 +36,17 @@ SOURCES_activex = \ dataobject.h \ viewobject.cpp \ viewobject.h \ + supporterrorinfo.cpp \ + supporterrorinfo.h \ vlccontrol.cpp \ vlccontrol.h \ + vlccontrol2.cpp \ + vlccontrol2.h \ plugin.cpp \ plugin.h \ axvlc_idl.c \ axvlc_idl.h \ + guiddef.h \ $(NULL) DIST_rsrc = \ @@ -59,11 +64,7 @@ DIST_misc = \ test.html \ $(NULL) -if BUILD_SHARED LIBRARIES_libvlc = $(top_builddir)/src/libvlc.dll.a -else -LIBRARIES_libvlc = $(top_builddir)/src/libvlc.a -endif if BUILD_ACTIVEX @@ -71,19 +72,21 @@ noinst_LIBRARIES_activex = libaxvlc.a axvlc_DATA = axvlc$(LIBEXT) axvlcdir = $(libdir) -LDFLAGS_activex = `$(VLC_CONFIG) --libs activex vlc builtin` +LDFLAGS_activex = `$(VLC_CONFIG) --libs activex libvlc` libaxvlc_a_SOURCES = $(SOURCES_activex) $(SOURCE_dll) libaxvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags activex` libaxvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags activex` -libaxvlc_a_DEPENDENCIES = axvlc.def $(DATA_axvlc_rc) +libaxvlc_a_DEPENDENCIES = axvlc.def $(DATA_axvlc_rc) $(LIBRARIES_libvlc) axvlc$(LIBEXT): $(libaxvlc_a_OBJECTS) \ - $(libaxvlc_a_DEPENDENCIES) stamp-pic + $(libaxvlc_a_DEPENDENCIES) $(CXXLINK) $(libaxvlc_a_OBJECTS) $(DATA_axvlc_rc) \ - -Wl,--enable-stdcall-fixup $(srcdir)/axvlc.def \ + $(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_tlb = $(axvlc_tlb_DATA) @@ -99,9 +102,19 @@ clean-tlb: rm -f axvlc.tlb axvlc_idl.c axvlc_idl.h else +if HAS_WIDL_COMPILER + +axvlc.tlb axvlc_idl.c axvlc_idl.h: axvlc.idl + $(WIDL) -I$(WINE_SDK_PATH)/include -tuh -T axvlc.tlb -U axvlc_idl.c -H axvlc_idl.h axvlc.idl clean-tlb: + rm -f axvlc.tlb axvlc_idl.c axvlc_idl.h + +else +clean-tlb: + +endif endif DATA_axvlc_rc = $(noinst_axvlc_rc_DATA) @@ -116,31 +129,14 @@ clean-tlb: endif -############################################################################### -# Stamp rules -############################################################################### - -clean-stamp: - rm -f stamp-pic - -stamp-pic: FORCE - @for dep in "" `$(VLC_CONFIG) --target builtin`; do \ - if test "$${dep}" -nt "$(LIBRARIES_activex)"; then \ - rm -f $@; \ - break; \ - fi; \ - done - @if test ! -f $@; then printf "" > $@; fi - ############################################################################### # Clean rules ############################################################################### -clean-local: clean-stamp clean-tlb +clean-local: clean-tlb rm -f axvlc$(LIBEXT) ############################################################################### -# Force rule +# Force rules ############################################################################### -FORCE: