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
,\
18 $(eval
$(call gb_Library_set_include
,mysqlc
,\
19 -I
$(SRCDIR
)/connectivity
/inc \
20 -I
$(SRCDIR
)/connectivity
/source
/inc \
22 -I
$(WORKDIR
)/YaccTarget
/connectivity
/source
/parse \
25 $(eval
$(call gb_Library_add_libs
,mysqlc
,\
26 $(if
$(filter-out WNT
,$(OS
)),$(if
$(filter HAIKU MACOSX SOLARIS
,$(OS
)),\
27 -lz
-lm
,-rdynamic
-lz
-lcrypt
-lm
)) \
28 $(if
$(filter LINUX
,$(OS
)),-ldl
,) \
31 $(eval
$(call gb_Library_use_sdk_api
,mysqlc
))
33 $(eval
$(call gb_Library_use_libraries
,mysqlc
,\
42 $(eval
$(call gb_Library_add_defs
,mysqlc
,\
45 -DMARIADBC_VERSION_MAJOR
=$(MARIADBC_MAJOR
) \
46 -DMARIADBC_VERSION_MINOR
=$(MARIADBC_MINOR
) \
47 -DMARIADBC_VERSION_MICRO
=$(MARIADBC_MICRO
) \
48 $(if
$(BUNDLE_MARIADB_CONNECTOR_C
),-DBUNDLE_MARIADB
=\"$(LIBMARIADB
)\") \
51 $(eval
$(call gb_Library_add_exception_objects
,mysqlc
,\
52 connectivity
/source
/drivers
/mysqlc
/mysqlc_catalog \
53 connectivity
/source
/drivers
/mysqlc
/mysqlc_column \
54 connectivity
/source
/drivers
/mysqlc
/mysqlc_columns \
55 connectivity
/source
/drivers
/mysqlc
/mysqlc_connection \
56 connectivity
/source
/drivers
/mysqlc
/mysqlc_databasemetadata \
57 connectivity
/source
/drivers
/mysqlc
/mysqlc_driver \
58 connectivity
/source
/drivers
/mysqlc
/mysqlc_general \
59 connectivity
/source
/drivers
/mysqlc
/mysqlc_indexes \
60 connectivity
/source
/drivers
/mysqlc
/mysqlc_keys \
61 connectivity
/source
/drivers
/mysqlc
/mysqlc_prepared_resultset \
62 connectivity
/source
/drivers
/mysqlc
/mysqlc_preparedstatement \
63 connectivity
/source
/drivers
/mysqlc
/mysqlc_resultset \
64 connectivity
/source
/drivers
/mysqlc
/mysqlc_resultsetmetadata \
65 connectivity
/source
/drivers
/mysqlc
/mysqlc_services \
66 connectivity
/source
/drivers
/mysqlc
/mysqlc_statement \
67 connectivity
/source
/drivers
/mysqlc
/mysqlc_table \
68 connectivity
/source
/drivers
/mysqlc
/mysqlc_tables \
69 connectivity
/source
/drivers
/mysqlc
/mysqlc_types \
70 connectivity
/source
/drivers
/mysqlc
/mysqlc_user \
71 connectivity
/source
/drivers
/mysqlc
/mysqlc_view \
72 connectivity
/source
/drivers
/mysqlc
/mysqlc_views \
75 $(eval
$(call gb_Library_set_componentfile
,mysqlc
,connectivity
/source
/drivers
/mysqlc
/mysqlc
,services
))
77 # vim: set noet sw=4 ts=4: