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

5 6
MOSTLYCLEANFILES = axvlc.inf axvlc_rc.rc
EXTRA_DIST = $(DIST_rsrc) $(DIST_misc)
7

8 9 10 11 12 13 14 15 16 17 18 19 20
DIST_rsrc = \
    axvlc_rc.rc.in \
    $(NULL)


DIST_misc = \
    axvlc.inf.in \
    axvlc.def \
    axvlc.dll.manifest \
    axvlc.idl \
    axvlc.tlb \
    inplace.bmp \
    vlc16x16.bmp \
21
    ../share/pixmaps/win32/fullscreen.bmp \
22
    ../share/pixmaps/win32/defullscreen.bmp \
Konstantin Pavlov's avatar
Konstantin Pavlov committed
23 24 25 26 27
    ../share/pixmaps/win32/play.bmp \
    ../share/pixmaps/win32/pause.bmp \
    ../share/pixmaps/win32/volume.bmp \
    ../share/pixmaps/win32/volume-muted.bmp \
    ../share/test.html \
28 29 30 31 32 33 34 35 36
    $(NULL)


lib_LTLIBRARIES = axvlc.la

AM_CPPFLAGS = $(LIBVLC_CFLAGS) -DUNICODE -D_UNICODE -D_MIDL_USE_GUIDDEF_
AM_CXXFLAGS = ${CXXFLAGS} -fno-exceptions

axvlc_la_SOURCES = \
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
    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 \
54
    ../common/position.h \
55 56 57 58 59 60
    provideclassinfo.cpp \
    provideclassinfo.h \
    connectioncontainer.cpp \
    connectioncontainer.h \
    objectsafety.cpp \
    objectsafety.h \
61 62
    dataobject.cpp \
    dataobject.h \
63 64
    viewobject.cpp \
    viewobject.h \
65 66
    supporterrorinfo.cpp \
    supporterrorinfo.h \
67 68
    vlccontrol.cpp \
    vlccontrol.h \
69 70
    vlccontrol2.cpp \
    vlccontrol2.h \
71 72 73 74
    plugin.cpp \
    plugin.h \
    axvlc_idl.c \
    axvlc_idl.h \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
75
    ../common/vlc_player_options.h \
76 77
    ../common/win32_fullscreen.cpp \
    ../common/win32_fullscreen.h \
78 79
    ../common/win32_vlcwnd.cpp \
    ../common/win32_vlcwnd.h \
80 81
    ../common/vlc_player.cpp \
    ../common/vlc_player.h
82
    $(NULL)
83

84
axvlc_la_DEPENDENCIES = $(srcdir)/axvlc.def $(DATA_axvlc_rc)
85
axvlc_la_LDFLAGS = -Wl,$(srcdir)/axvlc.def -Wl,$(DATA_axvlc_rc) \
86 87 88
    -no-undefined -avoid-version -module
axvlc_la_LIBADD = $(LIBVLC_LIBS) $(ACTIVEX_LIBS)

89

90 91
DATA_axvlc_rc = $(noinst_axvlc_rc_DATA)
noinst_axvlc_rc_DATA = axvlc_rc.$(OBJEXT)
92
noinst_axvlc_rcdir = 
93
axvlc_rc.$(OBJEXT): axvlc_rc.rc inplace.bmp axvlc.tlb
94
	$(WINDRES) --include-dir $(srcdir) -i $< -o $@
95

96 97

DATA_axvlc_tlb = $(noinst_axvlc_tlb_DATA)
98
noinst_axvlc_tlb_DATA = axvlc.tlb
99
noinst_axvlc_tlbdir =
100 101 102 103 104 105 106

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:
107
	rm -f axvlc.tlb axvlc_idl.c axvlc_idl.h
108

109 110 111
else
if HAS_WIDL_COMPILER

112 113
WINE_SDK_PATH ?= /usr/include/wine/windows

114
axvlc.tlb axvlc_idl.c axvlc_idl.h: axvlc.idl
115
	$(WIDL) -I$(WINE_SDK_PATH) -tuh -T axvlc.tlb -U axvlc_idl.c -H axvlc_idl.h axvlc.idl
116 117 118 119

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

120 121 122 123
else

clean-tlb:

124
endif
125 126 127 128 129 130
endif

###############################################################################
# Clean rules
###############################################################################

131
clean-local: clean-tlb