1# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- 2# 3# This file is part of the LibreOffice project. 4# 5# This Source Code Form is subject to the terms of the Mozilla Public 6# License, v. 2.0. If a copy of the MPL was not distributed with this 7# 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# Licensed to the Apache Software Foundation (ASF) under one or more 12# contributor license agreements. See the NOTICE file distributed 13# with this work for additional information regarding copyright 14# ownership. The ASF licenses this file to you under the Apache 15# License, Version 2.0 (the "License"); you may not use this file 16# except in compliance with the License. You may obtain a copy of 17# the License at http://www.apache.org/licenses/LICENSE-2.0 . 18# 19 20$(eval $(call gb_Library_Library,svl)) 21 22$(eval $(call gb_Library_use_externals,svl,\ 23 boost_headers \ 24 $(if $(filter LINUX MACOSX ANDROID iOS DRAGONFLY SOLARIS HAIKU,$(OS)), \ 25 curl) \ 26 dtoa \ 27 icu_headers \ 28 icuuc \ 29 mdds_headers \ 30 libxml2 \ 31)) 32 33$(eval $(call gb_Library_set_componentfile,svl,svl/util/svl)) 34 35$(eval $(call gb_Library_set_include,svl,\ 36 -I$(SRCDIR)/svl/source/inc \ 37 $$(INCLUDE) \ 38)) 39 40$(eval $(call gb_Library_use_custom_headers,svl,\ 41 officecfg/registry \ 42)) 43 44$(eval $(call gb_Library_set_precompiled_header,svl,svl/inc/pch/precompiled_svl)) 45 46$(eval $(call gb_Library_use_sdk_api,svl)) 47 48$(eval $(call gb_Library_add_defs,svl,\ 49 -DSVL_DLLIMPLEMENTATION \ 50)) 51 52ifeq ($(TLS),NSS) 53$(eval $(call gb_Library_use_externals,svl,\ 54 plc4 \ 55 nss3 \ 56)) 57else 58ifeq ($(TLS),OPENSSL) 59$(eval $(call gb_Library_use_externals,svl,\ 60 openssl \ 61 openssl_headers \ 62)) 63endif 64endif 65 66$(eval $(call gb_Library_use_libraries,svl,\ 67 basegfx \ 68 comphelper \ 69 cppu \ 70 cppuhelper \ 71 i18nlangtag \ 72 i18nutil \ 73 $(if $(ENABLE_JAVA), \ 74 jvmfwk) \ 75 sal \ 76 salhelper \ 77 sot \ 78 tl \ 79 ucbhelper \ 80 utl \ 81)) 82 83$(eval $(call gb_Library_use_system_win32_libs,svl,\ 84 advapi32 \ 85 crypt32 \ 86 gdi32 \ 87 gdiplus \ 88 imm32 \ 89 mpr \ 90 ole32 \ 91 shell32 \ 92 usp10 \ 93 uuid \ 94 version \ 95 winspool \ 96 setupapi \ 97 shlwapi \ 98)) 99 100ifneq (,$(filter CRYPTO_NSS,$(BUILD_TYPE))) 101$(eval $(call gb_Library_use_externals,svl,\ 102 nss3 \ 103 plc4 \ 104)) 105endif 106 107$(eval $(call gb_Library_add_exception_objects,svl,\ 108 svl/source/config/asiancfg \ 109 svl/source/config/cjkoptions \ 110 svl/source/config/ctloptions \ 111 svl/source/config/itemholder2 \ 112 svl/source/config/languageoptions \ 113 svl/source/crypto/cryptosign \ 114 svl/source/filepicker/pickerhistory \ 115 svl/source/items/aeitem \ 116 svl/source/items/cenumitm \ 117 svl/source/items/cintitem \ 118 svl/source/items/custritm \ 119 svl/source/items/flagitem \ 120 svl/source/items/globalnameitem \ 121 svl/source/items/grabbagitem \ 122 svl/source/items/ilstitem \ 123 svl/source/items/imageitm \ 124 svl/source/items/intitem \ 125 svl/source/items/int64item \ 126 svl/source/items/itemiter \ 127 svl/source/items/itempool \ 128 svl/source/items/itemprop \ 129 svl/source/items/IndexedStyleSheets \ 130 svl/source/items/itemset \ 131 svl/source/items/lckbitem \ 132 svl/source/items/legacyitem \ 133 svl/source/items/macitem \ 134 svl/source/items/poolcach \ 135 svl/source/items/poolio \ 136 svl/source/items/poolitem \ 137 svl/source/items/ptitem \ 138 svl/source/items/rectitem \ 139 svl/source/items/rngitem \ 140 svl/source/items/sitem \ 141 svl/source/items/slstitm \ 142 svl/source/items/srchitem \ 143 svl/source/items/stringio \ 144 svl/source/items/stritem \ 145 svl/source/items/style \ 146 svl/source/items/stylepool \ 147 svl/source/items/visitem \ 148 svl/source/items/whiter \ 149 svl/source/misc/PasswordHelper \ 150 svl/source/misc/adrparse \ 151 $(if $(filter DESKTOP,$(BUILD_TYPE)),\ 152 svl/source/misc/documentlockfile \ 153 svl/source/misc/msodocumentlockfile) \ 154 svl/source/misc/filenotation \ 155 svl/source/misc/fstathelper \ 156 svl/source/misc/getstringresource \ 157 svl/source/misc/gridprinter \ 158 svl/source/misc/inethist \ 159 svl/source/misc/inettype \ 160 svl/source/misc/lngmisc \ 161 svl/source/misc/lockfilecommon \ 162 svl/source/misc/ownlist \ 163 svl/source/misc/sharecontrolfile \ 164 svl/source/misc/sharedstring \ 165 svl/source/misc/sharedstringpool \ 166 svl/source/misc/strmadpt \ 167 svl/source/misc/urihelper \ 168 svl/source/notify/SfxBroadcaster \ 169 svl/source/notify/broadcast \ 170 svl/source/notify/hint \ 171 svl/source/notify/isethint \ 172 svl/source/notify/listener \ 173 svl/source/notify/lstner \ 174 svl/source/numbers/currencytable \ 175 svl/source/numbers/numfmuno \ 176 svl/source/numbers/numuno \ 177 svl/source/numbers/supservs \ 178 svl/source/numbers/zforfind \ 179 svl/source/numbers/zforlist \ 180 svl/source/numbers/zformat \ 181 svl/source/numbers/zforscan \ 182 svl/source/svsql/converter \ 183 svl/source/undo/undo \ 184 svl/source/uno/pathservice \ 185)) 186 187ifeq ($(OS),WNT) 188$(eval $(call gb_Library_add_exception_objects,svl,\ 189 svl/source/svdde/ddecli \ 190 svl/source/svdde/ddedata \ 191 svl/source/svdde/ddestrg \ 192 svl/source/svdde/ddesvr \ 193)) 194 195else 196$(eval $(call gb_Library_add_exception_objects,svl,\ 197 svl/unx/source/svdde/ddedummy \ 198)) 199endif 200# vim: set noet sw=4 ts=4: 201