Revert "reduce symbol visibility in sw"
[LibreOffice.git] / connectivity / Library_mysqlc.mk
blob99410d2c0ddb36b252b1d8101303db85503e4809
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,mysqlc))
12 $(eval $(call gb_Library_use_externals,mysqlc,\
13 boost_headers \
14 mariadb-connector-c \
15 openssl \
18 $(eval $(call gb_Library_set_include,mysqlc,\
19 -I$(SRCDIR)/connectivity/inc \
20 -I$(SRCDIR)/connectivity/source/inc \
21 $$(INCLUDE) \
22 -I$(WORKDIR)/YaccTarget/connectivity/source/parse \
25 $(eval $(call gb_Library_add_libs,mysqlc,\
26 $(if $(WITH_GSSAPI),$(GSSAPI_LIBS)) \
27 $(if $(filter-out WNT,$(OS)),$(if $(filter HAIKU MACOSX SOLARIS,$(OS)),\
28 -lz -lm,-rdynamic -lz -lcrypt -lm)) \
29 $(if $(filter LINUX,$(OS)),-ldl,) \
32 $(eval $(call gb_Library_use_sdk_api,mysqlc))
34 ifeq ($(OS),WNT)
35 $(eval $(call gb_Library_use_system_win32_libs,mysqlc,\
36 Secur32 \
38 endif
40 $(eval $(call gb_Library_use_libraries,mysqlc,\
41 comphelper \
42 cppu \
43 cppuhelper \
44 dbtools \
45 sal \
46 salhelper \
49 $(eval $(call gb_Library_add_defs,mysqlc,\
50 -DCPPDBC_EXPORTS \
51 -DCPPCONN_LIB_BUILD \
52 -DMARIADBC_VERSION_MAJOR=$(MARIADBC_MAJOR) \
53 -DMARIADBC_VERSION_MINOR=$(MARIADBC_MINOR) \
54 -DMARIADBC_VERSION_MICRO=$(MARIADBC_MICRO) \
55 $(if $(BUNDLE_MARIADB_CONNECTOR_C),-DBUNDLE_MARIADB=\"$(LIBMARIADB)\") \
58 $(eval $(call gb_Library_add_exception_objects,mysqlc,\
59 connectivity/source/drivers/mysqlc/mysqlc_catalog \
60 connectivity/source/drivers/mysqlc/mysqlc_column \
61 connectivity/source/drivers/mysqlc/mysqlc_columns \
62 connectivity/source/drivers/mysqlc/mysqlc_connection \
63 connectivity/source/drivers/mysqlc/mysqlc_databasemetadata \
64 connectivity/source/drivers/mysqlc/mysqlc_driver \
65 connectivity/source/drivers/mysqlc/mysqlc_general \
66 connectivity/source/drivers/mysqlc/mysqlc_indexes \
67 connectivity/source/drivers/mysqlc/mysqlc_keys \
68 connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset \
69 connectivity/source/drivers/mysqlc/mysqlc_preparedstatement \
70 connectivity/source/drivers/mysqlc/mysqlc_resultset \
71 connectivity/source/drivers/mysqlc/mysqlc_resultsetmetadata \
72 connectivity/source/drivers/mysqlc/mysqlc_services \
73 connectivity/source/drivers/mysqlc/mysqlc_statement \
74 connectivity/source/drivers/mysqlc/mysqlc_table \
75 connectivity/source/drivers/mysqlc/mysqlc_tables \
76 connectivity/source/drivers/mysqlc/mysqlc_types \
77 connectivity/source/drivers/mysqlc/mysqlc_user \
78 connectivity/source/drivers/mysqlc/mysqlc_users \
79 connectivity/source/drivers/mysqlc/mysqlc_view \
80 connectivity/source/drivers/mysqlc/mysqlc_views \
83 $(eval $(call gb_Library_set_componentfile,mysqlc,connectivity/source/drivers/mysqlc/mysqlc,services))
85 # vim: set noet sw=4 ts=4: