dont attach, start own instance as otherwise it might be blocked via/proc/sys/kernel...
[LibreOffice.git] / dbaccess / Library_dbu.mk
blob6c645c9c2f575141d8e72760ee71f1fa5261edb3
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2 # Version: MPL 1.1 / GPLv3+ / LGPLv3+
4 # The contents of this file are subject to the Mozilla Public License Version
5 # 1.1 (the "License"); you may not use this file except in compliance with
6 # the License or as specified alternatively below. You may obtain a copy of
7 # the License at http://www.mozilla.org/MPL/
9 # Software distributed under the License is distributed on an "AS IS" basis,
10 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 # for the specific language governing rights and limitations under the
12 # License.
14 # The Initial Developer of the Original Code is
15 # David Tardon, Red Hat Inc. <dtardon@redhat.com>
16 # Portions created by the Initial Developer are Copyright (C) 2010 the
17 # Initial Developer. All Rights Reserved.
19 # Major Contributor(s):
21 # For minor contributions see the git repository.
23 # Alternatively, the contents of this file may be used under the terms of
24 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
25 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
26 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
27 # instead of those above.
29 $(eval $(call gb_Library_Library,dbu))
31 $(eval $(call gb_Library_add_precompiled_header,dbu,$(SRCDIR)/dbaccess/inc/pch/precompiled_dbaccess))
33 $(eval $(call gb_Library_set_include,dbu,\
34 $$(INCLUDE) \
35 -I$(realpath $(SRCDIR)/dbaccess/inc) \
36 -I$(realpath $(SRCDIR)/dbaccess/inc/pch) \
37 -I$(realpath $(SRCDIR)/dbaccess/source/inc) \
38 -I$(realpath $(SRCDIR)/dbaccess/source/ui/inc) \
39 -I$(WORKDIR)/inc/dbaccess \
40 -I$(OUTDIR)/inc \
43 $(eval $(call gb_Library_add_api,dbu,\
44 offapi \
45 udkapi \
48 $(eval $(call gb_Library_add_defs,dbu,\
49 -DDBACCESS_DLLIMPLEMENTATION \
50 $(if $(filter YES,$(SYSTEM_ODBC_HEADERS)),-DSYSTEM_ODBC_HEADERS) \
53 ifeq ($(GUI)$(COM),WNTGCC) # for adoint.h
54 $(eval $(call gb_Library_add_cxxflags,dbu,\
55 -fpermissive \
57 endif
59 $(eval $(call gb_Library_add_linked_libs,dbu,\
60 comphelper \
61 cppu \
62 cppuhelper \
63 dba \
64 dbtools \
65 editeng \
66 fwe \
67 sal \
68 salhelper \
69 sfx \
70 sot \
71 svl \
72 svt \
73 svxcore \
74 svx \
75 tk \
76 tl \
77 ucbhelper \
78 utl \
79 vcl \
80 $(gb_STDLIBS) \
83 ifeq ($(GUI),WNT)
84 $(eval $(call gb_Library_add_linked_libs,dbu,\
85 ole32 \
86 oleaut32 \
87 uuid \
89 endif
91 $(eval $(call gb_Library_set_componentfile,dbu,dbaccess/util/dbu))
93 $(eval $(call gb_Library_add_exception_objects,dbu,\
94 dbaccess/source/shared/dbu_reghelper \
95 dbaccess/source/ui/app/AppController \
96 dbaccess/source/ui/app/AppControllerDnD \
97 dbaccess/source/ui/app/AppControllerGen \
98 dbaccess/source/ui/app/AppDetailPageHelper \
99 dbaccess/source/ui/app/AppDetailView \
100 dbaccess/source/ui/app/AppIconControl \
101 dbaccess/source/ui/app/AppSwapWindow \
102 dbaccess/source/ui/app/AppTitleWindow \
103 dbaccess/source/ui/app/AppView \
104 dbaccess/source/ui/app/subcomponentmanager \
105 dbaccess/source/ui/browser/AsyncronousLink \
106 dbaccess/source/ui/browser/brwctrlr \
107 dbaccess/source/ui/browser/brwview \
108 dbaccess/source/ui/browser/dataview \
109 dbaccess/source/ui/browser/dbexchange \
110 dbaccess/source/ui/browser/dbloader \
111 dbaccess/source/ui/browser/dbtreemodel \
112 dbaccess/source/ui/browser/dbtreeview \
113 dbaccess/source/ui/browser/dsbrowserDnD \
114 dbaccess/source/ui/browser/dsEntriesNoExp \
115 dbaccess/source/ui/browser/exsrcbrw \
116 dbaccess/source/ui/browser/formadapter \
117 dbaccess/source/ui/browser/genericcontroller \
118 dbaccess/source/ui/browser/sbagrid \
119 dbaccess/source/ui/browser/sbamultiplex \
120 dbaccess/source/ui/browser/unodatbr \
121 dbaccess/source/ui/control/charsetlistbox \
122 dbaccess/source/ui/control/ColumnControlWindow \
123 dbaccess/source/ui/control/curledit \
124 dbaccess/source/ui/control/dbtreelistbox \
125 dbaccess/source/ui/control/FieldDescControl \
126 dbaccess/source/ui/control/listviewitems \
127 dbaccess/source/ui/control/marktree \
128 dbaccess/source/ui/control/opendoccontrols \
129 dbaccess/source/ui/control/RelationControl \
130 dbaccess/source/ui/control/sqledit \
131 dbaccess/source/ui/control/SqlNameEdit \
132 dbaccess/source/ui/control/statusbarontroller \
133 dbaccess/source/ui/control/TableGrantCtrl \
134 dbaccess/source/ui/control/tabletree \
135 dbaccess/source/ui/control/toolboxcontroller \
136 dbaccess/source/ui/control/undosqledit \
137 dbaccess/source/ui/control/VertSplitView \
138 dbaccess/source/ui/dlg/AdabasStat \
139 dbaccess/source/ui/dlg/admincontrols \
140 dbaccess/source/ui/dlg/adminpages \
141 dbaccess/source/ui/dlg/adtabdlg \
142 dbaccess/source/ui/dlg/advancedsettings \
143 dbaccess/source/ui/dlg/CollectionView \
144 dbaccess/source/ui/dlg/ConnectionHelper \
145 dbaccess/source/ui/dlg/ConnectionPage \
146 dbaccess/source/ui/dlg/ConnectionPageSetup \
147 dbaccess/source/ui/dlg/dbadmin \
148 dbaccess/source/ui/dlg/DbAdminImpl \
149 dbaccess/source/ui/dlg/dbfindex \
150 dbaccess/source/ui/dlg/DBSetupConnectionPages \
151 dbaccess/source/ui/dlg/dbwiz \
152 dbaccess/source/ui/dlg/dbwizsetup \
153 dbaccess/source/ui/dlg/detailpages \
154 dbaccess/source/ui/dlg/directsql \
155 dbaccess/source/ui/dlg/dlgattr \
156 dbaccess/source/ui/dlg/dlgsave \
157 dbaccess/source/ui/dlg/dlgsize \
158 dbaccess/source/ui/dlg/DriverSettings \
159 dbaccess/source/ui/dlg/dsselect \
160 dbaccess/source/ui/dlg/finteraction \
161 dbaccess/source/ui/dlg/generalpage \
162 dbaccess/source/ui/dlg/indexdialog \
163 dbaccess/source/ui/dlg/indexfieldscontrol \
164 dbaccess/source/ui/dlg/odbcconfig \
165 dbaccess/source/ui/dlg/paramdialog \
166 dbaccess/source/ui/dlg/queryfilter \
167 dbaccess/source/ui/dlg/queryorder \
168 dbaccess/source/ui/dlg/RelationDlg \
169 dbaccess/source/ui/dlg/sqlmessage \
170 dbaccess/source/ui/dlg/tablespage \
171 dbaccess/source/ui/dlg/TablesSingleDlg \
172 dbaccess/source/ui/dlg/TextConnectionHelper \
173 dbaccess/source/ui/dlg/textconnectionsettings \
174 dbaccess/source/ui/dlg/UserAdmin \
175 dbaccess/source/ui/dlg/UserAdminDlg \
176 dbaccess/source/ui/misc/asyncmodaldialog \
177 dbaccess/source/ui/misc/charsets \
178 dbaccess/source/ui/misc/controllerframe \
179 dbaccess/source/ui/misc/databaseobjectview \
180 dbaccess/source/ui/misc/datasourceconnector \
181 dbaccess/source/ui/misc/dbaundomanager \
182 dbaccess/source/ui/misc/dbsubcomponentcontroller \
183 dbaccess/source/ui/misc/defaultobjectnamecheck \
184 dbaccess/source/ui/misc/DExport \
185 dbaccess/source/ui/misc/dsmeta \
186 dbaccess/source/ui/misc/HtmlReader \
187 dbaccess/source/ui/misc/imageprovider \
188 dbaccess/source/ui/misc/indexcollection \
189 dbaccess/source/ui/misc/linkeddocuments \
190 dbaccess/source/ui/misc/moduledbu \
191 dbaccess/source/ui/misc/propertysetitem \
192 dbaccess/source/ui/misc/propertystorage \
193 dbaccess/source/ui/misc/RowSetDrop \
194 dbaccess/source/ui/misc/RtfReader \
195 dbaccess/source/ui/misc/singledoccontroller \
196 dbaccess/source/ui/misc/stringlistitem \
197 dbaccess/source/ui/misc/TableCopyHelper \
198 dbaccess/source/ui/misc/TokenWriter \
199 dbaccess/source/ui/misc/ToolBoxHelper \
200 dbaccess/source/ui/misc/uiservices \
201 dbaccess/source/ui/misc/UITools \
202 dbaccess/source/ui/misc/WColumnSelect \
203 dbaccess/source/ui/misc/WCopyTable \
204 dbaccess/source/ui/misc/WCPage \
205 dbaccess/source/ui/misc/WExtendPages \
206 dbaccess/source/ui/misc/WNameMatch \
207 dbaccess/source/ui/misc/WTypeSelect \
208 dbaccess/source/ui/querydesign/ConnectionLine \
209 dbaccess/source/ui/querydesign/ConnectionLineAccess \
210 dbaccess/source/ui/querydesign/ConnectionLineData \
211 dbaccess/source/ui/querydesign/JAccess \
212 dbaccess/source/ui/querydesign/JoinController \
213 dbaccess/source/ui/querydesign/JoinDesignView \
214 dbaccess/source/ui/querydesign/JoinExchange \
215 dbaccess/source/ui/querydesign/JoinTableView \
216 dbaccess/source/ui/querydesign/QTableConnection \
217 dbaccess/source/ui/querydesign/QTableConnectionData \
218 dbaccess/source/ui/querydesign/QTableWindow \
219 dbaccess/source/ui/querydesign/QTableWindowData \
220 dbaccess/source/ui/querydesign/querycontainerwindow \
221 dbaccess/source/ui/querydesign/querycontroller \
222 dbaccess/source/ui/querydesign/QueryDesignView \
223 dbaccess/source/ui/querydesign/querydlg \
224 dbaccess/source/ui/querydesign/QueryMoveTabWinUndoAct \
225 dbaccess/source/ui/querydesign/QueryTabConnUndoAction \
226 dbaccess/source/ui/querydesign/QueryTableView \
227 dbaccess/source/ui/querydesign/QueryTabWinUndoAct \
228 dbaccess/source/ui/querydesign/QueryTextView \
229 dbaccess/source/ui/querydesign/queryview \
230 dbaccess/source/ui/querydesign/QueryViewSwitch \
231 dbaccess/source/ui/querydesign/SelectionBrowseBox \
232 dbaccess/source/ui/querydesign/TableConnection \
233 dbaccess/source/ui/querydesign/TableConnectionData \
234 dbaccess/source/ui/querydesign/TableFieldDescription \
235 dbaccess/source/ui/querydesign/TableWindow \
236 dbaccess/source/ui/querydesign/TableWindowAccess \
237 dbaccess/source/ui/querydesign/TableWindowData \
238 dbaccess/source/ui/querydesign/TableWindowListBox \
239 dbaccess/source/ui/querydesign/TableWindowTitle \
240 dbaccess/source/ui/relationdesign/RelationController \
241 dbaccess/source/ui/relationdesign/RelationDesignView \
242 dbaccess/source/ui/relationdesign/RelationTableView \
243 dbaccess/source/ui/relationdesign/RTableConnection \
244 dbaccess/source/ui/relationdesign/RTableConnectionData \
245 dbaccess/source/ui/tabledesign/FieldDescGenWin \
246 dbaccess/source/ui/tabledesign/FieldDescriptions \
247 dbaccess/source/ui/tabledesign/TableController \
248 dbaccess/source/ui/tabledesign/TableDesignControl \
249 dbaccess/source/ui/tabledesign/TableDesignHelpBar \
250 dbaccess/source/ui/tabledesign/TableDesignView \
251 dbaccess/source/ui/tabledesign/TableFieldControl \
252 dbaccess/source/ui/tabledesign/TableFieldDescWin \
253 dbaccess/source/ui/tabledesign/TableRow \
254 dbaccess/source/ui/tabledesign/TableRowExchange \
255 dbaccess/source/ui/tabledesign/TableUndo \
256 dbaccess/source/ui/tabledesign/TEditControl \
257 dbaccess/source/ui/uno/admindlg \
258 dbaccess/source/ui/uno/AdvancedSettingsDlg \
259 dbaccess/source/ui/uno/ColumnControl \
260 dbaccess/source/ui/uno/ColumnModel \
261 dbaccess/source/ui/uno/ColumnPeer \
262 dbaccess/source/ui/uno/composerdialogs \
263 dbaccess/source/ui/uno/dbinteraction \
264 dbaccess/source/ui/uno/DBTypeWizDlg \
265 dbaccess/source/ui/uno/DBTypeWizDlgSetup \
266 dbaccess/source/ui/uno/TableFilterDlg \
267 dbaccess/source/ui/uno/textconnectionsettings_uno \
268 dbaccess/source/ui/uno/unoadmin \
269 dbaccess/source/ui/uno/unoDirectSql \
270 dbaccess/source/ui/uno/unosqlmessage \
271 dbaccess/source/ui/uno/UserSettingsDlg \
274 $(eval $(call gb_Library_add_noexception_objects,dbu,\
275 dbaccess/source/shared/dbustrings \
276 dbaccess/source/ui/control/ScrollHelper \
277 dbaccess/source/ui/dlg/optionalboolitem \
278 dbaccess/source/ui/querydesign/TableFieldInfo \
281 ifeq ($(GUI),WNT)
282 $(eval $(call gb_Library_add_exception_objects,dbu,\
283 dbaccess/source/ui/dlg/adodatalinks \
285 endif
287 # workaround for issue http://qa.openoffice.org/issues/show_bug.cgi?id=102305 Linux specific
288 ifeq ($(COM),GCC)
289 $(eval $(call gb_Library_add_cxxobjects,dbu,\
290 dbaccess/source/ui/uno/copytablewizard \
291 , $(gb_LinkTarget_EXCEPTIONFLAGS) $(gb_COMPILERNOOPTFLAGS) \
293 else
294 $(eval $(call gb_Library_add_exception_objects,dbu,\
295 dbaccess/source/ui/uno/copytablewizard \
297 endif
299 $(foreach object,\
300 dbaccess/source/ui/dlg/ConnectionHelper \
301 dbaccess/source/ui/dlg/ConnectionPage \
302 dbaccess/source/ui/dlg/ConnectionPageSetup \
303 dbaccess/source/ui/dlg/DBSetupConnectionPages \
304 dbaccess/source/ui/dlg/detailpages \
305 dbaccess/source/ui/dlg/tablespage \
306 dbaccess/source/ui/dlg/TextConnectionHelper \
307 ,$(eval $(call gb_CxxObject_get_target,$(object)) : $(WORKDIR)/inc/dbaccess/AutoControls.hrc))
309 # vim: set noet sw=4 ts=4: