Makefile.am 3.23 KB
Newer Older
1
2
3
4
###############################################################################
# Building the Activex plugin
###############################################################################

5
MOSTLYCLEANFILES = 
6
EXTRA_DIST = $(SOURCES_activex) $(DIST_rsrc) $(DIST_misc)
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
BUILT_SOURCES = $(BUILT_SOURCES_activex)

SOURCES_activex = \
    main.cpp \
    utils.cpp \
    utils.h \
    olecontrol.cpp \
    olecontrol.h \
    oleinplaceactiveobject.cpp \
    oleinplaceactiveobject.h \
    oleinplaceobject.cpp \
    oleinplaceobject.h \
    oleobject.cpp \
    oleobject.h \
    persistpropbag.cpp \
    persistpropbag.h \
    persiststorage.cpp \
    persiststorage.h \
    persiststreaminit.cpp \
    persiststreaminit.h \
    provideclassinfo.cpp \
    provideclassinfo.h \
    connectioncontainer.cpp \
    connectioncontainer.h \
    objectsafety.cpp \
    objectsafety.h \
damienf's avatar
   
damienf committed
33
34
    dataobject.cpp \
    dataobject.h \
35
36
    viewobject.cpp \
    viewobject.h \
37
38
    supporterrorinfo.cpp \
    supporterrorinfo.h \
39
40
    vlccontrol.cpp \
    vlccontrol.h \
41
42
    vlccontrol2.cpp \
    vlccontrol2.h \
43
44
45
46
    plugin.cpp \
    plugin.h \
    axvlc_idl.c \
    axvlc_idl.h \
damienf's avatar
damienf committed
47
    guiddef.h \
48
    $(NULL)
49
50

DIST_rsrc = \
51
52
    axvlc_rc.rc \
    $(NULL)
53

54
DIST_misc = \
55
    README.TXT \
56
    axvlc.inf.in \
57
58
59
60
    axvlc.def \
    axvlc.idl \
    axvlc.tlb \
    inplace.bmp \
61
    vlc16x16.bmp \
62
63
    test.html \
    $(NULL)
64

65
66
if BUILD_ACTIVEX

damienf's avatar
damienf committed
67
lib_LTLIBRARIES = axvlc.la
68

69
70
LIBRARIES_libvlc = $(top_builddir)/src/libvlc-control.la \
				   $(top_builddir)/src/libvlc.la
71

damienf's avatar
damienf committed
72
73
74
75
76
axvlc_la_SOURCES = $(SOURCES_activex)
axvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags activex`
axvlc_la_CXXFLAGS = `$(VLC_CONFIG) --cxxflags activex`
axvlc_la_DEPENDENCIES = axvlc.def $(DATA_axvlc_rc) $(LIBRARIES_libvlc)
axvlc_la_LDFLAGS = $(srcdir)/axvlc.def -Wl,$(DATA_axvlc_rc) \
77
    -no-undefined -avoid-version -module \
78
79
80
    `$(VLC_CONFIG) --ldflags activex libvlc`
axvlc_la_LIBADD = $(LIBRARIES_libvlc) \
	`$(VLC_CONFIG) -libs activex`
81

82
83
DATA_axvlc_rc = $(noinst_axvlc_rc_DATA)
noinst_axvlc_rc_DATA = axvlc_rc.$(OBJEXT)
84
noinst_axvlc_rcdir = 
85
86
axvlc_rc.$(OBJEXT): axvlc_rc.rc inplace.bmp axvlc.tlb
	$(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 $@
87
88
89
90
91
92
93
94
95
96
97

DATA_axvlc_tlb = $(axvlc_tlb_DATA)
noinst_axvlc_tlb_DATA = axvlc.tlb
noinst_axvlc_tlbdir = $(libdir)

if HAS_MIDL_COMPILER

axvlc.tlb axvlc_idl.c axvlc_idl.h: axvlc.idl
	$(MIDL) -Oicf -error all -env win32 -tlb axvlc.tlb -iid axvlc_idl.c -h axvlc_idl.h axvlc.idl

clean-tlb:
98
	rm -f axvlc.tlb axvlc_idl.c axvlc_idl.h
99

100
101
102
103
104
105
106
107
108
else
if HAS_WIDL_COMPILER

axvlc.tlb axvlc_idl.c axvlc_idl.h: axvlc.idl
	$(WIDL) -I$(WINE_SDK_PATH)/include -tuh -T axvlc.tlb -U axvlc_idl.c -H axvlc_idl.h axvlc.idl

clean-tlb:
	rm -f axvlc.tlb axvlc_idl.c axvlc_idl.h

109
110
111
112
else

clean-tlb:

113
endif
114
115
endif

116
117
118
119
120
121
else

clean-tlb:

endif

122
123
124
125
###############################################################################
# Clean rules
###############################################################################

126
clean-local: clean-tlb
127
128

###############################################################################
129
# Force rules
130
131
###############################################################################