update credits
[LibreOffice.git] / external / mariadb-connector-c / StaticLibrary_mariadb-connector-c.mk
blob3458089ce99e5bb6f9d16775449f8f27fa60b425
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_StaticLibrary_StaticLibrary,mariadb-connector-c))
12 $(eval $(call gb_StaticLibrary_set_warnings_disabled,mariadb-connector-c))
14 $(eval $(call gb_StaticLibrary_use_unpacked,mariadb-connector-c,mariadb-connector-c))
16 $(eval $(call gb_StaticLibrary_set_include,mariadb-connector-c,\
17 $$(INCLUDE) \
18 -I$(call gb_UnpackedTarball_get_dir,mariadb-connector-c)/include \
21 # This is needed for MSVC 2008: it somehow finds a dlopen somewhere
22 # but the static library then contains unreferenced symbols.
23 # This macro enables a re-definition to native Win32 APIs in my_global.h.
24 ## TODO missing enable: -D HAVE_COMPRESS
25 ## (but then need to add "-lz" to mysqlcppconn linking)
26 $(eval $(call gb_StaticLibrary_add_cflags,mariadb-connector-c,-DHAVE_DLOPEN -D ENABLED_LOCAL_INFILE -D LIBMARIADB -D THREAD -DSQLITE_ENABLE_COLUMN_METADATA=1))
28 ifeq ($(OS),WNT)
29 $(eval $(call gb_StaticLibrary_add_cflags,mariadb-connector-c,-D_TIMESPEC_DEFINED -DHAVE_STRTOULL))
30 $(eval $(call gb_StaticLibrary_set_include,mariadb-connector-c,\
31 $$(INCLUDE) \
32 -I$(call gb_UnpackedTarball_get_dir,mariadb-connector-c)/win-iconv \
34 else
35 $(eval $(call gb_StaticLibrary_use_external,mariadb-connector-c,openssl_headers))
36 $(eval $(call gb_StaticLibrary_add_cflags,mariadb-connector-c,-DHAVE_OPENSSL))
37 endif
39 $(eval $(call gb_StaticLibrary_add_generated_cobjects,mariadb-connector-c,\
40 UnpackedTarball/mariadb-connector-c/libmariadb/get_password \
41 UnpackedTarball/mariadb-connector-c/libmariadb/ma_alloc \
42 UnpackedTarball/mariadb-connector-c/libmariadb/ma_array \
43 UnpackedTarball/mariadb-connector-c/libmariadb/ma_charset \
44 UnpackedTarball/mariadb-connector-c/libmariadb/ma_compress \
45 UnpackedTarball/mariadb-connector-c/libmariadb/ma_context \
46 UnpackedTarball/mariadb-connector-c/libmariadb/ma_default \
47 UnpackedTarball/mariadb-connector-c/libmariadb/ma_dtoa \
48 UnpackedTarball/mariadb-connector-c/libmariadb/ma_errmsg \
49 UnpackedTarball/mariadb-connector-c/libmariadb/ma_hash \
50 UnpackedTarball/mariadb-connector-c/libmariadb/ma_init \
51 UnpackedTarball/mariadb-connector-c/libmariadb/ma_io \
52 UnpackedTarball/mariadb-connector-c/libmariadb/ma_list \
53 UnpackedTarball/mariadb-connector-c/libmariadb/ma_ll2str \
54 UnpackedTarball/mariadb-connector-c/libmariadb/ma_loaddata \
55 UnpackedTarball/mariadb-connector-c/libmariadb/ma_net \
56 UnpackedTarball/mariadb-connector-c/libmariadb/ma_password \
57 UnpackedTarball/mariadb-connector-c/libmariadb/ma_pvio \
58 UnpackedTarball/mariadb-connector-c/libmariadb/ma_sha1 \
59 UnpackedTarball/mariadb-connector-c/libmariadb/ma_stmt_codec \
60 UnpackedTarball/mariadb-connector-c/libmariadb/ma_string \
61 UnpackedTarball/mariadb-connector-c/libmariadb/ma_time \
62 UnpackedTarball/mariadb-connector-c/libmariadb/mariadb_async \
63 UnpackedTarball/mariadb-connector-c/libmariadb/mariadb_charset \
64 UnpackedTarball/mariadb-connector-c/libmariadb/mariadb_dyncol \
65 UnpackedTarball/mariadb-connector-c/libmariadb/mariadb_lib \
66 UnpackedTarball/mariadb-connector-c/libmariadb/mariadb_stmt \
67 UnpackedTarball/mariadb-connector-c/libmariadb/ma_client_plugin \
68 UnpackedTarball/mariadb-connector-c/plugins/auth/my_auth \
69 UnpackedTarball/mariadb-connector-c/plugins/auth/caching_sha2_pw \
70 UnpackedTarball/mariadb-connector-c/plugins/pvio/pvio_socket \
71 $(if $(filter $(OS),WNT), \
72 UnpackedTarball/mariadb-connector-c/libmariadb/win32_errmsg \
73 UnpackedTarball/mariadb-connector-c/libmariadb/secure/win_crypt \
74 UnpackedTarball/mariadb-connector-c/win-iconv/win_iconv \
75 UnpackedTarball/mariadb-connector-c/plugins/pvio/pvio_npipe \
76 UnpackedTarball/mariadb-connector-c/plugins/pvio/pvio_shmem \
77 , \
78 UnpackedTarball/mariadb-connector-c/libmariadb/secure/openssl_crypt \
79 ) \
82 # vim: set noet sw=4 ts=4: