bump product version to 4.1.6.2
[LibreOffice.git] / mysqlc / Library_mysqlc.mk
blob00c35e300beab09502df81a2935de001a8b97196
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_set_warnings_not_errors,mysqlc))
14 $(eval $(call gb_Library_add_cxxflags,mysqlc,-DRTL_DISABLE_FAST_STRING))
16 $(eval $(call gb_Library_use_externals,mysqlc,\
17 boost_headers \
18 mysqlcppconn \
21 ifeq ($(SYSTEM_MYSQL_CPPCONN),NO)
22 $(eval $(call gb_Library_add_libs,mysqlc,\
23 $(if $(filter-out WNT,$(OS)),$(if $(filter MACOSX SOLARIS,$(OS)),-lz -lm,\
24 -rdynamic -lz -lcrypt -lnsl -lm)) \
26 endif
28 $(eval $(call gb_Library_use_sdk_api,mysqlc))
30 $(eval $(call gb_Library_use_libraries,mysqlc,\
31 cppu \
32 sal \
33 salhelper \
34 cppuhelper \
37 $(eval $(call gb_Library_add_defs,mysqlc,\
38 -DCPPDBC_EXPORTS \
39 -DCPPCONN_LIB_BUILD \
40 -DMARIADBC_VERSION_MAJOR=$(MARIADBC_MAJOR) \
41 -DMARIADBC_VERSION_MINOR=$(MARIADBC_MINOR) \
42 -DMARIADBC_VERSION_MICRO=$(MARIADBC_MICRO) \
43 $(if $(filter NO,$(SYSTEM_MYSQL_CPPCONN)),\
44 -DCPPCONN_LIB=\"$(call gb_Library_get_runtime_filename,mysqlcppconn)\") \
45 $(if $(filter YES,$(BUNDLE_MARIADB)),\
46 -DBUNDLE_MARIADB=\"$(LIBMARIADB)\") \
49 $(eval $(call gb_Library_add_exception_objects,mysqlc,\
50 mysqlc/source/mysqlc_driver \
51 mysqlc/source/mysqlc_services \
52 mysqlc/source/mysqlc_connection \
53 mysqlc/source/mysqlc_resultset \
54 mysqlc/source/mysqlc_resultsetmetadata \
55 mysqlc/source/mysqlc_statement \
56 mysqlc/source/mysqlc_preparedstatement \
57 mysqlc/source/mysqlc_databasemetadata \
58 mysqlc/source/mysqlc_types \
59 mysqlc/source/mysqlc_general \
60 mysqlc/source/mysqlc_propertyids \
63 $(eval $(call gb_Library_set_componentfile,mysqlc,mysqlc/source/mysqlc))
65 # vim: set noet sw=4 ts=4: