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,dbui)) 25$(eval $(call gb_Library_add_precompiled_header,dbui,$(SRCDIR)/dbaccess/inc/pch/precompiled_dbui)) 26 27$(eval $(call gb_Library_set_componentfile,dbui,dbaccess/util/dbu)) 28 29$(eval $(call gb_Library_add_api,dbui,\ 30 udkapi \ 31 offapi \ 32)) 33 34$(eval $(call gb_Library_set_include,dbui,\ 35 -I$(SRCDIR)/dbaccess/inc \ 36 -I$(SRCDIR)/dbaccess/source/ui/inc \ 37 -I$(SRCDIR)/dbaccess/source/inc \ 38 -I$(SRCDIR)/dbaccess/inc/pch \ 39 $$(INCLUDE) \ 40)) 41 42ifeq ($(SYSTEM_ODBC_HEADERS),TRUE) 43$(eval $(call gb_Library_add_cflags,dbui,\ 44 -DSYSTEM_ODBC_HEADERS \ 45)) 46endif 47 48ifneq ($(WINDOWS_VISTA_PSDK),) 49ifeq ($(PROF_EDITION),) 50$(eval $(call gb_Library_add_defs,dbui,\ 51 -DDBACCESS_DLLIMPLEMENTATION\ 52 -DWINDOWS_VISTA_PSDK \ 53)) 54endif 55endif 56 57ifeq ($(GUI)$(COM),WNTGCC) 58$(eval $(call gb_Library_add_cflags,dbui,\ 59 -fpermissive \ 60)) 61endif 62 63ifeq ($(PROF_EDITION),) 64ifneq ($(WINDOWS_VISTA_PSDK),) 65DISABLE_ADO=TRUE 66endif 67endif 68 69ifeq ($(OS),WNT) 70ifeq ($(DISABLE_ADO),) 71$(eval $(call gb_Library_add_exception_objects,dbui,\ 72 dbaccess/source/ui/dlg/adodatalinks \ 73)) 74endif 75endif 76 77$(eval $(call gb_Library_add_defs,dbui,\ 78 -DDBACCESS_DLLIMPLEMENTATION\ 79)) 80 81$(eval $(call gb_Library_add_linked_libs,dbui,\ 82 comphelper \ 83 cppuhelper \ 84 cppu \ 85 dbtools \ 86 i18nisolang1 \ 87 fwe \ 88 sal \ 89 salhelper \ 90 sfx \ 91 svl \ 92 svt \ 93 stl \ 94 vcl \ 95 tl \ 96 utl \ 97 ucbhelper \ 98 svxcore \ 99 svx \ 100 ootk \ 101 sot \ 102 dba \ 103 vos3 \ 104 $(gb_STDLIBS) \ 105)) 106ifeq ($(OS),WNT) 107$(eval $(call gb_Library_add_linked_libs,dbui,\ 108 ole32 \ 109 oleaut32 \ 110 uuid \ 111)) 112endif 113 114$(eval $(call gb_Library_add_exception_objects,dbui,\ 115 dbaccess/source/ui/app/AppController \ 116 dbaccess/source/ui/app/AppControllerDnD \ 117 dbaccess/source/ui/app/AppControllerGen \ 118 dbaccess/source/ui/app/AppDetailPageHelper \ 119 dbaccess/source/ui/app/AppDetailView \ 120 dbaccess/source/ui/app/AppSwapWindow \ 121 dbaccess/source/ui/app/AppTitleWindow \ 122 dbaccess/source/ui/app/AppView \ 123 dbaccess/source/ui/app/closeveto \ 124 dbaccess/source/ui/app/subcomponentmanager \ 125 dbaccess/source/ui/browser/brwctrlr \ 126 dbaccess/source/ui/browser/brwview \ 127 dbaccess/source/ui/browser/dataview \ 128 dbaccess/source/ui/browser/dbexchange \ 129 dbaccess/source/ui/browser/dbloader \ 130 dbaccess/source/ui/browser/dbtreemodel \ 131 dbaccess/source/ui/browser/dbtreeview \ 132 dbaccess/source/ui/browser/dsEntriesNoExp \ 133 dbaccess/source/ui/browser/dsbrowserDnD \ 134 dbaccess/source/ui/browser/exsrcbrw \ 135 dbaccess/source/ui/browser/formadapter \ 136 dbaccess/source/ui/browser/genericcontroller \ 137 dbaccess/source/ui/browser/sbagrid \ 138 dbaccess/source/ui/browser/sbamultiplex \ 139 dbaccess/source/ui/browser/unodatbr \ 140 dbaccess/source/ui/control/ColumnControlWindow \ 141 dbaccess/source/ui/control/FieldDescControl \ 142 dbaccess/source/ui/control/RelationControl \ 143 dbaccess/source/ui/control/TableGrantCtrl \ 144 dbaccess/source/ui/control/dbtreelistbox \ 145 dbaccess/source/ui/control/opendoccontrols \ 146 dbaccess/source/ui/control/sqledit \ 147 dbaccess/source/ui/control/tabletree \ 148 dbaccess/source/ui/control/toolboxcontroller \ 149 dbaccess/source/ui/dlg/AdabasStat \ 150 dbaccess/source/ui/dlg/CollectionView \ 151 dbaccess/source/ui/dlg/ConnectionHelper \ 152 dbaccess/source/ui/dlg/ConnectionPage \ 153 dbaccess/source/ui/dlg/ConnectionPageSetup \ 154 dbaccess/source/ui/dlg/DBSetupConnectionPages \ 155 dbaccess/source/ui/dlg/DbAdminImpl \ 156 dbaccess/source/ui/dlg/DriverSettings \ 157 dbaccess/source/ui/dlg/RelationDlg \ 158 dbaccess/source/ui/dlg/TablesSingleDlg \ 159 dbaccess/source/ui/dlg/TextConnectionHelper \ 160 dbaccess/source/ui/dlg/UserAdmin \ 161 dbaccess/source/ui/dlg/UserAdminDlg \ 162 dbaccess/source/ui/dlg/admincontrols \ 163 dbaccess/source/ui/dlg/adminpages \ 164 dbaccess/source/ui/dlg/adtabdlg \ 165 dbaccess/source/ui/dlg/advancedsettings \ 166 dbaccess/source/ui/dlg/dbadmin \ 167 dbaccess/source/ui/dlg/dbfindex \ 168 dbaccess/source/ui/dlg/dbwiz \ 169 dbaccess/source/ui/dlg/dbwizsetup \ 170 dbaccess/source/ui/dlg/detailpages \ 171 dbaccess/source/ui/dlg/directsql \ 172 dbaccess/source/ui/dlg/dlgsave \ 173 dbaccess/source/ui/dlg/dsselect \ 174 dbaccess/source/ui/dlg/finteraction \ 175 dbaccess/source/ui/dlg/generalpage \ 176 dbaccess/source/ui/dlg/indexdialog \ 177 dbaccess/source/ui/dlg/indexfieldscontrol \ 178 dbaccess/source/ui/dlg/odbcconfig \ 179 dbaccess/source/ui/dlg/paramdialog \ 180 dbaccess/source/ui/dlg/queryfilter \ 181 dbaccess/source/ui/dlg/queryorder \ 182 dbaccess/source/ui/dlg/sqlmessage \ 183 dbaccess/source/ui/dlg/tablespage \ 184 dbaccess/source/ui/dlg/textconnectionsettings \ 185 dbaccess/source/ui/misc/DExport \ 186 dbaccess/source/ui/misc/HtmlReader \ 187 dbaccess/source/ui/misc/RowSetDrop \ 188 dbaccess/source/ui/misc/RtfReader \ 189 dbaccess/source/ui/misc/TableCopyHelper \ 190 dbaccess/source/ui/misc/TokenWriter \ 191 dbaccess/source/ui/misc/ToolBoxHelper \ 192 dbaccess/source/ui/misc/UITools \ 193 dbaccess/source/ui/misc/WCPage \ 194 dbaccess/source/ui/misc/WColumnSelect \ 195 dbaccess/source/ui/misc/WCopyTable \ 196 dbaccess/source/ui/misc/WExtendPages \ 197 dbaccess/source/ui/misc/WNameMatch \ 198 dbaccess/source/ui/misc/WTypeSelect \ 199 dbaccess/source/ui/misc/asyncmodaldialog \ 200 dbaccess/source/ui/misc/charsets \ 201 dbaccess/source/ui/misc/controllerframe \ 202 dbaccess/source/ui/misc/databaseobjectview \ 203 dbaccess/source/ui/misc/datasourceconnector \ 204 dbaccess/source/ui/misc/dbaundomanager \ 205 dbaccess/source/ui/misc/dbsubcomponentcontroller \ 206 dbaccess/source/ui/misc/defaultobjectnamecheck \ 207 dbaccess/source/ui/misc/dsmeta \ 208 dbaccess/source/ui/misc/imageprovider \ 209 dbaccess/source/ui/misc/indexcollection \ 210 dbaccess/source/ui/misc/linkeddocuments \ 211 dbaccess/source/ui/misc/moduledbu \ 212 dbaccess/source/ui/misc/propertysetitem \ 213 dbaccess/source/ui/misc/propertystorage \ 214 dbaccess/source/ui/misc/singledoccontroller \ 215 dbaccess/source/ui/misc/stringlistitem \ 216 dbaccess/source/ui/misc/uiservices \ 217 dbaccess/source/ui/querydesign/ConnectionLineAccess \ 218 dbaccess/source/ui/querydesign/JAccess \ 219 dbaccess/source/ui/querydesign/JoinController \ 220 dbaccess/source/ui/querydesign/JoinDesignView \ 221 dbaccess/source/ui/querydesign/JoinExchange \ 222 dbaccess/source/ui/querydesign/JoinTableView \ 223 dbaccess/source/ui/querydesign/QTableConnection \ 224 dbaccess/source/ui/querydesign/QTableWindow \ 225 dbaccess/source/ui/querydesign/QueryDesignView \ 226 dbaccess/source/ui/querydesign/QueryMoveTabWinUndoAct \ 227 dbaccess/source/ui/querydesign/QueryTabConnUndoAction \ 228 dbaccess/source/ui/querydesign/QueryTabWinUndoAct \ 229 dbaccess/source/ui/querydesign/QueryTableView \ 230 dbaccess/source/ui/querydesign/QueryTextView \ 231 dbaccess/source/ui/querydesign/QueryViewSwitch \ 232 dbaccess/source/ui/querydesign/SelectionBrowseBox \ 233 dbaccess/source/ui/querydesign/TableConnection \ 234 dbaccess/source/ui/querydesign/TableConnectionData \ 235 dbaccess/source/ui/querydesign/TableFieldDescription \ 236 dbaccess/source/ui/querydesign/TableWindow \ 237 dbaccess/source/ui/querydesign/TableWindowAccess \ 238 dbaccess/source/ui/querydesign/TableWindowData \ 239 dbaccess/source/ui/querydesign/TableWindowListBox \ 240 dbaccess/source/ui/querydesign/TableWindowTitle \ 241 dbaccess/source/ui/querydesign/querycontainerwindow \ 242 dbaccess/source/ui/querydesign/querycontroller \ 243 dbaccess/source/ui/querydesign/querydlg \ 244 dbaccess/source/ui/querydesign/queryview \ 245 dbaccess/source/ui/relationdesign/RTableConnection \ 246 dbaccess/source/ui/relationdesign/RTableConnectionData \ 247 dbaccess/source/ui/relationdesign/RelationController \ 248 dbaccess/source/ui/relationdesign/RelationDesignView \ 249 dbaccess/source/ui/relationdesign/RelationTableView \ 250 dbaccess/source/ui/tabledesign/FieldDescGenWin \ 251 dbaccess/source/ui/tabledesign/FieldDescriptions \ 252 dbaccess/source/ui/tabledesign/TEditControl \ 253 dbaccess/source/ui/tabledesign/TableController \ 254 dbaccess/source/ui/tabledesign/TableDesignControl \ 255 dbaccess/source/ui/tabledesign/TableDesignHelpBar \ 256 dbaccess/source/ui/tabledesign/TableDesignView \ 257 dbaccess/source/ui/tabledesign/TableFieldControl \ 258 dbaccess/source/ui/tabledesign/TableFieldDescWin \ 259 dbaccess/source/ui/tabledesign/TableRow \ 260 dbaccess/source/ui/tabledesign/TableRowExchange \ 261 dbaccess/source/ui/tabledesign/TableUndo \ 262 dbaccess/source/ui/uno/AdvancedSettingsDlg \ 263 dbaccess/source/ui/uno/ColumnControl \ 264 dbaccess/source/ui/uno/ColumnModel \ 265 dbaccess/source/ui/uno/ColumnPeer \ 266 dbaccess/source/ui/uno/DBTypeWizDlg \ 267 dbaccess/source/ui/uno/DBTypeWizDlgSetup \ 268 dbaccess/source/ui/uno/TableFilterDlg \ 269 dbaccess/source/ui/uno/UserSettingsDlg \ 270 dbaccess/source/ui/uno/admindlg \ 271 dbaccess/source/ui/uno/composerdialogs \ 272 dbaccess/source/ui/uno/copytablewizard \ 273 dbaccess/source/ui/uno/dbinteraction \ 274 dbaccess/source/ui/uno/textconnectionsettings_uno \ 275 dbaccess/source/ui/uno/unoDirectSql \ 276 dbaccess/source/ui/uno/unoadmin \ 277 dbaccess/source/ui/uno/unosqlmessage \ 278)) 279 280# the following source file can't be compiled with optimization by some compilers (crash or endless loop): 281# Solaris Sparc with Sun compiler, gcc on MacOSX and Linux PPC 282# the latter is currently not supported by gbuild and needs a fix here later 283ifneq ($(COM),$(filter-out GCC,$(COM))) 284$(eval $(call gb_LinkTarget_set_cxx_optimization, \ 285 dbaccess/source/ui/uno/copytablewizard, $(gb_COMPILERNOOPTFLAGS) \ 286)) 287endif 288 289# g++49 -Os sometimes leaves inline class methods undefined, 290# See: <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65009> 291ifeq ($(COM)$(shell expr $(CCNUMVER) '>=' 000400090000 '&' $(CCNUMVER) '<' 000500000000),GCC1) 292$(eval $(call gb_LinkTarget_set_cxx_optimization, \ 293 dbaccess/source/ui/uno/ColumnControl, \ 294 $(gb_COMPILEROPTFLAGS) -fno-devirtualize -fno-devirtualize-speculatively \ 295)) 296endif 297 298$(eval $(call gb_Library_add_noexception_objects,dbui, \ 299 dbaccess/source/shared/dbu_reghelper \ 300 dbaccess/source/shared/dbustrings \ 301 dbaccess/source/ui/app/AppIconControl \ 302 dbaccess/source/ui/browser/AsyncronousLink \ 303 dbaccess/source/ui/control/ScrollHelper \ 304 dbaccess/source/ui/control/SqlNameEdit \ 305 dbaccess/source/ui/control/VertSplitView \ 306 dbaccess/source/ui/control/charsetlistbox \ 307 dbaccess/source/ui/control/curledit \ 308 dbaccess/source/ui/control/listviewitems \ 309 dbaccess/source/ui/control/marktree \ 310 dbaccess/source/ui/control/undosqledit \ 311 dbaccess/source/ui/dlg/dlgattr \ 312 dbaccess/source/ui/dlg/dlgsize \ 313 dbaccess/source/ui/dlg/optionalboolitem \ 314 dbaccess/source/ui/querydesign/ConnectionLine \ 315 dbaccess/source/ui/querydesign/ConnectionLineData \ 316 dbaccess/source/ui/querydesign/QTableConnectionData \ 317 dbaccess/source/ui/querydesign/QTableWindowData \ 318 dbaccess/source/ui/querydesign/TableFieldInfo \ 319)) 320 321# vim: set noet sw=4 ts=4: 322