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

5 6
AUTOMAKE_OPTIONS = subdir-objects

7 8
MOSTLYCLEANFILES = axvlc.inf axvlc_rc.rc
EXTRA_DIST = $(DIST_rsrc) $(DIST_misc)
9

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


DIST_misc = \
    axvlc.inf.in \
    axvlc.dll.manifest \
    axvlc.idl \
    axvlc.tlb \
    inplace.bmp \
    vlc16x16.bmp \
22
    README.TXT \
23 24 25 26 27
    $(NULL)


lib_LTLIBRARIES = axvlc.la

28 29
AM_CPPFLAGS = $(LIBVLC_CFLAGS) -DUNICODE -D_UNICODE -D_MIDL_USE_GUIDDEF_ -I$(top_srcdir)/vlcpp
AM_CXXFLAGS = ${CXXFLAGS}
30

31 32
BUILT_SOURCES = axvlc_idl.h axvlc_idl.c

33
axvlc_la_SOURCES = \
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
    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 \
Damien Fouilleul's avatar
Damien Fouilleul committed
57 58
    dataobject.cpp \
    dataobject.h \
59 60
    viewobject.cpp \
    viewobject.h \
61 62
    supporterrorinfo.cpp \
    supporterrorinfo.h \
63 64
    vlccontrol2.cpp \
    vlccontrol2.h \
65 66 67
    plugin.cpp \
    plugin.h \
    axvlc_idl.c \
68
    axvlc_idl.h
69

70 71
axvlc_la_DEPENDENCIES = $(DATA_axvlc_rc)
axvlc_la_LDFLAGS = -Wl,--kill-at -Wl,$(DATA_axvlc_rc) \
72 73
    -no-undefined -avoid-version -module \
    -Wc,--static -Wc,-static-libgcc
74 75
axvlc_la_LIBADD = ../common/libvlcplugin_common.la \
	$(LIBVLC_LIBS) $(ACTIVEX_LIBS)
76

77

78 79
DATA_axvlc_rc = $(noinst_axvlc_rc_DATA)
noinst_axvlc_rc_DATA = axvlc_rc.$(OBJEXT)
80
noinst_axvlc_rcdir = 
81
axvlc_rc.$(OBJEXT): axvlc_rc.rc inplace.bmp axvlc.tlb axvlc.dll.manifest
82
	$(WINDRES) --include-dir $(srcdir) -i $< -o $@
83

84 85

DATA_axvlc_tlb = $(noinst_axvlc_tlb_DATA)
86
noinst_axvlc_tlb_DATA = axvlc.tlb
87
noinst_axvlc_tlbdir =
88 89 90 91 92 93 94

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

97 98 99
else
if HAS_WIDL_COMPILER

100 101
WINE_SDK_PATH ?= /usr/include/wine/windows

102
stdole2.tlb stdole2_idl.c stdole2_idl.h: $(WINE_SDK_PATH)/stdole2.idl
103
	$(WIDL) $(WIDLFLAGS) -I$(WINE_SDK_PATH) -t -u -h -T stdole2.tlb -U stdole2_idl.c -H stdole2_idl.h $<
104 105

axvlc.tlb axvlc_idl.c axvlc_idl.h: axvlc.idl stdole2.tlb
106
	$(WIDL) $(WIDLFLAGS) -I$(WINE_SDK_PATH) -I. -t -u -h -T axvlc.tlb -U axvlc_idl.c -H axvlc_idl.h $<
107 108

clean-tlb:
109
	rm -f axvlc.tlb axvlc_idl.c axvlc_idl.h stdole2.tlb stdole2_idl.c stdole2_idl.h
110

111 112 113 114
else

clean-tlb:

115
endif
116 117 118 119 120 121
endif

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

122
clean-local: clean-tlb