]> git.sesse.net Git - vlc/blob - projects/activex/Makefile.am
Add error messages for unsupported rates or number of channels.
[vlc] / projects / activex / Makefile.am
1 ###############################################################################
2 # Building the Activex plugin
3 ###############################################################################
4
5 MOSTLYCLEANFILES = 
6 EXTRA_DIST = $(SOURCES_activex) $(DIST_rsrc) $(DIST_misc)
7 BUILT_SOURCES = $(BUILT_SOURCES_activex)
8
9 SOURCES_activex = \
10     main.cpp \
11     utils.cpp \
12     utils.h \
13     olecontrol.cpp \
14     olecontrol.h \
15     oleinplaceactiveobject.cpp \
16     oleinplaceactiveobject.h \
17     oleinplaceobject.cpp \
18     oleinplaceobject.h \
19     oleobject.cpp \
20     oleobject.h \
21     persistpropbag.cpp \
22     persistpropbag.h \
23     persiststorage.cpp \
24     persiststorage.h \
25     persiststreaminit.cpp \
26     persiststreaminit.h \
27     position.h \
28     provideclassinfo.cpp \
29     provideclassinfo.h \
30     connectioncontainer.cpp \
31     connectioncontainer.h \
32     objectsafety.cpp \
33     objectsafety.h \
34     dataobject.cpp \
35     dataobject.h \
36     viewobject.cpp \
37     viewobject.h \
38     supporterrorinfo.cpp \
39     supporterrorinfo.h \
40     vlccontrol.cpp \
41     vlccontrol.h \
42     vlccontrol2.cpp \
43     vlccontrol2.h \
44     plugin.cpp \
45     plugin.h \
46     axvlc_idl.c \
47     axvlc_idl.h \
48     guiddef.h \
49     $(NULL)
50
51 DIST_rsrc = \
52     axvlc_rc.rc.in \
53     $(NULL)
54
55 DIST_misc = \
56     README.TXT \
57     axvlc.inf.in \
58     axvlc.def \
59     axvlc.dll.manifest \
60     axvlc.idl \
61     axvlc.tlb \
62     inplace.bmp \
63     vlc16x16.bmp \
64     test.html \
65     $(NULL)
66
67 if BUILD_ACTIVEX
68
69 lib_LTLIBRARIES = axvlc.la
70
71 LIBRARIES_libvlc = $(top_builddir)/src/libvlc.la \
72                                    $(top_builddir)/src/libvlccore.la
73
74 axvlc_la_SOURCES = $(SOURCES_activex)
75 axvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags activex`
76 axvlc_la_CXXFLAGS = `$(VLC_CONFIG) --cxxflags activex`
77 axvlc_la_DEPENDENCIES = axvlc.def $(DATA_axvlc_rc) $(LIBRARIES_libvlc)
78 axvlc_la_LDFLAGS = -Wl,$(srcdir)/axvlc.def -Wl,$(DATA_axvlc_rc) \
79     -no-undefined -avoid-version -module \
80     `$(VLC_CONFIG) --ldflags activex libvlc`
81 axvlc_la_LIBADD = $(LIBRARIES_libvlc) \
82         `$(VLC_CONFIG) -libs activex`
83
84 DATA_axvlc_rc = $(noinst_axvlc_rc_DATA)
85 noinst_axvlc_rc_DATA = axvlc_rc.$(OBJEXT)
86 noinst_axvlc_rcdir = 
87 axvlc_rc.$(OBJEXT): axvlc_rc.rc inplace.bmp axvlc.tlb
88         $(WINDRES) --include-dir $(srcdir) -i $< -o $@
89
90 DATA_axvlc_tlb = $(axvlc_tlb_DATA)
91 noinst_axvlc_tlb_DATA = axvlc.tlb
92 noinst_axvlc_tlbdir = $(libdir)
93
94 if HAS_MIDL_COMPILER
95
96 axvlc.tlb axvlc_idl.c axvlc_idl.h: axvlc.idl
97         $(MIDL) -Oicf -error all -env win32 -tlb axvlc.tlb -iid axvlc_idl.c -h axvlc_idl.h axvlc.idl
98
99 clean-tlb:
100         rm -f axvlc.tlb axvlc_idl.c axvlc_idl.h
101
102 else
103 if HAS_WIDL_COMPILER
104
105 axvlc.tlb axvlc_idl.c axvlc_idl.h: axvlc.idl
106         $(WIDL) -I$(WINE_SDK_PATH)/include -tuh -T axvlc.tlb -U axvlc_idl.c -H axvlc_idl.h axvlc.idl
107
108 clean-tlb:
109         rm -f axvlc.tlb axvlc_idl.c axvlc_idl.h
110
111 else
112
113 clean-tlb:
114
115 endif
116 endif
117
118 else
119
120 clean-tlb:
121
122 endif
123
124 ###############################################################################
125 # Clean rules
126 ###############################################################################
127
128 clean-local: clean-tlb
129
130 ###############################################################################
131 # Force rules
132 ###############################################################################
133