Compile fix + handle case with no xml:base
[vlc.git] / activex / Makefile.am
bloba66346e59d93b5cd7dc61a5b5216f0c1630dcc76
1 ###############################################################################
2 # Building the Activex plugin
3 ###############################################################################
5 noinst_LIBRARIES = $(noinst_LIBRARIES_activex)
7 MOSTLYCLEANFILES = $(LIBRARIES_activex)
8 EXTRA_DIST = $(SOURCES_activex) $(DIST_rsrc) $(DIST_misc)
9 BUILT_SOURCES = $(BUILT_SOURCES_activex)
11 SOURCES_activex = \
12     main.cpp \
13     utils.cpp \
14     utils.h \
15     olecontrol.cpp \
16     olecontrol.h \
17     oleinplaceactiveobject.cpp \
18     oleinplaceactiveobject.h \
19     oleinplaceobject.cpp \
20     oleinplaceobject.h \
21     oleobject.cpp \
22     oleobject.h \
23     persistpropbag.cpp \
24     persistpropbag.h \
25     persiststorage.cpp \
26     persiststorage.h \
27     persiststreaminit.cpp \
28     persiststreaminit.h \
29     provideclassinfo.cpp \
30     provideclassinfo.h \
31     connectioncontainer.cpp \
32     connectioncontainer.h \
33     objectsafety.cpp \
34     objectsafety.h \
35     dataobject.cpp \
36     dataobject.h \
37     viewobject.cpp \
38     viewobject.h \
39     supporterrorinfo.cpp \
40     supporterrorinfo.h \
41     vlccontrol.cpp \
42     vlccontrol.h \
43     vlccontrol2.cpp \
44     vlccontrol2.h \
45     plugin.cpp \
46     plugin.h \
47     axvlc_idl.c \
48     axvlc_idl.h \
49     $(NULL)
51 DIST_rsrc = \
52     axvlc_rc.rc \
53     $(NULL)
55 DIST_misc = \
56     README.TXT \
57     axvlc.inf.in \
58     axvlc.def \
59     axvlc.idl \
60     axvlc.tlb \
61     inplace.bmp \
62     vlc16x16.bmp \
63     test.html \
64     $(NULL)
66 if BUILD_SHARED
67 LIBRARIES_libvlc = $(top_builddir)/src/libvlc.dll
68 else
69 LIBRARIES_libvlc = $(top_builddir)/src/libvlc.a
70 endif
72 if BUILD_ACTIVEX
74 noinst_LIBRARIES_activex = libaxvlc.a
75 axvlc_DATA = axvlc$(LIBEXT)
76 axvlcdir = $(libdir)
78 LDFLAGS_activex = `$(VLC_CONFIG) --libs activex vlc builtin`
80 libaxvlc_a_SOURCES = $(SOURCES_activex) $(SOURCE_dll)
81 libaxvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags activex`
82 libaxvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags activex`
83 libaxvlc_a_DEPENDENCIES = axvlc.def $(DATA_axvlc_rc) $(LIBRARIES_libvlc)
85 axvlc$(LIBEXT): $(libaxvlc_a_OBJECTS) \
86                       $(libaxvlc_a_DEPENDENCIES) stamp-builtin
87         $(CXXLINK) $(libaxvlc_a_OBJECTS) $(DATA_axvlc_rc) \
88         $(srcdir)/axvlc.def \
89           $(LIBRARIES_libvlc) -shared $(LIBRARIES_libvlc) $(LDFLAGS_activex) \
90           $(INCLUDED_LIBINTL)
91 # Cygwin work-around
92         @if test -f "$@.exe"; then mv -f "$@.exe" "$@"; fi
95 DATA_axvlc_tlb = $(axvlc_tlb_DATA)
96 noinst_axvlc_tlb_DATA = axvlc.tlb
97 noinst_axvlc_tlbdir = $(libdir)
99 if HAS_MIDL_COMPILER
101 axvlc.tlb axvlc_idl.c axvlc_idl.h: axvlc.idl
102         $(MIDL) -Oicf -error all -env win32 -tlb axvlc.tlb -iid axvlc_idl.c -h axvlc_idl.h axvlc.idl
104 clean-tlb:
105         rm -f axvlc.tlb axvlc_idl.c axvlc_idl.h
107 else
108 if HAS_WIDL_COMPILER
110 axvlc.tlb axvlc_idl.c axvlc_idl.h: axvlc.idl
111         $(WIDL) -I$(WINE_SDK_PATH)/include -tuh -T axvlc.tlb -U axvlc_idl.c -H axvlc_idl.h axvlc.idl
113 clean-tlb:
114         rm -f axvlc.tlb axvlc_idl.c axvlc_idl.h
116 else
118 clean-tlb:
120 endif
121 endif
123 DATA_axvlc_rc = $(noinst_axvlc_rc_DATA)
124 noinst_axvlc_rc_DATA = axvlc_rc.$(OBJEXT)
125 noinst_axvlc_rcdir = $(libdir)
126 axvlc_rc.$(OBJEXT): axvlc_rc.rc inplace.bmp axvlc.tlb
127         $(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 $@
129 else
131 clean-tlb:
133 endif
135 ###############################################################################
136 # Stamp rules
137 ###############################################################################
139 clean-stamp:
140         rm -f stamp-pic
142 if BUILD_SHARED
143 stamp-builtin:
144 else
145 stamp-builtin: $(shell ${VLC_CONFIG} --target builtin)
146 endif
147         @touch $@
150 ###############################################################################
151 # Clean rules
152 ###############################################################################
154 clean-local: clean-stamp clean-tlb
155         rm -f axvlc$(LIBEXT)
157 ###############################################################################
158 # Force rules
159 ###############################################################################