Library_svl.mk 5.51 KB
Newer Older
1
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2
#
3
# This file is part of the LibreOffice project.
4
#
5 6 7
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
#
9
# This file incorporates work covered by the following license notice:
10
#
11 12 13 14 15 16 17
#   Licensed to the Apache Software Foundation (ASF) under one or more
#   contributor license agreements. See the NOTICE file distributed
#   with this work for additional information regarding copyright
#   ownership. The ASF licenses this file to you under the Apache
#   License, Version 2.0 (the "License"); you may not use this file
#   except in compliance with the License. You may obtain a copy of
#   the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 19 20 21
#

$(eval $(call gb_Library_Library,svl))

Kohei Yoshida's avatar
Kohei Yoshida committed
22 23
$(eval $(call gb_Library_use_externals,svl,\
    boost_headers \
24
    $(if $(filter LINUX MACOSX ANDROID %BSD SOLARIS HAIKU,$(OS)), \
25
        curl) \
26 27
    icu_headers \
    icuuc \
Kohei Yoshida's avatar
Kohei Yoshida committed
28
    mdds_headers \
29
    libxml2 \
Kohei Yoshida's avatar
Kohei Yoshida committed
30
))
31

32 33
$(eval $(call gb_Library_set_componentfile,svl,svl/util/svl))

34
$(eval $(call gb_Library_set_include,svl,\
35
    -I$(SRCDIR)/svl/source/inc \
36
    $$(INCLUDE) \
37 38
))

39 40 41 42
$(eval $(call gb_Library_use_custom_headers,svl,\
	officecfg/registry \
))

Thomas Arnhold's avatar
Thomas Arnhold committed
43 44
$(eval $(call gb_Library_set_precompiled_header,svl,$(SRCDIR)/svl/inc/pch/precompiled_svl))

45
$(eval $(call gb_Library_use_sdk_api,svl))
46

47
$(eval $(call gb_Library_add_defs,svl,\
48 49 50
    -DSVL_DLLIMPLEMENTATION \
))

51 52 53 54 55 56 57 58 59 60 61 62 63 64
ifeq ($(TLS),NSS)
$(eval $(call gb_Library_use_externals,svl,\
       plc4 \
       nss3 \
))
else
ifeq ($(TLS),OPENSSL)
$(eval $(call gb_Library_use_externals,svl,\
    openssl \
    openssl_headers \
))
endif
endif

Michael Stahl's avatar
Michael Stahl committed
65
$(eval $(call gb_Library_use_libraries,svl,\
66
    basegfx \
67 68
    comphelper \
    cppu \
69
    cppuhelper \
Eike Rathke's avatar
Eike Rathke committed
70
    i18nlangtag \
71
    i18nutil \
72
    $(if $(ENABLE_JAVA), \
73
        jvmfwk) \
74 75 76 77 78 79 80
    sal \
    sot \
    tl \
    ucbhelper \
    utl \
))

81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
$(eval $(call gb_Library_use_system_win32_libs,svl,\
    advapi32 \
    crypt32 \
    gdi32 \
    gdiplus \
    imm32 \
    mpr \
    ole32 \
    shell32 \
    usp10 \
    uuid \
    version \
    winspool \
    setupapi \
    shlwapi \
))

98 99 100 101 102 103 104 105
ifeq ($(OS),WNT)
$(eval $(call gb_Library_add_defs,svl,\
    -DSVL_CRYPTO_MSCRYPTO \
))
$(eval $(call gb_Library_use_system_win32_libs,svl,\
    crypt32 \
))
else
106
ifneq (,$(filter DESKTOP,$(BUILD_TYPE))$(filter ANDROID,$(OS)))
107 108 109 110 111 112 113 114 115 116
$(eval $(call gb_Library_add_defs,svl,\
    -DSVL_CRYPTO_NSS \
))
$(eval $(call gb_Library_use_externals,svl,\
    nss3 \
    plc4 \
))
endif # BUILD_TYPE=DESKTOP
endif

117
$(eval $(call gb_Library_add_exception_objects,svl,\
118
    svl/source/config/asiancfg \
119 120 121 122
    svl/source/config/cjkoptions \
    svl/source/config/ctloptions \
    svl/source/config/itemholder2 \
    svl/source/config/languageoptions \
123
    svl/source/crypto/cryptosign \
124 125 126 127 128 129 130
    svl/source/filepicker/pickerhistory \
    svl/source/items/aeitem \
    svl/source/items/cenumitm \
    svl/source/items/cintitem \
    svl/source/items/custritm \
    svl/source/items/flagitem \
    svl/source/items/globalnameitem \
131
    svl/source/items/grabbagitem \
132 133 134
    svl/source/items/ilstitem \
    svl/source/items/imageitm \
    svl/source/items/intitem \
135
    svl/source/items/int64item \
136 137 138
    svl/source/items/itemiter \
    svl/source/items/itempool \
    svl/source/items/itemprop \
139
    svl/source/items/IndexedStyleSheets \
140 141
    svl/source/items/itemset \
    svl/source/items/lckbitem \
142
    svl/source/items/legacyitem \
143 144 145 146 147 148 149 150 151
    svl/source/items/macitem \
    svl/source/items/poolcach \
    svl/source/items/poolio \
    svl/source/items/poolitem \
    svl/source/items/ptitem \
    svl/source/items/rectitem \
    svl/source/items/rngitem \
    svl/source/items/sitem \
    svl/source/items/slstitm \
152
    svl/source/items/srchitem \
153
    svl/source/items/stringio \
154 155 156 157 158 159 160
    svl/source/items/stritem \
    svl/source/items/style \
    svl/source/items/stylepool \
    svl/source/items/visitem \
    svl/source/items/whiter \
    svl/source/misc/PasswordHelper \
    svl/source/misc/adrparse \
161
    $(if $(filter DESKTOP,$(BUILD_TYPE)),\
162 163
        svl/source/misc/documentlockfile \
        svl/source/misc/msodocumentlockfile) \
164 165
    svl/source/misc/filenotation \
    svl/source/misc/fstathelper \
Stephan Bergmann's avatar
Stephan Bergmann committed
166
    svl/source/misc/getstringresource \
167
    svl/source/misc/gridprinter \
168 169 170 171 172 173
    svl/source/misc/inethist \
    svl/source/misc/inettype \
    svl/source/misc/lngmisc \
    svl/source/misc/lockfilecommon \
    svl/source/misc/ownlist \
    svl/source/misc/sharecontrolfile \
174
    svl/source/misc/sharedstring \
175
    svl/source/misc/sharedstringpool \
176 177
    svl/source/misc/strmadpt \
    svl/source/misc/urihelper \
178
    svl/source/notify/SfxBroadcaster \
179 180 181 182 183
    svl/source/notify/broadcast \
    svl/source/notify/hint \
    svl/source/notify/isethint \
    svl/source/notify/listener \
    svl/source/notify/lstner \
184
    svl/source/numbers/currencytable \
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210
    svl/source/numbers/numfmuno \
    svl/source/numbers/numuno \
    svl/source/numbers/supservs \
    svl/source/numbers/zforfind \
    svl/source/numbers/zforlist \
    svl/source/numbers/zformat \
    svl/source/numbers/zforscan \
    svl/source/svsql/converter \
    svl/source/undo/undo \
    svl/source/uno/pathservice \
))

ifeq ($(OS),WNT)
$(eval $(call gb_Library_add_exception_objects,svl,\
    svl/source/svdde/ddecli \
    svl/source/svdde/ddedata \
    svl/source/svdde/ddestrg \
    svl/source/svdde/ddesvr \
))

else
$(eval $(call gb_Library_add_exception_objects,svl,\
    svl/unx/source/svdde/ddedummy \
))
endif
# vim: set noet sw=4 ts=4: