]> git.sesse.net Git - vlc/blob - projects/activex/Makefile.am
macosx/framework: Build a fat framework (x86_64 and i386) in Release mode.
[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     provideclassinfo.cpp \
28     provideclassinfo.h \
29     connectioncontainer.cpp \
30     connectioncontainer.h \
31     objectsafety.cpp \
32     objectsafety.h \
33     dataobject.cpp \
34     dataobject.h \
35     viewobject.cpp \
36     viewobject.h \
37     supporterrorinfo.cpp \
38     supporterrorinfo.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     guiddef.h \
48     $(NULL)
49
50 DIST_rsrc = \
51     axvlc_rc.rc.in \
52     $(NULL)
53
54 DIST_misc = \
55     README.TXT \
56     axvlc.inf.in \
57     axvlc.def \
58     axvlc.dll.manifest \
59     axvlc.idl \
60     axvlc.tlb \
61     inplace.bmp \
62     vlc16x16.bmp \
63     test.html \
64     $(NULL)
65
66 if BUILD_ACTIVEX
67
68 lib_LTLIBRARIES = axvlc.la
69
70 LIBRARIES_libvlc = $(top_builddir)/src/libvlc.la \
71                                    $(top_builddir)/src/libvlccore.la
72
73 axvlc_la_SOURCES = $(SOURCES_activex)
74 axvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags activex`
75 axvlc_la_CXXFLAGS = `$(VLC_CONFIG) --cxxflags activex`
76 axvlc_la_DEPENDENCIES = axvlc.def $(DATA_axvlc_rc) $(LIBRARIES_libvlc)
77 axvlc_la_LDFLAGS = -Wl,$(srcdir)/axvlc.def -Wl,$(DATA_axvlc_rc) \
78     -no-undefined -avoid-version -module \
79     `$(VLC_CONFIG) --ldflags activex libvlc`
80 axvlc_la_LIBADD = $(LIBRARIES_libvlc) \
81         `$(VLC_CONFIG) -libs activex`
82
83 DATA_axvlc_rc = $(noinst_axvlc_rc_DATA)
84 noinst_axvlc_rc_DATA = axvlc_rc.$(OBJEXT)
85 noinst_axvlc_rcdir = 
86 axvlc_rc.$(OBJEXT): axvlc_rc.rc inplace.bmp axvlc.tlb
87         $(WINDRES) --include-dir $(srcdir) -i $< -o $@
88
89 DATA_axvlc_tlb = $(axvlc_tlb_DATA)
90 noinst_axvlc_tlb_DATA = axvlc.tlb
91 noinst_axvlc_tlbdir = $(libdir)
92
93 if HAS_MIDL_COMPILER
94
95 axvlc.tlb axvlc_idl.c axvlc_idl.h: axvlc.idl
96         $(MIDL) -Oicf -error all -env win32 -tlb axvlc.tlb -iid axvlc_idl.c -h axvlc_idl.h axvlc.idl
97
98 clean-tlb:
99         rm -f axvlc.tlb axvlc_idl.c axvlc_idl.h
100
101 else
102 if HAS_WIDL_COMPILER
103
104 axvlc.tlb axvlc_idl.c axvlc_idl.h: axvlc.idl
105         $(WIDL) -I$(WINE_SDK_PATH)/include -tuh -T axvlc.tlb -U axvlc_idl.c -H axvlc_idl.h axvlc.idl
106
107 clean-tlb:
108         rm -f axvlc.tlb axvlc_idl.c axvlc_idl.h
109
110 else
111
112 clean-tlb:
113
114 endif
115 endif
116
117 else
118
119 clean-tlb:
120
121 endif
122
123 ###############################################################################
124 # Clean rules
125 ###############################################################################
126
127 clean-local: clean-tlb
128
129 ###############################################################################
130 # Force rules
131 ###############################################################################
132