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_UnpackedTarball_UnpackedTarball
,mariadb-connector-c
))
12 $(eval
$(call gb_UnpackedTarball_set_tarball
,mariadb-connector-c
,$(MARIADB_CONNECTOR_C_TARBALL
)))
14 $(eval
$(call gb_UnpackedTarball_add_file
,mariadb-connector-c
,include/mariadb_version.h
,external
/mariadb-connector-c
/configs
/mariadb_version.h
))
17 $(eval
$(call gb_UnpackedTarball_add_file
,mariadb-connector-c
,include/ma_config.h
,external
/mariadb-connector-c
/configs
/wnt_ma_config.h
))
20 $(eval
$(call gb_UnpackedTarball_add_file
,mariadb-connector-c
,include/ma_config.h
,external
/mariadb-connector-c
/configs
/mac_my_config.h
))
22 $(eval
$(call gb_UnpackedTarball_add_file
,mariadb-connector-c
,include/ma_config.h
,external
/mariadb-connector-c
/configs
/linux_my_config.h
))
26 $(eval
$(call gb_UnpackedTarball_set_patchlevel
,mariadb-connector-c
,1))
28 $(eval
$(call gb_UnpackedTarball_add_patches
,mariadb-connector-c
,\
29 external
/mariadb-connector-c
/clang-cl.patch
.0 \
32 # TODO are any "plugins" needed?
33 $(eval
$(call gb_UnpackedTarball_set_post_action
,mariadb-connector-c
, \
34 < libmariadb
/ma_client_plugin.c.in sed \
35 -e
's/@EXTERNAL_PLUGINS@/ \
36 extern struct st_mysql_client_plugin pvio_socket_client_plugin\; \
37 extern struct st_mysql_client_plugin caching_sha2_password_client_plugin\; \
38 extern struct st_mysql_client_plugin mysql_native_password_client_plugin\; \
39 $(if $(filter WNT,$(OS)), \
40 extern struct st_mysql_client_plugin pvio_shmem_client_plugin\; \
41 extern struct st_mysql_client_plugin pvio_npipe_client_plugin\; \
44 -e
's/@BUILTIN_PLUGINS@/ \
45 (struct st_mysql_client_plugin *)\&pvio_socket_client_plugin$(COMMA) \
46 (struct st_mysql_client_plugin *)\&caching_sha2_password_client_plugin$(COMMA) \
47 (struct st_mysql_client_plugin *)\&mysql_native_password_client_plugin$(COMMA) \
48 $(if $(filter WNT,$(OS)), \
49 (struct st_mysql_client_plugin *)\&pvio_shmem_client_plugin$(COMMA) \
50 (struct st_mysql_client_plugin *)\&pvio_npipe_client_plugin$(COMMA) \
53 > libmariadb
/ma_client_plugin.c \
57 # vim: set noet sw=4 ts=4: