Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / xmlhelp / Library_ucpchelp1.mk
blob23527d1f9df8da981b5ac1b8e1d421f17eb73978
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) 2012 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 $(eval $(call gb_Library_Library,ucpchelp1))
30 $(eval $(call gb_Library_set_componentfile,ucpchelp1,xmlhelp/util/ucpchelp1))
32 # TODO: is this still relevant?
33 # GCC versions 4.2.x introduced a warning "allocating zero-element array"
34 # Allocating zero-element arrays is an allowed if not somewhat dubious
35 # technique though, so this warning is plain wrong and has been fixed
36 # in gcc 4.3. Unfortunately there is no way at all to suppress this warning.
37 # Some files in this directory use zero allocated arrays, we need to
38 # diable the WaE mechanism for the GCC 4.2.x series.
39 # .IF "$(COM)"=="GCC"
40 # .IF "$(CCNUMVER)">="000400020000" && "$(CCNUMVER)"<="000400020003"
41 # CFLAGSWERRCXX:=
42 # .ENDIF # "$(CCNUMVER)">="000400020000" && "$(CCNUMVER)"<="000400020003"
43 # .ENDIF # "$(COM)"=="GCC"
45 ifeq ($(GUI)$(COM),WNTMSC)
46 $(eval $(call gb_Library_add_cxxflags,ucpchelp1,\
47 -GR \
49 endif
51 $(eval $(call gb_Library_set_include,ucpchelp1,\
52 -I$(SRCDIR)/xmlhelp/source/cxxhelp/inc \
53 $$(INCLUDE) \
56 $(eval $(call gb_Library_use_sdk_api,ucpchelp1))
58 $(eval $(call gb_Library_use_externals,ucpchelp1,\
59 clucene \
60 expat_utf8 \
61 libxml2 \
62 libxslt \
65 $(eval $(call gb_Library_use_libraries,ucpchelp1,\
66 comphelper \
67 cppu \
68 cppuhelper \
69 helplinker \
70 sal \
71 ucbhelper \
72 utl \
75 $(eval $(call gb_Library_add_exception_objects,ucpchelp1,\
76 xmlhelp/source/cxxhelp/provider/bufferedinputstream \
77 xmlhelp/source/cxxhelp/provider/content \
78 xmlhelp/source/cxxhelp/provider/contentcaps \
79 xmlhelp/source/cxxhelp/provider/databases \
80 xmlhelp/source/cxxhelp/provider/db \
81 xmlhelp/source/cxxhelp/provider/inputstream \
82 xmlhelp/source/cxxhelp/provider/provider \
83 xmlhelp/source/cxxhelp/provider/resultset \
84 xmlhelp/source/cxxhelp/provider/resultsetbase \
85 xmlhelp/source/cxxhelp/provider/resultsetforquery \
86 xmlhelp/source/cxxhelp/provider/resultsetforroot \
87 xmlhelp/source/cxxhelp/provider/services \
88 xmlhelp/source/cxxhelp/provider/urlparameter \
89 xmlhelp/source/cxxhelp/qe/DocGenerator \
90 xmlhelp/source/cxxhelp/util/Decompressor \
93 ifeq ($(HAVE_CXX0X),TRUE)
94 $(eval $(call gb_Library_add_defs,ucpchelp1,\
95 -DHAVE_CXX0X \
97 endif
99 # vim: set shiftwidth=4 tabstop=4 noexpandtab: