Mac distro config is always 64 bits these days & remove --with-vendor
[LibreOffice.git] / mysqlc / Library_mysqlc.mk
blob656b5dc519d76cb6179ce973720eb0ded5cb1f1e
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_add_cxxflags,mysqlc,-DRTL_DISABLE_FAST_STRING))
14 $(eval $(call gb_Library_use_externals,mysqlc,\
15 boost_headers \
16 mysqlcppconn \
19 ifeq ($(SYSTEM_MYSQL_CPPCONN),)
20 $(eval $(call gb_Library_add_libs,mysqlc,\
21 $(if $(filter-out WNT,$(OS)),$(if $(filter MACOSX SOLARIS,$(OS)),-lz -lm,\
22 -rdynamic -lz -lcrypt -lnsl -lm)) \
24 endif
26 $(eval $(call gb_Library_use_sdk_api,mysqlc))
28 $(eval $(call gb_Library_use_libraries,mysqlc,\
29 cppu \
30 sal \
31 salhelper \
32 cppuhelper \
35 $(eval $(call gb_Library_add_defs,mysqlc,\
36 -DCPPDBC_EXPORTS \
37 -DCPPCONN_LIB_BUILD \
38 -DMARIADBC_VERSION_MAJOR=$(MARIADBC_MAJOR) \
39 -DMARIADBC_VERSION_MINOR=$(MARIADBC_MINOR) \
40 -DMARIADBC_VERSION_MICRO=$(MARIADBC_MICRO) \
41 $(if $(SYSTEM_MYSQL_CPPCONN),,\
42 -DCPPCONN_LIB=\"$(call gb_Library_get_runtime_filename,mysqlcppconn)\") \
43 $(if $(BUNDLE_MARIADB),-DBUNDLE_MARIADB=\"$(LIBMARIADB)\") \
46 $(eval $(call gb_Library_add_exception_objects,mysqlc,\
47 mysqlc/source/mysqlc_driver \
48 mysqlc/source/mysqlc_services \
49 mysqlc/source/mysqlc_connection \
50 mysqlc/source/mysqlc_resultset \
51 mysqlc/source/mysqlc_resultsetmetadata \
52 mysqlc/source/mysqlc_statement \
53 mysqlc/source/mysqlc_preparedstatement \
54 mysqlc/source/mysqlc_databasemetadata \
55 mysqlc/source/mysqlc_types \
56 mysqlc/source/mysqlc_general \
57 mysqlc/source/mysqlc_propertyids \
60 $(eval $(call gb_Library_set_componentfile,mysqlc,mysqlc/source/mysqlc))
62 # vim: set noet sw=4 ts=4: