Don't link against private CoreUI framework when sandboxed
[LibreOffice.git] / connectivity / Library_postgresql-sdbc-impl.mk
blob497f5b742ef4b1ff2f5758db056640c27b6ca4ae
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_set_precompiled_header,postgresql-sdbc-impl,connectivity/inc/pch/precompiled_postgresql-sdbc-impl))
20 $(eval $(call gb_Library_use_sdk_api,postgresql-sdbc-impl))
22 $(eval $(call gb_Library_use_libraries,postgresql-sdbc-impl,\
23 comphelper \
24 cppu \
25 cppuhelper \
26 dbtools \
27 sal \
28 salhelper \
31 ifeq ($(OS),WNT)
32 $(eval $(call gb_Library_use_system_win32_libs,postgresql-sdbc-impl,\
33 shell32 \
34 wldap32 \
37 ifeq ($(COM),MSC)
38 $(eval $(call gb_Library_add_ldflags,postgresql-sdbc-impl,\
39 /NODEFAULTLIB:libcmt.lib \
41 endif
43 endif
45 $(eval $(call gb_Library_use_externals,postgresql-sdbc-impl,\
46 boost_headers \
47 postgresql \
48 $(if $(filter-out MSC,$(COM)), \
49 $(if $(ENABLE_OPENSSL),openssl) \
50 $(if $(ENABLE_LDAP), \
51 openldap \
52 nss3 \
53 plc4 \
54 ssl3 \
55 ) \
56 ) \
59 ifeq ($(SYSTEM_POSTGRESQL),)
60 ifneq ($(OS),WNT)
62 $(eval $(call gb_Library_add_libs,postgresql-sdbc-impl,\
63 $(if $(WITH_GSSAPI),$(GSSAPI_LIBS)) \
64 $(if $(WITH_KRB5),$(KRB5_LIBS)) \
65 $(if $(filter-out MACOSX,$(OS)),-ldl) \
68 endif
69 endif
71 $(eval $(call gb_Library_set_componentfile,postgresql-sdbc-impl,connectivity/source/drivers/postgresql/postgresql-sdbc-impl,postgresql-sdbc))
73 $(eval $(call gb_Library_add_exception_objects,postgresql-sdbc-impl,\
74 connectivity/source/drivers/postgresql/pq_array \
75 connectivity/source/drivers/postgresql/pq_baseresultset \
76 connectivity/source/drivers/postgresql/pq_connection \
77 connectivity/source/drivers/postgresql/pq_databasemetadata \
78 connectivity/source/drivers/postgresql/pq_fakedupdateableresultset \
79 connectivity/source/drivers/postgresql/pq_preparedstatement \
80 connectivity/source/drivers/postgresql/pq_resultset \
81 connectivity/source/drivers/postgresql/pq_resultsetmetadata \
82 connectivity/source/drivers/postgresql/pq_sequenceresultset \
83 connectivity/source/drivers/postgresql/pq_sequenceresultsetmetadata \
84 connectivity/source/drivers/postgresql/pq_statement \
85 connectivity/source/drivers/postgresql/pq_statics \
86 connectivity/source/drivers/postgresql/pq_tools \
87 connectivity/source/drivers/postgresql/pq_updateableresultset \
88 connectivity/source/drivers/postgresql/pq_xbase \
89 connectivity/source/drivers/postgresql/pq_xcolumn \
90 connectivity/source/drivers/postgresql/pq_xcolumns \
91 connectivity/source/drivers/postgresql/pq_xcontainer \
92 connectivity/source/drivers/postgresql/pq_xindex \
93 connectivity/source/drivers/postgresql/pq_xindexcolumn \
94 connectivity/source/drivers/postgresql/pq_xindexcolumns \
95 connectivity/source/drivers/postgresql/pq_xindexes \
96 connectivity/source/drivers/postgresql/pq_xkey \
97 connectivity/source/drivers/postgresql/pq_xkeycolumn \
98 connectivity/source/drivers/postgresql/pq_xkeycolumns \
99 connectivity/source/drivers/postgresql/pq_xkeys \
100 connectivity/source/drivers/postgresql/pq_xtable \
101 connectivity/source/drivers/postgresql/pq_xtables \
102 connectivity/source/drivers/postgresql/pq_xuser \
103 connectivity/source/drivers/postgresql/pq_xusers \
104 connectivity/source/drivers/postgresql/pq_xview \
105 connectivity/source/drivers/postgresql/pq_xviews \
108 # vim: set noet sw=4 ts=4: