1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************** 21 22 23 24$(eval $(call gb_Library_Library,cui)) 25 26$(eval $(call gb_Library_add_precompiled_header,cui,$(SRCDIR)/cui/inc/pch/precompiled_cui)) 27 28$(eval $(call gb_Library_set_componentfile,cui,cui/util/cui)) 29 30$(eval $(call gb_Library_set_include,cui,\ 31 $$(INCLUDE) \ 32 -I$(SRCDIR)/cui/inc/pch \ 33 -I$(SRCDIR)/cui/source/inc \ 34)) 35 36ifneq ($(strip $(BUILD_VER_STRING)),) 37$(eval $(call gb_Library_add_defs,cui,-DBUILD_VER_STRING="$(BUILD_VER_STRING)")) 38endif 39 40$(eval $(call gb_Library_add_defs,cui,\ 41 -DCOPYRIGHT_YEAR=$(shell perl -e 'use POSIX qw(strftime); print strftime("%Y", gmtime($$ENV{SOURCE_DATE_EPOCH} || time));') \ 42)) 43 44ifeq ($(ENABLE_GTK),TRUE) 45$(eval $(call gb_Library_add_defs,cui,-DENABLE_GTK)) 46endif 47 48ifeq ($(ENABLE_KDE),TRUE) 49$(eval $(call gb_Library_add_defs,cui,-DENABLE_KDE)) 50endif 51 52ifeq ($(ENABLE_KDE4),TRUE) 53$(eval $(call gb_Library_add_defs,cui,-DENABLE_KDE4)) 54endif 55 56$(eval $(call gb_Library_add_api,cui,\ 57 offapi \ 58 udkapi \ 59)) 60 61$(eval $(call gb_Library_add_linked_libs,cui,\ 62 avmedia \ 63 basegfx \ 64 comphelper \ 65 cppuhelper \ 66 cppu \ 67 editeng \ 68 i18nisolang1 \ 69 jvmfwk \ 70 lng \ 71 ootk \ 72 sal \ 73 sb \ 74 sax \ 75 sfx \ 76 sot \ 77 stl \ 78 svl \ 79 svt \ 80 svx \ 81 svxcore \ 82 tl \ 83 ucbhelper \ 84 utl \ 85 vcl \ 86 vos3 \ 87 $(gb_STDLIBS) \ 88)) 89 90ifeq ($(GUI),WNT) 91$(eval $(call gb_Library_add_linked_libs,cui,\ 92 advapi32 \ 93 shlwapi \ 94)) 95endif 96 97$(call gb_Library_use_external,cui,icuuc) 98 99$(eval $(call gb_Library_add_exception_objects,cui,\ 100 cui/source/customize/acccfg \ 101 cui/source/customize/cfg \ 102 cui/source/customize/cfgutil \ 103 cui/source/customize/eventdlg \ 104 cui/source/customize/macropg \ 105 cui/source/customize/selector \ 106 cui/source/dialogs/about \ 107 cui/source/dialogs/colorpicker \ 108 cui/source/dialogs/commonlingui \ 109 cui/source/dialogs/cuicharmap \ 110 cui/source/dialogs/cuifmsearch \ 111 cui/source/dialogs/cuigaldlg \ 112 cui/source/dialogs/cuigrfflt \ 113 cui/source/dialogs/cuihyperdlg \ 114 cui/source/dialogs/cuiimapwnd \ 115 cui/source/dialogs/cuitbxform \ 116 cui/source/dialogs/dlgname \ 117 cui/source/dialogs/hangulhanjadlg \ 118 cui/source/dialogs/hldocntp \ 119 cui/source/dialogs/hldoctp \ 120 cui/source/dialogs/hlinettp \ 121 cui/source/dialogs/hlmailtp \ 122 cui/source/dialogs/hlmarkwn \ 123 cui/source/dialogs/hltpbase \ 124 cui/source/dialogs/hyphen \ 125 cui/source/dialogs/iconcdlg \ 126 cui/source/dialogs/insdlg \ 127 cui/source/dialogs/insrc \ 128 cui/source/dialogs/linkdlg \ 129 cui/source/dialogs/multifil \ 130 cui/source/dialogs/multipat \ 131 cui/source/dialogs/newtabledlg \ 132 cui/source/dialogs/passwdomdlg \ 133 cui/source/dialogs/pastedlg \ 134 cui/source/dialogs/plfilter \ 135 cui/source/dialogs/postdlg \ 136 cui/source/dialogs/scriptdlg \ 137 cui/source/dialogs/sdrcelldlg \ 138 cui/source/dialogs/showcols \ 139 cui/source/dialogs/SpellAttrib \ 140 cui/source/dialogs/SpellDialog \ 141 cui/source/dialogs/splitcelldlg \ 142 cui/source/dialogs/srchxtra \ 143 cui/source/dialogs/thesdlg \ 144 cui/source/dialogs/zoom \ 145 cui/source/factory/dlgfact \ 146 cui/source/factory/cuiexp \ 147 cui/source/factory/cuiresmgr \ 148 cui/source/factory/init \ 149 cui/source/options/cfgchart \ 150 cui/source/options/connpoolconfig \ 151 cui/source/options/connpooloptions \ 152 cui/source/options/connpoolsettings \ 153 cui/source/options/cuisrchdlg \ 154 cui/source/options/dbregister \ 155 cui/source/options/dbregisterednamesconfig \ 156 cui/source/options/dbregistersettings \ 157 cui/source/options/doclinkdialog \ 158 cui/source/options/fontsubs \ 159 cui/source/options/internationaloptions \ 160 cui/source/options/optaccessibility \ 161 cui/source/options/optasian \ 162 cui/source/options/optchart \ 163 cui/source/options/optcolor \ 164 cui/source/options/optctl \ 165 cui/source/options/optdict \ 166 cui/source/options/optfltr \ 167 cui/source/options/optgdlg \ 168 cui/source/options/optgenrl \ 169 cui/source/options/optHeaderTabListbox \ 170 cui/source/options/opthtml \ 171 cui/source/options/optimprove \ 172 cui/source/options/optimprove2 \ 173 cui/source/options/optinet2 \ 174 cui/source/options/optjava \ 175 cui/source/options/optjsearch \ 176 cui/source/options/optlingu \ 177 cui/source/options/optmemory \ 178 cui/source/options/optpath \ 179 cui/source/options/optsave \ 180 cui/source/options/optupdt \ 181 cui/source/options/radiobtnbox \ 182 cui/source/options/readonlyimage \ 183 cui/source/options/sdbcdriverenum \ 184 cui/source/options/securityoptions \ 185 cui/source/options/treeopt \ 186 cui/source/options/webconninfo \ 187 cui/source/tabpages/align \ 188 cui/source/tabpages/autocdlg \ 189 cui/source/tabpages/backgrnd \ 190 cui/source/tabpages/bbdlg \ 191 cui/source/tabpages/border \ 192 cui/source/tabpages/borderconn \ 193 cui/source/tabpages/chardlg \ 194 cui/source/tabpages/connect \ 195 cui/source/tabpages/dstribut \ 196 cui/source/tabpages/grfpage \ 197 cui/source/tabpages/labdlg \ 198 cui/source/tabpages/macroass \ 199 cui/source/tabpages/measure \ 200 cui/source/tabpages/numfmt \ 201 cui/source/tabpages/numpages \ 202 cui/source/tabpages/page \ 203 cui/source/tabpages/paragrph \ 204 cui/source/tabpages/swpossizetabpage \ 205 cui/source/tabpages/tabarea \ 206 cui/source/tabpages/tabline \ 207 cui/source/tabpages/tabstpge \ 208 cui/source/tabpages/textanim \ 209 cui/source/tabpages/textattr \ 210 cui/source/tabpages/tparea \ 211 cui/source/tabpages/tpbitmap \ 212 cui/source/tabpages/tpcolor \ 213 cui/source/tabpages/tpgradnt \ 214 cui/source/tabpages/tphatch \ 215 cui/source/tabpages/tpline \ 216 cui/source/tabpages/tplnedef \ 217 cui/source/tabpages/tplneend \ 218 cui/source/tabpages/tpshadow \ 219 cui/source/tabpages/transfrm \ 220 cui/source/uno/services/services \ 221)) 222 223ifeq ($(GUI),WNT) 224$(eval $(call gb_Library_add_exception_objects,cui,\ 225 cui/source/dialogs/winpluginlib \ 226)) 227endif 228 229# vim: set noet sw=4 ts=4: 230