Updated core
[LibreOffice.git] / connectivity / Library_postgresql-sdbc-impl.mk
blob6cc9f39d9498a8415af8b3d2101eec4768b5a02a
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval $(call gb_Library_Library,postgresql-sdbc-impl))
12 $(eval $(call gb_Library_add_defs,postgresql-sdbc-impl,\
13 -DPQ_SDBC_MAJOR=0 \
14 -DPQ_SDBC_MINOR=8 \
15 -DPQ_SDBC_MICRO=2 \
18 $(eval $(call gb_Library_use_sdk_api,postgresql-sdbc-impl))
20 $(eval $(call gb_Library_use_libraries,postgresql-sdbc-impl,\
21 cppu \
22 cppuhelper \
23 sal \
24 salhelper \
25 $(gb_UWINAPI) \
28 ifeq ($(OS),WNT)
29 $(eval $(call gb_Library_use_system_win32_libs,postgresql-sdbc-impl,\
30 shell32 \
31 wldap32 \
34 ifeq ($(COM),MSC)
35 $(eval $(call gb_Library_add_ldflags,postgresql-sdbc-impl,\
36 /NODEFAULTLIB:libcmt.lib \
38 endif
40 endif
42 $(eval $(call gb_Library_use_externals,postgresql-sdbc-impl,\
43 boost_headers \
44 postgresql \
45 $(if $(filter-out MSC,$(COM)), \
46 openssl \
47 openldap \
48 nss3 \
49 plc4 \
50 ssl3 \
51 ) \
54 ifneq ($(SYSTEM_POSTGRESQL),YES)
55 ifneq ($(OS)$(COM),WNTMSC)
57 $(eval $(call gb_Library_add_libs,postgresql-sdbc-impl,\
58 $(if $(filter YES,$(WITH_GSSAPI)),$(GSSAPI_LIBS)) \
59 $(if $(filter YES,$(WITH_KRB5)),$(KRB5_LIBS)) \
60 $(if $(filter-out MACOSX,$(OS)),-ldl) \
61 $(if $(filter-out MACOSX,$(OS)),-lpthread) \
64 endif
65 endif
67 $(eval $(call gb_Library_set_componentfile,postgresql-sdbc-impl,connectivity/source/drivers/postgresql/postgresql-sdbc-impl))
69 $(eval $(call gb_Library_add_exception_objects,postgresql-sdbc-impl,\
70 connectivity/source/drivers/postgresql/pq_array \
71 connectivity/source/drivers/postgresql/pq_baseresultset \
72 connectivity/source/drivers/postgresql/pq_connection \
73 connectivity/source/drivers/postgresql/pq_databasemetadata \
74 connectivity/source/drivers/postgresql/pq_fakedupdateableresultset \
75 connectivity/source/drivers/postgresql/pq_preparedstatement \
76 connectivity/source/drivers/postgresql/pq_resultset \
77 connectivity/source/drivers/postgresql/pq_resultsetmetadata \
78 connectivity/source/drivers/postgresql/pq_sequenceresultset \
79 connectivity/source/drivers/postgresql/pq_sequenceresultsetmetadata \
80 connectivity/source/drivers/postgresql/pq_statement \
81 connectivity/source/drivers/postgresql/pq_statics \
82 connectivity/source/drivers/postgresql/pq_tools \
83 connectivity/source/drivers/postgresql/pq_updateableresultset \
84 connectivity/source/drivers/postgresql/pq_xbase \
85 connectivity/source/drivers/postgresql/pq_xcolumn \
86 connectivity/source/drivers/postgresql/pq_xcolumns \
87 connectivity/source/drivers/postgresql/pq_xcontainer \
88 connectivity/source/drivers/postgresql/pq_xindex \
89 connectivity/source/drivers/postgresql/pq_xindexcolumn \
90 connectivity/source/drivers/postgresql/pq_xindexcolumns \
91 connectivity/source/drivers/postgresql/pq_xindexes \
92 connectivity/source/drivers/postgresql/pq_xkey \
93 connectivity/source/drivers/postgresql/pq_xkeycolumn \
94 connectivity/source/drivers/postgresql/pq_xkeycolumns \
95 connectivity/source/drivers/postgresql/pq_xkeys \
96 connectivity/source/drivers/postgresql/pq_xtable \
97 connectivity/source/drivers/postgresql/pq_xtables \
98 connectivity/source/drivers/postgresql/pq_xuser \
99 connectivity/source/drivers/postgresql/pq_xusers \
100 connectivity/source/drivers/postgresql/pq_xview \
101 connectivity/source/drivers/postgresql/pq_xviews \
104 # vim: set noet sw=4 ts=4: