tdf#120452: Just enough of SystemEnvData in Qt5Object
[LibreOffice.git] / connectivity / Library_mysqlc.mk
blob3d9d9150b9eab3b075bb24932d354c4a3642fc7c
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 \
17 $(eval $(call gb_Library_set_include,mysqlc,\
18 -I$(SRCDIR)/connectivity/inc \
19 -I$(SRCDIR)/connectivity/source/inc \
20 $$(INCLUDE) \
21 -I$(WORKDIR)/YaccTarget/connectivity/source/parse \
24 $(eval $(call gb_Library_add_libs,mysqlc,\
25 $(if $(filter-out WNT,$(OS)),$(if $(filter MACOSX SOLARIS,$(OS)),-lz -lm,\
26 -rdynamic -lz -lcrypt -lm)) \
27 $(if $(filter LINUX,$(OS)),-lpthread -ldl,) \
30 $(eval $(call gb_Library_use_sdk_api,mysqlc))
32 $(eval $(call gb_Library_use_libraries,mysqlc,\
33 cppu \
34 sal \
35 salhelper \
36 cppuhelper \
39 $(eval $(call gb_Library_add_defs,mysqlc,\
40 -DCPPDBC_EXPORTS \
41 -DCPPCONN_LIB_BUILD \
42 -DMARIADBC_VERSION_MAJOR=$(MARIADBC_MAJOR) \
43 -DMARIADBC_VERSION_MINOR=$(MARIADBC_MINOR) \
44 -DMARIADBC_VERSION_MICRO=$(MARIADBC_MICRO) \
45 $(if $(BUNDLE_MARIADB_CONNECTOR_C),-DBUNDLE_MARIADB=\"$(LIBMARIADB)\") \
48 $(eval $(call gb_Library_add_exception_objects,mysqlc,\
49 connectivity/source/drivers/mysqlc/mysqlc_driver \
50 connectivity/source/drivers/mysqlc/mysqlc_services \
51 connectivity/source/drivers/mysqlc/mysqlc_connection \
52 connectivity/source/drivers/mysqlc/mysqlc_resultset \
53 connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset \
54 connectivity/source/drivers/mysqlc/mysqlc_resultsetmetadata \
55 connectivity/source/drivers/mysqlc/mysqlc_statement \
56 connectivity/source/drivers/mysqlc/mysqlc_preparedstatement \
57 connectivity/source/drivers/mysqlc/mysqlc_databasemetadata \
58 connectivity/source/drivers/mysqlc/mysqlc_types \
59 connectivity/source/drivers/mysqlc/mysqlc_general \
62 $(eval $(call gb_Library_set_componentfile,mysqlc,connectivity/source/drivers/mysqlc/mysqlc))
64 # vim: set noet sw=4 ts=4: