summaryrefslogtreecommitdiff
path: root/src/lib/Makefile.am
blob: 7585770ce83436aee052c0ff10d02905630700d3 (plain)
1
2
3
4
5
6
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
if PLATFORM_WIN32
version_info = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -avoid-version
else
version_info = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
endif

lib_LTLIBRARIES = libvisio-@VSD_MAJOR_VERSION@.@VSD_MINOR_VERSION@.la
libvisio_@VSD_MAJOR_VERSION@_@VSD_MINOR_VERSION@_includedir = $(includedir)/libvisio-@VSD_MAJOR_VERSION@.@VSD_MINOR_VERSION@/libvisio
libvisio_@VSD_MAJOR_VERSION@_@VSD_MINOR_VERSION@_include_HEADERS = \
	$(top_srcdir)/inc/libvisio/libvisio.h \
	$(top_srcdir)/inc/libvisio/VisioDocument.h

AM_CXXFLAGS = \
	-DLIBVISIO_BUILD=1 \
	-I$(top_srcdir)/inc \
	-I$(top_srcdir)/src/lib \
	-I$(top_builddir)/src/lib \
	-DBOOST_ERROR_CODE_HEADER_ONLY \
	-DBOOST_SYSTEM_NO_DEPRECATED \
	$(LIBVISIO_CXXFLAGS) \
	$(DEBUG_CXXFLAGS)

BUILT_SOURCES = tokens.h tokenhash.h

libvisio_@VSD_MAJOR_VERSION@_@VSD_MINOR_VERSION@_la_LIBADD  = $(LIBVISIO_LIBS) @LIBVISIO_WIN32_RESOURCE@
libvisio_@VSD_MAJOR_VERSION@_@VSD_MINOR_VERSION@_la_DEPENDENCIES = @LIBVISIO_WIN32_RESOURCE@
libvisio_@VSD_MAJOR_VERSION@_@VSD_MINOR_VERSION@_la_LDFLAGS = $(version_info) -export-dynamic -no-undefined
libvisio_@VSD_MAJOR_VERSION@_@VSD_MINOR_VERSION@_la_SOURCES = \
	VDXParser.cpp \
	VDXParser.h \
	VSD5Parser.cpp \
	VSD5Parser.h \
	VSD6Parser.cpp \
	VSD6Parser.h \
	VSDCharacterList.cpp \
	VSDCharacterList.h \
	VSDCollector.h \
	VSDContentCollector.cpp \
	VSDContentCollector.h \
	VSDDocumentStructure.h \
	VSDFieldList.cpp \
	VSDFieldList.h \
	VSDGeometryList.cpp \
	VSDGeometryList.h \
	VSDInternalStream.cpp \
	VSDInternalStream.h \
	VSDLayerList.cpp \
	VSDLayerList.h \
	VSDMetaData.cpp \
	VSDMetaData.h \
	VSDOutputElementList.cpp \
	VSDOutputElementList.h \
	VSDPages.cpp \
	VSDPages.h \
	VSDParagraphList.cpp \
	VSDParagraphList.h \
	VSDParser.cpp \
	VSDParser.h \
	VSDShapeList.cpp \
	VSDShapeList.h \
	VSDStencils.cpp \
	VSDStencils.h \
	VSDStyles.cpp \
	VSDStyles.h \
	VSDStylesCollector.cpp \
	VSDStylesCollector.h \
	VSDTypes.h \
	VSDXMLHelper.cpp \
	VSDXMLHelper.h \
	VSDXMLParserBase.cpp \
	VSDXMLParserBase.h \
	VSDXMLTokenMap.cpp \
	VSDXMLTokenMap.h \
	VSDXMetaData.cpp \
	VSDXMetaData.h \
	VSDXParser.cpp \
	VSDXParser.h \
	VSDXTheme.cpp \
	VSDXTheme.h \
	VisioDocument.cpp \
	libvisio_utils.cpp \
	libvisio_utils.h \
	libvisio_xml.cpp \
	libvisio_xml.h

tokens.h : tokens.gperf

tokenhash.h : tokens.gperf
	$(GPERF) --compare-strncmp -C -m 20 tokens.gperf \
		| $(SED) -e 's/(char\*)0/(char\*)0, 0/g' > tokenhash.h

tokens.gperf : $(top_srcdir)/src/lib/tokens.txt $(top_srcdir)/src/lib/gentoken.pl
	$(PERL) $(top_srcdir)/src/lib/gentoken.pl $(top_srcdir)/src/lib/tokens.txt \
		tokens.h tokens.gperf

if OS_WIN32

@LIBVISIO_WIN32_RESOURCE@ : libvisio.rc $(libvisio_@VSD_MAJOR_VERSION@_@VSD_MINOR_VERSION@_la_OBJECTS)
	chmod +x $(top_srcdir)/build/win32/*compile-resource
	WINDRES=@WINDRES@ $(top_srcdir)/build/win32/lt-compile-resource libvisio.rc @LIBVISIO_WIN32_RESOURCE@

endif

MOSTLYCLEANFILES = \
	$(BUILT_SOURCES) \
	tokens.gperf

EXTRA_DIST = \
	$(BUILT_SOURCES) \
	tokens.txt \
	gentoken.pl \
	libvisio.rc \
	libvisio.rc.in