diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:06:44 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:06:44 +0000 |
commit | ed5640d8b587fbcfed7dd7967f3de04b37a76f26 (patch) | |
tree | 7a5f7c6c9d02226d7471cb3cc8fbbf631b415303 /external/mariadb-connector-c/StaticLibrary_mariadb-connector-c.mk | |
parent | Initial commit. (diff) | |
download | libreoffice-ed5640d8b587fbcfed7dd7967f3de04b37a76f26.tar.xz libreoffice-ed5640d8b587fbcfed7dd7967f3de04b37a76f26.zip |
Adding upstream version 4:7.4.7.upstream/4%7.4.7upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | external/mariadb-connector-c/StaticLibrary_mariadb-connector-c.mk | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/external/mariadb-connector-c/StaticLibrary_mariadb-connector-c.mk b/external/mariadb-connector-c/StaticLibrary_mariadb-connector-c.mk new file mode 100644 index 000000000..3458089ce --- /dev/null +++ b/external/mariadb-connector-c/StaticLibrary_mariadb-connector-c.mk @@ -0,0 +1,82 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_StaticLibrary_StaticLibrary,mariadb-connector-c)) + +$(eval $(call gb_StaticLibrary_set_warnings_disabled,mariadb-connector-c)) + +$(eval $(call gb_StaticLibrary_use_unpacked,mariadb-connector-c,mariadb-connector-c)) + +$(eval $(call gb_StaticLibrary_set_include,mariadb-connector-c,\ + $$(INCLUDE) \ + -I$(call gb_UnpackedTarball_get_dir,mariadb-connector-c)/include \ +)) + +# This is needed for MSVC 2008: it somehow finds a dlopen somewhere +# but the static library then contains unreferenced symbols. +# This macro enables a re-definition to native Win32 APIs in my_global.h. +## TODO missing enable: -D HAVE_COMPRESS +## (but then need to add "-lz" to mysqlcppconn linking) +$(eval $(call gb_StaticLibrary_add_cflags,mariadb-connector-c,-DHAVE_DLOPEN -D ENABLED_LOCAL_INFILE -D LIBMARIADB -D THREAD -DSQLITE_ENABLE_COLUMN_METADATA=1)) + +ifeq ($(OS),WNT) +$(eval $(call gb_StaticLibrary_add_cflags,mariadb-connector-c,-D_TIMESPEC_DEFINED -DHAVE_STRTOULL)) +$(eval $(call gb_StaticLibrary_set_include,mariadb-connector-c,\ + $$(INCLUDE) \ + -I$(call gb_UnpackedTarball_get_dir,mariadb-connector-c)/win-iconv \ +)) +else +$(eval $(call gb_StaticLibrary_use_external,mariadb-connector-c,openssl_headers)) +$(eval $(call gb_StaticLibrary_add_cflags,mariadb-connector-c,-DHAVE_OPENSSL)) +endif + +$(eval $(call gb_StaticLibrary_add_generated_cobjects,mariadb-connector-c,\ + UnpackedTarball/mariadb-connector-c/libmariadb/get_password \ + UnpackedTarball/mariadb-connector-c/libmariadb/ma_alloc \ + UnpackedTarball/mariadb-connector-c/libmariadb/ma_array \ + UnpackedTarball/mariadb-connector-c/libmariadb/ma_charset \ + UnpackedTarball/mariadb-connector-c/libmariadb/ma_compress \ + UnpackedTarball/mariadb-connector-c/libmariadb/ma_context \ + UnpackedTarball/mariadb-connector-c/libmariadb/ma_default \ + UnpackedTarball/mariadb-connector-c/libmariadb/ma_dtoa \ + UnpackedTarball/mariadb-connector-c/libmariadb/ma_errmsg \ + UnpackedTarball/mariadb-connector-c/libmariadb/ma_hash \ + UnpackedTarball/mariadb-connector-c/libmariadb/ma_init \ + UnpackedTarball/mariadb-connector-c/libmariadb/ma_io \ + UnpackedTarball/mariadb-connector-c/libmariadb/ma_list \ + UnpackedTarball/mariadb-connector-c/libmariadb/ma_ll2str \ + UnpackedTarball/mariadb-connector-c/libmariadb/ma_loaddata \ + UnpackedTarball/mariadb-connector-c/libmariadb/ma_net \ + UnpackedTarball/mariadb-connector-c/libmariadb/ma_password \ + UnpackedTarball/mariadb-connector-c/libmariadb/ma_pvio \ + UnpackedTarball/mariadb-connector-c/libmariadb/ma_sha1 \ + UnpackedTarball/mariadb-connector-c/libmariadb/ma_stmt_codec \ + UnpackedTarball/mariadb-connector-c/libmariadb/ma_string \ + UnpackedTarball/mariadb-connector-c/libmariadb/ma_time \ + UnpackedTarball/mariadb-connector-c/libmariadb/mariadb_async \ + UnpackedTarball/mariadb-connector-c/libmariadb/mariadb_charset \ + UnpackedTarball/mariadb-connector-c/libmariadb/mariadb_dyncol \ + UnpackedTarball/mariadb-connector-c/libmariadb/mariadb_lib \ + UnpackedTarball/mariadb-connector-c/libmariadb/mariadb_stmt \ + UnpackedTarball/mariadb-connector-c/libmariadb/ma_client_plugin \ + UnpackedTarball/mariadb-connector-c/plugins/auth/my_auth \ + UnpackedTarball/mariadb-connector-c/plugins/auth/caching_sha2_pw \ + UnpackedTarball/mariadb-connector-c/plugins/pvio/pvio_socket \ + $(if $(filter $(OS),WNT), \ + UnpackedTarball/mariadb-connector-c/libmariadb/win32_errmsg \ + UnpackedTarball/mariadb-connector-c/libmariadb/secure/win_crypt \ + UnpackedTarball/mariadb-connector-c/win-iconv/win_iconv \ + UnpackedTarball/mariadb-connector-c/plugins/pvio/pvio_npipe \ + UnpackedTarball/mariadb-connector-c/plugins/pvio/pvio_shmem \ + , \ + UnpackedTarball/mariadb-connector-c/libmariadb/secure/openssl_crypt \ + ) \ +)) + +# vim: set noet sw=4 ts=4: |