]> git.sesse.net Git - vlc/blob - activex/Makefile.am
Fix property get_aspectRatio (forward port of [17383])
[vlc] / activex / Makefile.am
1 ###############################################################################
2 # Building the Activex plugin
3 ###############################################################################
4
5 noinst_LIBRARIES = $(noinst_LIBRARIES_activex)
6
7 MOSTLYCLEANFILES = $(LIBRARIES_activex)
8 EXTRA_DIST = $(SOURCES_activex) $(DIST_rsrc) $(DIST_misc)
9 BUILT_SOURCES = $(BUILT_SOURCES_activex)
10
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)
50
51 DIST_rsrc = \
52     axvlc_rc.rc \
53     $(NULL)
54
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)
65
66 if BUILD_SHARED
67 LIBRARIES_libvlc = $(top_builddir)/src/libvlc.dll
68 else
69 LIBRARIES_libvlc = $(top_builddir)/src/libvlc.a
70 endif
71
72 if BUILD_ACTIVEX
73
74 noinst_LIBRARIES_activex = libaxvlc.a
75 axvlc_DATA = axvlc$(LIBEXT)
76 axvlcdir = $(libdir)
77
78 LDFLAGS_activex = `$(VLC_CONFIG) --libs activex vlc builtin`
79
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)
84
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
93
94
95 DATA_axvlc_tlb = $(axvlc_tlb_DATA)
96 noinst_axvlc_tlb_DATA = axvlc.tlb
97 noinst_axvlc_tlbdir = $(libdir)
98
99 if HAS_MIDL_COMPILER
100
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
103
104 clean-tlb:
105         rm -f axvlc.tlb axvlc_idl.c axvlc_idl.h
106
107 else
108 if HAS_WIDL_COMPILER
109
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
112
113 clean-tlb:
114         rm -f axvlc.tlb axvlc_idl.c axvlc_idl.h
115
116 else
117
118 clean-tlb:
119
120 endif
121 endif
122
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 $@
128
129 else
130
131 clean-tlb:
132
133 endif
134
135 ###############################################################################
136 # Stamp rules
137 ###############################################################################
138
139 clean-stamp:
140         rm -f stamp-pic
141
142 if BUILD_SHARED
143 stamp-builtin:
144 else
145 stamp-builtin: $(shell ${VLC_CONFIG} --target builtin)
146 endif
147         @touch $@
148
149
150 ###############################################################################
151 # Clean rules
152 ###############################################################################
153
154 clean-local: clean-stamp clean-tlb
155         rm -f axvlc$(LIBEXT)
156
157 ###############################################################################
158 # Force rules
159 ###############################################################################
160