1c4c42a0eSDamjan Jovanovic#**************************************************************
2c4c42a0eSDamjan Jovanovic#
3c4c42a0eSDamjan Jovanovic#  Licensed to the Apache Software Foundation (ASF) under one
4c4c42a0eSDamjan Jovanovic#  or more contributor license agreements.  See the NOTICE file
5c4c42a0eSDamjan Jovanovic#  distributed with this work for additional information
6c4c42a0eSDamjan Jovanovic#  regarding copyright ownership.  The ASF licenses this file
7c4c42a0eSDamjan Jovanovic#  to you under the Apache License, Version 2.0 (the
8c4c42a0eSDamjan Jovanovic#  "License"); you may not use this file except in compliance
9c4c42a0eSDamjan Jovanovic#  with the License.  You may obtain a copy of the License at
10c4c42a0eSDamjan Jovanovic#
11c4c42a0eSDamjan Jovanovic#    http://www.apache.org/licenses/LICENSE-2.0
12c4c42a0eSDamjan Jovanovic#
13c4c42a0eSDamjan Jovanovic#  Unless required by applicable law or agreed to in writing,
14c4c42a0eSDamjan Jovanovic#  software distributed under the License is distributed on an
15c4c42a0eSDamjan Jovanovic#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16c4c42a0eSDamjan Jovanovic#  KIND, either express or implied.  See the License for the
17c4c42a0eSDamjan Jovanovic#  specific language governing permissions and limitations
18c4c42a0eSDamjan Jovanovic#  under the License.
19c4c42a0eSDamjan Jovanovic#
20c4c42a0eSDamjan Jovanovic#**************************************************************
21c4c42a0eSDamjan Jovanovic
22c4c42a0eSDamjan Jovanovic
23c4c42a0eSDamjan Jovanovic
24c4c42a0eSDamjan Jovanovic$(eval $(call gb_Library_Library,spell))
25c4c42a0eSDamjan Jovanovic
26c4c42a0eSDamjan Jovanovic$(eval $(call gb_Library_add_precompiled_header,spell,$(SRCDIR)/lingucomponent/inc/pch/precompiled_spell))
27c4c42a0eSDamjan Jovanovic
28c4c42a0eSDamjan Jovanovic$(eval $(call gb_Library_set_componentfile,spell,lingucomponent/source/spellcheck/spell/spell))
29c4c42a0eSDamjan Jovanovic
30c4c42a0eSDamjan Jovanovic$(eval $(call gb_Library_set_include,spell,\
31c4c42a0eSDamjan Jovanovic	$$(INCLUDE) \
32c4c42a0eSDamjan Jovanovic	-I$(SRCDIR)/lingucomponent/inc \
33c4c42a0eSDamjan Jovanovic	-I$(SRCDIR)/lingucomponent/inc/pch \
34c4c42a0eSDamjan Jovanovic	-I$(SRCDIR)/lingucomponent/source/lingutil \
35c4c42a0eSDamjan Jovanovic	-I$(OUTDIR)/inc \
36c4c42a0eSDamjan Jovanovic))
37c4c42a0eSDamjan Jovanovic
38c4c42a0eSDamjan Jovanovic$(eval $(call gb_Library_add_api,spell, \
39c4c42a0eSDamjan Jovanovic	offapi \
40c4c42a0eSDamjan Jovanovic	udkapi \
41c4c42a0eSDamjan Jovanovic))
42c4c42a0eSDamjan Jovanovic
43c4c42a0eSDamjan Jovanovic$(eval $(call gb_Library_add_linked_libs,spell,\
44c4c42a0eSDamjan Jovanovic	cppu \
45c4c42a0eSDamjan Jovanovic	cppuhelper \
46c4c42a0eSDamjan Jovanovic	i18nisolang1 \
47c4c42a0eSDamjan Jovanovic	icuuc \
48c4c42a0eSDamjan Jovanovic	lng \
49c4c42a0eSDamjan Jovanovic	sal \
50c4c42a0eSDamjan Jovanovic	stl \
51c4c42a0eSDamjan Jovanovic	svl \
52c4c42a0eSDamjan Jovanovic	tl \
53c4c42a0eSDamjan Jovanovic	utl \
54c4c42a0eSDamjan Jovanovic	$(gb_STDLIBS) \
55c4c42a0eSDamjan Jovanovic))
56c4c42a0eSDamjan Jovanovic
57c4c42a0eSDamjan Jovanovic$(eval $(call gb_Library_add_linked_static_libs,spell,\
58c4c42a0eSDamjan Jovanovic	ulingu \
59c4c42a0eSDamjan Jovanovic))
60c4c42a0eSDamjan Jovanovic
61c4c42a0eSDamjan Jovanovic$(eval $(call gb_Library_use_externals,spell,\
62c4c42a0eSDamjan Jovanovic	hunspell \
63c4c42a0eSDamjan Jovanovic))
64c4c42a0eSDamjan Jovanovic
65c4c42a0eSDamjan Jovanovic$(eval $(call gb_Library_add_exception_objects,spell,\
66c4c42a0eSDamjan Jovanovic	lingucomponent/source/spellcheck/spell/sreg \
67c4c42a0eSDamjan Jovanovic	lingucomponent/source/spellcheck/spell/sspellimp \
68c4c42a0eSDamjan Jovanovic))
69c4c42a0eSDamjan Jovanovic
70*3c11ff55SJim Jagielskiifeq ($(OS),MACOSX)
71*3c11ff55SJim Jagielski$(eval $(call gb_Library_add_libs,spell,\
72*3c11ff55SJim Jagielski	-framework Cocoa \
73*3c11ff55SJim Jagielski	-framework Carbon \
74*3c11ff55SJim Jagielski	-framework CoreFoundation \
75*3c11ff55SJim Jagielski))
76*3c11ff55SJim Jagielski
77*3c11ff55SJim Jagielski$(eval $(call gb_Library_add_cxxflags,spell,\
78*3c11ff55SJim Jagielski    -x -objective-c++ -stdlib=libc++ \
79*3c11ff55SJim Jagielski))
80*3c11ff55SJim Jagielskiendif
81c4c42a0eSDamjan Jovanovic# vim: set noet sw=4 ts=4:
82c4c42a0eSDamjan Jovanovic
83