]> git.sesse.net Git - vlc/blob - activex/Makefile.am
RTP HMAC-SHA1 authentication
[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     guiddef.h \
50     $(NULL)
51
52 DIST_rsrc = \
53     axvlc_rc.rc \
54     $(NULL)
55
56 DIST_misc = \
57     README.TXT \
58     axvlc.inf.in \
59     axvlc.def \
60     axvlc.idl \
61     axvlc.tlb \
62     inplace.bmp \
63     vlc16x16.bmp \
64     test.html \
65     $(NULL)
66
67 LIBRARIES_libvlc = $(top_builddir)/src/libvlc.dll.a
68
69 if BUILD_ACTIVEX
70
71 noinst_LIBRARIES_activex = libaxvlc.a
72 axvlc_DATA = axvlc$(LIBEXT)
73 axvlcdir = $(libdir)
74
75 LDFLAGS_activex = `$(VLC_CONFIG) --libs activex libvlc`
76
77 libaxvlc_a_SOURCES = $(SOURCES_activex) $(SOURCE_dll)
78 libaxvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags activex`
79 libaxvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags activex`
80 libaxvlc_a_DEPENDENCIES = axvlc.def $(DATA_axvlc_rc) $(LIBRARIES_libvlc)
81
82 axvlc$(LIBEXT): $(libaxvlc_a_OBJECTS) \
83                       $(libaxvlc_a_DEPENDENCIES)
84         $(CXXLINK) $(libaxvlc_a_OBJECTS) $(DATA_axvlc_rc) \
85         $(srcdir)/axvlc.def \
86           $(LIBRARIES_libvlc) -shared $(LIBRARIES_libvlc) $(LDFLAGS_activex) \
87           $(INCLUDED_LIBINTL)
88 # Cygwin work-around
89         @if test -f "$@.exe"; then mv -f "$@.exe" "$@"; fi
90
91
92 DATA_axvlc_tlb = $(axvlc_tlb_DATA)
93 noinst_axvlc_tlb_DATA = axvlc.tlb
94 noinst_axvlc_tlbdir = $(libdir)
95
96 if HAS_MIDL_COMPILER
97
98 axvlc.tlb axvlc_idl.c axvlc_idl.h: axvlc.idl
99         $(MIDL) -Oicf -error all -env win32 -tlb axvlc.tlb -iid axvlc_idl.c -h axvlc_idl.h axvlc.idl
100
101 clean-tlb:
102         rm -f axvlc.tlb axvlc_idl.c axvlc_idl.h
103
104 else
105 if HAS_WIDL_COMPILER
106
107 axvlc.tlb axvlc_idl.c axvlc_idl.h: axvlc.idl
108         $(WIDL) -I$(WINE_SDK_PATH)/include -tuh -T axvlc.tlb -U axvlc_idl.c -H axvlc_idl.h axvlc.idl
109
110 clean-tlb:
111         rm -f axvlc.tlb axvlc_idl.c axvlc_idl.h
112
113 else
114
115 clean-tlb:
116
117 endif
118 endif
119
120 DATA_axvlc_rc = $(noinst_axvlc_rc_DATA)
121 noinst_axvlc_rc_DATA = axvlc_rc.$(OBJEXT)
122 noinst_axvlc_rcdir = $(libdir)
123 axvlc_rc.$(OBJEXT): axvlc_rc.rc inplace.bmp axvlc.tlb
124         $(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 $@
125
126 else
127
128 clean-tlb:
129
130 endif
131
132 ###############################################################################
133 # Clean rules
134 ###############################################################################
135
136 clean-local: clean-tlb
137         rm -f axvlc$(LIBEXT)
138
139 ###############################################################################
140 # Force rules
141 ###############################################################################
142