Bump for 3.6-28
[LibreOffice.git] / connectivity / Library_postgresql-sdbc-impl.mk
blobda6fe98d480c01921f03119957bc36eb348187de
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_api,postgresql-sdbc-impl,\
37 offapi \
38 udkapi \
41 $(eval $(call gb_Library_use_libraries,postgresql-sdbc-impl,\
42 cppu \
43 cppuhelper \
44 sal \
45 salhelper \
46 $(gb_STDLIBS) \
49 ifeq ($(OS),WNT)
50 $(eval $(call gb_Library_use_libraries,postgresql-sdbc-impl,\
51 shell32 \
54 ifeq ($(COM),MSC)
55 $(eval $(call gb_Library_add_ldflags,postgresql-sdbc-impl,\
56 /NODEFAULTLIB:libcmt.lib \
58 endif
60 endif
62 $(eval $(call gb_Library_use_externals,postgresql-sdbc-impl,\
63 postgresql \
66 ifneq ($(SYSTEM_POSTGRESQL),YES)
67 ifneq ($(GUI)$(COM),WNTMSC)
69 include $(OUTDIR)/inc/postgresql/libpq-flags.mk
71 $(eval $(call gb_Library_add_libs,postgresql-sdbc-impl,\
72 $(if $(filter-out MACOSX,$(OS)),-Wl$(COMMA)--as-needed) \
73 $(LIBPQ_DEP_LIBS) \
74 $(if $(filter-out MACOSX,$(OS)),-ldl) \
75 $(if $(filter-out MACOSX,$(OS)),-Wl$(COMMA)--no-as-needed) \
78 endif
79 endif
81 $(eval $(call gb_Library_set_componentfile,postgresql-sdbc-impl,connectivity/source/drivers/postgresql/postgresql-sdbc-impl))
83 $(eval $(call gb_Library_add_exception_objects,postgresql-sdbc-impl,\
84 connectivity/source/drivers/postgresql/pq_array \
85 connectivity/source/drivers/postgresql/pq_baseresultset \
86 connectivity/source/drivers/postgresql/pq_connection \
87 connectivity/source/drivers/postgresql/pq_databasemetadata \
88 connectivity/source/drivers/postgresql/pq_fakedupdateableresultset \
89 connectivity/source/drivers/postgresql/pq_preparedstatement \
90 connectivity/source/drivers/postgresql/pq_resultset \
91 connectivity/source/drivers/postgresql/pq_resultsetmetadata \
92 connectivity/source/drivers/postgresql/pq_sequenceresultset \
93 connectivity/source/drivers/postgresql/pq_sequenceresultsetmetadata \
94 connectivity/source/drivers/postgresql/pq_statement \
95 connectivity/source/drivers/postgresql/pq_statics \
96 connectivity/source/drivers/postgresql/pq_tools \
97 connectivity/source/drivers/postgresql/pq_updateableresultset \
98 connectivity/source/drivers/postgresql/pq_xbase \
99 connectivity/source/drivers/postgresql/pq_xcolumn \
100 connectivity/source/drivers/postgresql/pq_xcolumns \
101 connectivity/source/drivers/postgresql/pq_xcontainer \
102 connectivity/source/drivers/postgresql/pq_xindex \
103 connectivity/source/drivers/postgresql/pq_xindexcolumn \
104 connectivity/source/drivers/postgresql/pq_xindexcolumns \
105 connectivity/source/drivers/postgresql/pq_xindexes \
106 connectivity/source/drivers/postgresql/pq_xkey \
107 connectivity/source/drivers/postgresql/pq_xkeycolumn \
108 connectivity/source/drivers/postgresql/pq_xkeycolumns \
109 connectivity/source/drivers/postgresql/pq_xkeys \
110 connectivity/source/drivers/postgresql/pq_xtable \
111 connectivity/source/drivers/postgresql/pq_xtables \
112 connectivity/source/drivers/postgresql/pq_xuser \
113 connectivity/source/drivers/postgresql/pq_xusers \
114 connectivity/source/drivers/postgresql/pq_xview \
115 connectivity/source/drivers/postgresql/pq_xviews \
118 # vim: set noet sw=4 ts=4: