fdo#61256 - the Get.*Export methods also create and register styles
[LibreOffice.git] / connectivity / Library_postgresql-sdbc-impl.mk
blob8fbb372c2a7e904ac53adca236b4b3724b283ba0
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 # Major Contributor(s):
15 # Copyright (C) 2012 Red Hat, Inc., David Tardon <dtardon@redhat.com>
16 # (initial developer)
18 # All Rights Reserved.
20 # For minor contributions see the git repository.
22 # Alternatively, the contents of this file may be used under the terms of
23 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
24 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
25 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
26 # instead of those above.
28 $(eval $(call gb_Library_Library,postgresql-sdbc-impl))
30 $(eval $(call gb_Library_add_defs,postgresql-sdbc-impl,\
31 -DPQ_SDBC_MAJOR=0 \
32 -DPQ_SDBC_MINOR=8 \
33 -DPQ_SDBC_MICRO=2 \
36 $(eval $(call gb_Library_use_sdk_api,postgresql-sdbc-impl))
38 $(eval $(call gb_Library_use_libraries,postgresql-sdbc-impl,\
39 cppu \
40 cppuhelper \
41 sal \
42 salhelper \
43 $(gb_UWINAPI) \
46 ifeq ($(OS),WNT)
47 $(eval $(call gb_Library_use_system_win32_libs,postgresql-sdbc-impl,\
48 shell32 \
49 wldap32 \
52 ifeq ($(COM),MSC)
53 $(eval $(call gb_Library_add_ldflags,postgresql-sdbc-impl,\
54 /NODEFAULTLIB:libcmt.lib \
56 endif
58 endif
60 $(eval $(call gb_Library_use_externals,postgresql-sdbc-impl,\
61 postgresql \
64 ifneq ($(SYSTEM_POSTGRESQL),YES)
65 ifneq ($(GUI)$(COM),WNTMSC)
67 -include $(OUTDIR)/inc/postgresql/libpq-flags.mk
69 $(eval $(call gb_Library_add_libs,postgresql-sdbc-impl,\
70 $(if $(filter-out MACOSX,$(OS)),-Wl$(COMMA)--as-needed) \
71 $(LIBPQ_DEP_LIBS) \
72 $(if $(filter-out MACOSX,$(OS)),-ldl) \
73 $(if $(filter-out MACOSX,$(OS)),-Wl$(COMMA)--no-as-needed) \
76 endif
77 endif
79 $(eval $(call gb_Library_set_componentfile,postgresql-sdbc-impl,connectivity/source/drivers/postgresql/postgresql-sdbc-impl))
81 $(eval $(call gb_Library_add_exception_objects,postgresql-sdbc-impl,\
82 connectivity/source/drivers/postgresql/pq_array \
83 connectivity/source/drivers/postgresql/pq_baseresultset \
84 connectivity/source/drivers/postgresql/pq_connection \
85 connectivity/source/drivers/postgresql/pq_databasemetadata \
86 connectivity/source/drivers/postgresql/pq_fakedupdateableresultset \
87 connectivity/source/drivers/postgresql/pq_preparedstatement \
88 connectivity/source/drivers/postgresql/pq_resultset \
89 connectivity/source/drivers/postgresql/pq_resultsetmetadata \
90 connectivity/source/drivers/postgresql/pq_sequenceresultset \
91 connectivity/source/drivers/postgresql/pq_sequenceresultsetmetadata \
92 connectivity/source/drivers/postgresql/pq_statement \
93 connectivity/source/drivers/postgresql/pq_statics \
94 connectivity/source/drivers/postgresql/pq_tools \
95 connectivity/source/drivers/postgresql/pq_updateableresultset \
96 connectivity/source/drivers/postgresql/pq_xbase \
97 connectivity/source/drivers/postgresql/pq_xcolumn \
98 connectivity/source/drivers/postgresql/pq_xcolumns \
99 connectivity/source/drivers/postgresql/pq_xcontainer \
100 connectivity/source/drivers/postgresql/pq_xindex \
101 connectivity/source/drivers/postgresql/pq_xindexcolumn \
102 connectivity/source/drivers/postgresql/pq_xindexcolumns \
103 connectivity/source/drivers/postgresql/pq_xindexes \
104 connectivity/source/drivers/postgresql/pq_xkey \
105 connectivity/source/drivers/postgresql/pq_xkeycolumn \
106 connectivity/source/drivers/postgresql/pq_xkeycolumns \
107 connectivity/source/drivers/postgresql/pq_xkeys \
108 connectivity/source/drivers/postgresql/pq_xtable \
109 connectivity/source/drivers/postgresql/pq_xtables \
110 connectivity/source/drivers/postgresql/pq_xuser \
111 connectivity/source/drivers/postgresql/pq_xusers \
112 connectivity/source/drivers/postgresql/pq_xview \
113 connectivity/source/drivers/postgresql/pq_xviews \
116 # vim: set noet sw=4 ts=4: