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
,\
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
)) \
26 $(eval
$(call gb_Library_use_sdk_api
,mysqlc
))
28 $(eval
$(call gb_Library_use_libraries
,mysqlc
,\
35 $(eval
$(call gb_Library_add_defs
,mysqlc
,\
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: