Makefile.am 2.99 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 22
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 \
23
    README.TXT \
24 25 26 27 28
    $(NULL)


lib_LTLIBRARIES = axvlc.la

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

32 33
BUILT_SOURCES = axvlc_idl.h axvlc_idl.c

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

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

78

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

85 86

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

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

98 99 100
else
if HAS_WIDL_COMPILER

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

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

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

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

112 113 114 115
else

clean-tlb:

116
endif
117 118 119 120 121 122
endif

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

123
clean-local: clean-tlb