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
,\
17 ifeq ($(SYSTEM_MYSQL_CONNECTOR_CPP
),)
18 $(eval
$(call gb_Library_add_libs
,mysqlc
,\
19 $(if
$(filter-out WNT
,$(OS
)),$(if
$(filter MACOSX SOLARIS
,$(OS
)),-lz
-lm
,\
20 -rdynamic
-lz
-lcrypt
-lm
)) \
24 $(eval
$(call gb_Library_use_sdk_api
,mysqlc
))
26 $(eval
$(call gb_Library_use_libraries
,mysqlc
,\
33 $(eval
$(call gb_Library_add_defs
,mysqlc
,\
36 -DMARIADBC_VERSION_MAJOR
=$(MARIADBC_MAJOR
) \
37 -DMARIADBC_VERSION_MINOR
=$(MARIADBC_MINOR
) \
38 -DMARIADBC_VERSION_MICRO
=$(MARIADBC_MICRO
) \
39 $(if
$(SYSTEM_MYSQL_CONNECTOR_CPP
),,\
40 -DCPPCONN_LIB
=\"$(call gb_Library_get_runtime_filename
,mysqlcppconn
)\") \
41 $(if
$(BUNDLE_MARIADB_CONNECTOR_C
),-DBUNDLE_MARIADB
=\"$(LIBMARIADB
)\") \
44 $(eval
$(call gb_Library_add_exception_objects
,mysqlc
,\
45 mysqlc
/source
/mysqlc_driver \
46 mysqlc
/source
/mysqlc_services \
47 mysqlc
/source
/mysqlc_connection \
48 mysqlc
/source
/mysqlc_resultset \
49 mysqlc
/source
/mysqlc_resultsetmetadata \
50 mysqlc
/source
/mysqlc_statement \
51 mysqlc
/source
/mysqlc_preparedstatement \
52 mysqlc
/source
/mysqlc_databasemetadata \
53 mysqlc
/source
/mysqlc_types \
54 mysqlc
/source
/mysqlc_general \
57 $(eval
$(call gb_Library_set_componentfile
,mysqlc
,mysqlc
/source
/mysqlc
))
59 $(eval
$(call gb_Library_set_external_code
,mysqlc
))
61 # vim: set noet sw=4 ts=4: