]> git.sesse.net Git - vlc/blob - activex/Makefile.am
* modules/audio_output/directx.c: backported directx audio output fix from trunk...
[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     plugin.cpp \
42     plugin.h \
43     axvlc_idl.c \
44     axvlc_idl.h \
45     $(NULL)
46
47 DIST_rsrc = \
48     axvlc_rc.rc \
49     $(NULL)
50
51 DIST_misc = \
52     README.TXT \
53     axvlc.inf.in \
54     axvlc.def \
55     axvlc.idl \
56     axvlc.tlb \
57     inplace.bmp \
58     vlc16x16.bmp \
59     test.html \
60     $(NULL)
61
62 LIBRARIES_libvlc = $(top_builddir)/lib/libvlc.a
63
64 if BUILD_ACTIVEX
65
66 noinst_LIBRARIES_activex = libaxvlc.a
67 axvlc_DATA = axvlc$(LIBEXT)
68 axvlcdir = $(libdir)
69
70 LDFLAGS_activex = `$(VLC_CONFIG) --libs activex vlc builtin`
71
72 libaxvlc_a_SOURCES = $(SOURCES_activex) $(SOURCE_dll)
73 libaxvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags activex`
74 libaxvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags activex`
75 libaxvlc_a_DEPENDENCIES = axvlc.def $(DATA_axvlc_rc)
76
77 axvlc$(LIBEXT): $(libaxvlc_a_OBJECTS) \
78                       $(libaxvlc_a_DEPENDENCIES) stamp-pic
79         $(CXXLINK) $(libaxvlc_a_OBJECTS) $(DATA_axvlc_rc) \
80         -Wl,--enable-stdcall-fixup $(srcdir)/axvlc.def \
81           $(LIBRARIES_libvlc) -shared $(LDFLAGS_activex) $(LIBRARIES_libvlc) 
82
83
84 DATA_axvlc_tlb = $(axvlc_tlb_DATA)
85 noinst_axvlc_tlb_DATA = axvlc.tlb
86 noinst_axvlc_tlbdir = $(libdir)
87
88 if HAS_MIDL_COMPILER
89
90 axvlc.tlb axvlc_idl.c axvlc_idl.h: axvlc.idl
91         $(MIDL) -Oicf -error all -env win32 -tlb axvlc.tlb -iid axvlc_idl.c -h axvlc_idl.h axvlc.idl
92
93 clean-tlb:
94         rm -f axvlc.tlb axvlc_idl.c axvlc_idl.h
95
96 else
97
98 clean-tlb:
99
100 endif
101
102 DATA_axvlc_rc = $(noinst_axvlc_rc_DATA)
103 noinst_axvlc_rc_DATA = axvlc_rc.$(OBJEXT)
104 noinst_axvlc_rcdir = $(libdir)
105 axvlc_rc.$(OBJEXT): axvlc_rc.rc inplace.bmp axvlc.tlb
106         $(WINDRES) -DVERSION=$(VERSION) -DVERSION_NUMBER=`echo $(VERSION).0.0.0 | sed 's/\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\).*/\1,\2,\3,\4/'` --include-dir $(srcdir) -i $< -o $@
107
108 else
109
110 clean-tlb:
111
112 endif
113
114 ###############################################################################
115 # Stamp rules
116 ###############################################################################
117
118 clean-stamp:
119         rm -f stamp-pic
120
121 stamp-pic: FORCE
122         @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
123           if test "$${dep}" -nt "$(LIBRARIES_activex)"; then \
124             rm -f $@; \
125             break; \
126           fi; \
127         done
128         @if test ! -f $@; then printf "" > $@; fi
129
130 ###############################################################################
131 # Clean rules
132 ###############################################################################
133
134 clean-local: clean-stamp clean-tlb
135         rm -f axvlc$(LIBEXT)
136
137 ###############################################################################
138 # Force rule
139 ###############################################################################
140 FORCE:
141