Version 3.6.0.2, tag libreoffice-3.6.0.2
[LibreOffice.git] / writerfilter / Library_writerfilter.mk
blob5a34f94ae12c0dd731e3c641a9b76511f239f077
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2 # Version: MPL 1.1 / GPLv3+ / LGPLv3+
4 # The contents of this file are subject to the Mozilla Public License Version
5 # 1.1 (the "License"); you may not use this file except in compliance with
6 # the License or as specified alternatively below. You may obtain a copy of
7 # the License at http://www.mozilla.org/MPL/
9 # Software distributed under the License is distributed on an "AS IS" basis,
10 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 # for the specific language governing rights and limitations under the
12 # License.
14 # Major Contributor(s):
15 # Copyright (C) 2010 Red Hat, Inc., David Tardon <dtardon@redhat.com>
16 # (initial developer)
18 # All Rights Reserved.
20 # For minor contributions see the git repository.
22 # Alternatively, the contents of this file may be used under the terms of
23 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
24 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
25 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
26 # instead of those above.
28 include $(SRCDIR)/writerfilter/debug_setup.mk
29 include $(SRCDIR)/writerfilter/source/generated.mk
31 $(eval $(call gb_Library_Library,writerfilter))
33 $(eval $(call gb_Library_use_custom_headers,writerfilter,\
34 writerfilter/source \
37 $(eval $(call gb_Library_set_include,writerfilter,\
38 $$(INCLUDE) \
39 -I$(SRCDIR)/writerfilter/inc \
40 -I$(SRCDIR)/writerfilter/source \
43 $(eval $(call gb_Library_use_api,writerfilter,\
44 offapi \
45 udkapi \
48 $(eval $(call gb_Library_set_componentfile,writerfilter,writerfilter/util/writerfilter))
50 $(eval $(call gb_Library_add_defs,writerfilter,\
51 -DWRITERFILTER_DOCTOK_DLLIMPLEMENTATION \
52 -DWRITERFILTER_OOXML_DLLIMPLEMENTATION \
53 -DWRITERFILTER_RESOURCEMODEL_DLLIMPLEMENTATION \
54 -DWRITERFILTER_RTFTOK_DLLIMPLEMENTATION \
55 -DWRITERFILTER_WRITERFILTER_DLLIMPLEMENTATION \
56 $(writerfilter_debug_flags) \
59 $(eval $(call gb_Library_use_libraries,writerfilter,\
60 comphelper \
61 cppu \
62 cppuhelper \
63 editeng \
64 i18nisolang1 \
65 i18nutil \
66 msfilter \
67 oox \
68 sal \
69 sot \
70 svt \
71 tl \
72 ucbhelper \
73 utl \
74 vcl \
75 $(gb_STDLIBS) \
78 $(eval $(call gb_Library_use_external,writerfilter,libxml2))
80 $(eval $(call gb_Library_add_exception_objects,writerfilter,\
81 writerfilter/source/rtftok/rtfcharsets \
82 writerfilter/source/rtftok/rtfcontrolwords \
83 writerfilter/source/rtftok/rtfdocumentfactory \
84 writerfilter/source/rtftok/rtfdocumentimpl \
85 writerfilter/source/rtftok/rtfreferenceproperties \
86 writerfilter/source/rtftok/rtfreferencetable \
87 writerfilter/source/rtftok/rtfsdrimport \
88 writerfilter/source/rtftok/rtfskipdestination \
89 writerfilter/source/rtftok/rtfsprm \
90 writerfilter/source/rtftok/rtftokenizer \
91 writerfilter/source/rtftok/rtfvalue \
92 writerfilter/source/dmapper/BorderHandler \
93 writerfilter/source/dmapper/CellColorHandler \
94 writerfilter/source/dmapper/CellMarginHandler \
95 writerfilter/source/dmapper/ConversionHelper \
96 writerfilter/source/dmapper/DomainMapper \
97 writerfilter/source/dmapper/DomainMapperTableHandler \
98 writerfilter/source/dmapper/DomainMapperTableManager \
99 writerfilter/source/dmapper/DomainMapper_Impl \
100 writerfilter/source/dmapper/FFDataHandler \
101 writerfilter/source/dmapper/FontTable \
102 writerfilter/source/dmapper/FormControlHelper \
103 writerfilter/source/dmapper/GraphicHelpers \
104 writerfilter/source/dmapper/GraphicImport \
105 writerfilter/source/dmapper/MeasureHandler \
106 writerfilter/source/dmapper/ModelEventListener \
107 writerfilter/source/dmapper/NumberingManager \
108 writerfilter/source/dmapper/OLEHandler \
109 writerfilter/source/dmapper/PageBordersHandler \
110 writerfilter/source/dmapper/PropertyIds \
111 writerfilter/source/dmapper/PropertyMap \
112 writerfilter/source/dmapper/PropertyMapHelper \
113 writerfilter/source/dmapper/SectionColumnHandler \
114 writerfilter/source/dmapper/SettingsTable \
115 writerfilter/source/dmapper/StyleSheetTable \
116 writerfilter/source/dmapper/TDefTableHandler \
117 writerfilter/source/dmapper/TablePropertiesHandler \
118 writerfilter/source/dmapper/TblStylePrHandler \
119 writerfilter/source/dmapper/ThemeTable \
120 writerfilter/source/dmapper/WrapPolygonHandler \
121 writerfilter/source/doctok/Dff \
122 writerfilter/source/doctok/DffImpl \
123 writerfilter/source/doctok/WW8Annotation \
124 writerfilter/source/doctok/WW8BinTableImpl \
125 writerfilter/source/doctok/WW8Clx \
126 writerfilter/source/doctok/WW8CpAndFc \
127 writerfilter/source/doctok/WW8DocumentImpl \
128 writerfilter/source/doctok/WW8FKPImpl \
129 writerfilter/source/doctok/WW8FontTable \
130 writerfilter/source/doctok/WW8LFOTable \
131 writerfilter/source/doctok/WW8ListTable \
132 writerfilter/source/doctok/WW8OutputWithDepth \
133 writerfilter/source/doctok/WW8Picture \
134 writerfilter/source/doctok/WW8PieceTableImpl \
135 writerfilter/source/doctok/WW8PropertySetImpl \
136 writerfilter/source/doctok/WW8ResourceModelImpl \
137 writerfilter/source/doctok/WW8StreamImpl \
138 writerfilter/source/doctok/WW8StructBase \
139 writerfilter/source/doctok/WW8Sttbf \
140 writerfilter/source/doctok/WW8StyleSheet \
141 writerfilter/source/doctok/WW8Table \
142 writerfilter/source/doctok/WW8Text \
143 writerfilter/source/filter/ImportFilter \
144 writerfilter/source/filter/RtfFilter \
145 writerfilter/source/filter/WriterFilter \
146 writerfilter/source/filter/WriterFilterDetection \
147 writerfilter/source/ooxml/Handler \
148 writerfilter/source/ooxml/OOXMLBinaryObjectReference \
149 writerfilter/source/ooxml/OOXMLDocumentImpl \
150 writerfilter/source/ooxml/OOXMLFactory \
151 writerfilter/source/ooxml/OOXMLFastContextHandler \
152 writerfilter/source/ooxml/OOXMLFastDocumentHandler \
153 writerfilter/source/ooxml/OOXMLFastTokenHandler \
154 writerfilter/source/ooxml/OOXMLParserState \
155 writerfilter/source/ooxml/OOXMLPropertySetImpl \
156 writerfilter/source/ooxml/OOXMLStreamImpl \
157 writerfilter/source/resourcemodel/Fraction \
158 writerfilter/source/resourcemodel/LoggedResources \
159 writerfilter/source/resourcemodel/Protocol \
160 writerfilter/source/resourcemodel/ResourceModelHelper \
161 writerfilter/source/resourcemodel/TagLogger \
162 writerfilter/source/resourcemodel/WW8Analyzer \
163 writerfilter/source/resourcemodel/XPathLogger \
164 writerfilter/source/resourcemodel/resourcemodel \
165 writerfilter/source/resourcemodel/util \
168 $(eval $(call gb_Library_add_generated_exception_objects,writerfilter,\
169 CustomTarget/writerfilter/source/resources \
170 $(patsubst %,CustomTarget/writerfilter/source/OOXMLFactory_%,$(WRITERFILTER_OOXMLNAMESPACES)) \
171 CustomTarget/writerfilter/source/OOXMLFactory_generated \
172 CustomTarget/writerfilter/source/OOXMLFactory_values \
173 CustomTarget/writerfilter/source/sprmcodetostr \
176 ifneq ($(COM)-$(OS)-$(CPUNAME),GCC-LINUX-POWERPC64)
177 #Apparently some compilers, according to the original .mk this was converted
178 #from, require this to be noopt or they fail to compile it, probably good to
179 #revisit that and narrow this down to where it's necessary
180 $(eval $(call gb_Library_add_generated_cxxobjects,writerfilter,\
181 CustomTarget/writerfilter/source/qnametostr \
182 , $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \
184 else
185 #Ironically, on RHEL-6 PPC64 with no-opt the output is too large for the
186 #toolchain, "Error: operand out of range", but it build fine with
187 #normal flags
188 $(eval $(call gb_Library_add_generated_cxxobjects,writerfilter,\
189 CustomTarget/writerfilter/source/qnametostr \
190 , $(gb_LinkTarget_EXCEPTIONFLAGS) \
192 endif
194 # vim: set noet sw=4 ts=4: