]> git.sesse.net Git - vlc/blob - activex/Makefile.am
- revert 16847, this breaks the activex and mozilla plugins, and passing a argv[0...
[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     vlccontrol.cpp \
40     vlccontrol.h \
41     vlccontrol2.cpp \
42     vlccontrol2.h \
43     plugin.cpp \
44     plugin.h \
45     axvlc_idl.c \
46     axvlc_idl.h \
47     $(NULL)
48
49 DIST_rsrc = \
50     axvlc_rc.rc \
51     $(NULL)
52
53 DIST_misc = \
54     README.TXT \
55     axvlc.inf.in \
56     axvlc.def \
57     axvlc.idl \
58     axvlc.tlb \
59     inplace.bmp \
60     vlc16x16.bmp \
61     test.html \
62     $(NULL)
63
64 if BUILD_SHARED
65 LIBRARIES_libvlc = $(top_builddir)/src/libvlc.dll
66 else
67 LIBRARIES_libvlc = $(top_builddir)/src/libvlc.a
68 endif
69
70 if BUILD_ACTIVEX
71
72 noinst_LIBRARIES_activex = libaxvlc.a
73 axvlc_DATA = axvlc$(LIBEXT)
74 axvlcdir = $(libdir)
75
76 LDFLAGS_activex = `$(VLC_CONFIG) --libs activex vlc builtin`
77
78 libaxvlc_a_SOURCES = $(SOURCES_activex) $(SOURCE_dll)
79 libaxvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags activex`
80 libaxvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags activex`
81 libaxvlc_a_DEPENDENCIES = axvlc.def $(DATA_axvlc_rc) $(LIBRARIES_libvlc)
82
83 axvlc$(LIBEXT): $(libaxvlc_a_OBJECTS) \
84                       $(libaxvlc_a_DEPENDENCIES) stamp-builtin
85         $(CXXLINK) $(libaxvlc_a_OBJECTS) $(DATA_axvlc_rc) \
86         $(srcdir)/axvlc.def \
87           $(LIBRARIES_libvlc) -shared $(LIBRARIES_libvlc) $(LDFLAGS_activex) \
88           $(INCLUDED_LIBINTL)
89 # Cygwin work-around
90         @if test -f "$@.exe"; then mv -f "$@.exe" "$@"; fi
91
92
93 DATA_axvlc_tlb = $(axvlc_tlb_DATA)
94 noinst_axvlc_tlb_DATA = axvlc.tlb
95 noinst_axvlc_tlbdir = $(libdir)
96
97 if HAS_MIDL_COMPILER
98
99 axvlc.tlb axvlc_idl.c axvlc_idl.h: axvlc.idl
100         $(MIDL) -Oicf -error all -env win32 -tlb axvlc.tlb -iid axvlc_idl.c -h axvlc_idl.h axvlc.idl
101
102 clean-tlb:
103         rm -f axvlc.tlb axvlc_idl.c axvlc_idl.h
104
105 else
106 if HAS_WIDL_COMPILER
107
108 axvlc.tlb axvlc_idl.c axvlc_idl.h: axvlc.idl
109         $(WIDL) -I$(WINE_SDK_PATH)/include -tuh -T axvlc.tlb -U axvlc_idl.c -H axvlc_idl.h axvlc.idl
110
111 clean-tlb:
112         rm -f axvlc.tlb axvlc_idl.c axvlc_idl.h
113
114 else
115
116 clean-tlb:
117
118 endif
119 endif
120
121 DATA_axvlc_rc = $(noinst_axvlc_rc_DATA)
122 noinst_axvlc_rc_DATA = axvlc_rc.$(OBJEXT)
123 noinst_axvlc_rcdir = $(libdir)
124 axvlc_rc.$(OBJEXT): axvlc_rc.rc inplace.bmp axvlc.tlb
125         $(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 $@
126
127 else
128
129 clean-tlb:
130
131 endif
132
133 ###############################################################################
134 # Stamp rules
135 ###############################################################################
136
137 clean-stamp:
138         rm -f stamp-pic
139
140 if BUILD_SHARED
141 stamp-builtin:
142 else
143 stamp-builtin: $(shell ${VLC_CONFIG} --target builtin)
144 endif
145         @touch $@
146
147
148 ###############################################################################
149 # Clean rules
150 ###############################################################################
151
152 clean-local: clean-stamp clean-tlb
153         rm -f axvlc$(LIBEXT)
154
155 ###############################################################################
156 # Force rules
157 ###############################################################################
158