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
,\
18 -I
$(gb_UnpackedTarball_workdir
)/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 $(eval
$(call gb_StaticLibrary_add_cflags
,mariadb-connector-c
,-DHAVE_DLOPEN
-DHAVE_COMPRESS
-D ENABLED_LOCAL_INFILE
-D LIBMARIADB
-D THREAD
-DSQLITE_ENABLE_COLUMN_METADATA
=1))
27 $(eval
$(call gb_StaticLibrary_add_cflags
,mariadb-connector-c
,-D_TIMESPEC_DEFINED
-DHAVE_STRTOULL
-DHAVE_WINCRYPT
))
28 $(eval
$(call gb_StaticLibrary_set_include
,mariadb-connector-c
,\
30 -I
$(gb_UnpackedTarball_workdir
)/mariadb-connector-c
/win-iconv \
33 $(eval
$(call gb_StaticLibrary_use_external
,mariadb-connector-c
,openssl_headers
))
34 $(eval
$(call gb_StaticLibrary_add_cflags
,mariadb-connector-c
,-DHAVE_OPENSSL
))
37 $(eval
$(call gb_StaticLibrary_add_generated_cobjects
,mariadb-connector-c
,\
38 UnpackedTarball
/mariadb-connector-c
/libmariadb
/get_password \
39 UnpackedTarball
/mariadb-connector-c
/libmariadb
/ma_alloc \
40 UnpackedTarball
/mariadb-connector-c
/libmariadb
/ma_array \
41 UnpackedTarball
/mariadb-connector-c
/libmariadb
/ma_charset \
42 UnpackedTarball
/mariadb-connector-c
/libmariadb
/ma_compress \
43 UnpackedTarball
/mariadb-connector-c
/libmariadb
/ma_context \
44 UnpackedTarball
/mariadb-connector-c
/libmariadb
/ma_default \
45 UnpackedTarball
/mariadb-connector-c
/libmariadb
/ma_dtoa \
46 UnpackedTarball
/mariadb-connector-c
/libmariadb
/ma_errmsg \
47 UnpackedTarball
/mariadb-connector-c
/libmariadb
/ma_hashtbl \
48 UnpackedTarball
/mariadb-connector-c
/libmariadb
/ma_init \
49 UnpackedTarball
/mariadb-connector-c
/libmariadb
/ma_io \
50 UnpackedTarball
/mariadb-connector-c
/libmariadb
/ma_list \
51 UnpackedTarball
/mariadb-connector-c
/libmariadb
/ma_ll2str \
52 UnpackedTarball
/mariadb-connector-c
/libmariadb
/ma_loaddata \
53 UnpackedTarball
/mariadb-connector-c
/libmariadb
/ma_net \
54 UnpackedTarball
/mariadb-connector-c
/libmariadb
/ma_password \
55 UnpackedTarball
/mariadb-connector-c
/libmariadb
/ma_pvio \
56 UnpackedTarball
/mariadb-connector-c
/plugins
/auth
/auth_gssapi_client \
57 UnpackedTarball
/mariadb-connector-c
/libmariadb
/ma_sha1 \
58 UnpackedTarball
/mariadb-connector-c
/libmariadb
/ma_stmt_codec \
59 UnpackedTarball
/mariadb-connector-c
/libmariadb
/ma_string \
60 UnpackedTarball
/mariadb-connector-c
/libmariadb
/ma_time \
61 UnpackedTarball
/mariadb-connector-c
/libmariadb
/mariadb_async \
62 UnpackedTarball
/mariadb-connector-c
/libmariadb
/mariadb_charset \
63 UnpackedTarball
/mariadb-connector-c
/libmariadb
/mariadb_dyncol \
64 UnpackedTarball
/mariadb-connector-c
/libmariadb
/mariadb_lib \
65 UnpackedTarball
/mariadb-connector-c
/libmariadb
/mariadb_stmt \
66 UnpackedTarball
/mariadb-connector-c
/libmariadb
/ma_client_plugin \
67 UnpackedTarball
/mariadb-connector-c
/plugins
/auth
/my_auth \
68 UnpackedTarball
/mariadb-connector-c
/plugins
/auth
/caching_sha2_pw \
69 UnpackedTarball
/mariadb-connector-c
/plugins
/pvio
/pvio_socket \
70 $(if
$(filter $(OS
),WNT
), \
71 UnpackedTarball
/mariadb-connector-c
/libmariadb
/win32_errmsg \
72 UnpackedTarball
/mariadb-connector-c
/libmariadb
/secure
/win_crypt \
73 UnpackedTarball
/mariadb-connector-c
/win-iconv
/win_iconv \
74 UnpackedTarball
/mariadb-connector-c
/plugins
/pvio
/pvio_npipe \
75 UnpackedTarball
/mariadb-connector-c
/plugins
/pvio
/pvio_shmem \
76 UnpackedTarball
/mariadb-connector-c
/plugins
/auth
/sspi_client \
77 UnpackedTarball
/mariadb-connector-c
/plugins
/auth
/sspi_errmsg \
79 UnpackedTarball
/mariadb-connector-c
/libmariadb
/secure
/openssl_crypt \
80 UnpackedTarball
/mariadb-connector-c
/plugins
/auth
/gssapi_client \
81 UnpackedTarball
/mariadb-connector-c
/plugins
/auth
/gssapi_errmsg \
85 # vim: set noet sw=4 ts=4: