tdf#163228 Enable vertical text options for Mongolian script
[LibreOffice.git] / external / mariadb-connector-c / UnpackedTarball_mariadb-connector-c.mk
blob3ba6bfef583f4ebedd1363ca17eda00d87cbc918
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))
16 ifeq ($(OS),WNT)
17 $(eval $(call gb_UnpackedTarball_add_file,mariadb-connector-c,include/ma_config.h,external/mariadb-connector-c/configs/wnt_ma_config.h))
18 else
19 ifeq ($(OS),MACOSX)
20 $(eval $(call gb_UnpackedTarball_add_file,mariadb-connector-c,include/ma_config.h,external/mariadb-connector-c/configs/mac_my_config.h))
21 else
22 $(eval $(call gb_UnpackedTarball_add_file,mariadb-connector-c,include/ma_config.h,external/mariadb-connector-c/configs/linux_my_config.h))
23 endif
24 endif # $(OS),WNT
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 \
30 external/mariadb-connector-c/c23.patch.0 \
33 # TODO are any "plugins" needed?
34 $(eval $(call gb_UnpackedTarball_set_post_action,mariadb-connector-c, \
35 < libmariadb/ma_client_plugin.c.in sed \
36 -e 's/@EXTERNAL_PLUGINS@/ \
37 extern struct st_mysql_client_plugin pvio_socket_client_plugin\; \
38 extern struct st_mysql_client_plugin caching_sha2_password_client_plugin\; \
39 extern struct st_mysql_client_plugin mysql_native_password_client_plugin\; \
40 extern struct st_mysql_client_plugin_AUTHENTICATION auth_gssapi_client_client_plugin\; \
41 $(if $(filter WNT,$(OS)), \
42 extern struct st_mysql_client_plugin pvio_shmem_client_plugin\; \
43 extern struct st_mysql_client_plugin pvio_npipe_client_plugin\; \
44 ) \
45 /' \
46 -e 's/@BUILTIN_PLUGINS@/ \
47 (struct st_mysql_client_plugin *)\&pvio_socket_client_plugin$(COMMA) \
48 (struct st_mysql_client_plugin *)\&caching_sha2_password_client_plugin$(COMMA) \
49 (struct st_mysql_client_plugin *)\&mysql_native_password_client_plugin$(COMMA) \
50 (struct st_mysql_client_plugin *)\&auth_gssapi_client_client_plugin$(COMMA) \
51 $(if $(filter WNT,$(OS)), \
52 (struct st_mysql_client_plugin *)\&pvio_shmem_client_plugin$(COMMA) \
53 (struct st_mysql_client_plugin *)\&pvio_npipe_client_plugin$(COMMA) \
54 ) \
55 /' \
56 > libmariadb/ma_client_plugin.c \
60 # vim: set noet sw=4 ts=4: