Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / external / mariadb-connector-c / StaticLibrary_mariadb-connector-c.mk
blob3e35e1d648c5e29ba57b93a9a40aebbcb13787e6
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: -DHAVE_OPENSSL -D HAVE_COMPRESS
25 ## (but then need to add "-lssl -lcrypto -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 endif
36 $(eval $(call gb_StaticLibrary_add_generated_cobjects,mariadb-connector-c,\
37 UnpackedTarball/mariadb-connector-c/libmariadb/array \
38 UnpackedTarball/mariadb-connector-c/libmariadb/ma_dyncol \
39 UnpackedTarball/mariadb-connector-c/libmariadb/bchange \
40 UnpackedTarball/mariadb-connector-c/libmariadb/bmove \
41 UnpackedTarball/mariadb-connector-c/libmariadb/bmove_upp \
42 UnpackedTarball/mariadb-connector-c/libmariadb/my_charset \
43 UnpackedTarball/mariadb-connector-c/libmariadb/hash \
44 UnpackedTarball/mariadb-connector-c/libmariadb/violite \
45 UnpackedTarball/mariadb-connector-c/libmariadb/net \
46 UnpackedTarball/mariadb-connector-c/libmariadb/charset \
47 UnpackedTarball/mariadb-connector-c/libmariadb/ma_time \
48 UnpackedTarball/mariadb-connector-c/libmariadb/dbug \
49 UnpackedTarball/mariadb-connector-c/libmariadb/default \
50 UnpackedTarball/mariadb-connector-c/libmariadb/errmsg \
51 UnpackedTarball/mariadb-connector-c/libmariadb/my_vsnprintf \
52 UnpackedTarball/mariadb-connector-c/libmariadb/errors \
53 UnpackedTarball/mariadb-connector-c/libmariadb/getopt1 \
54 UnpackedTarball/mariadb-connector-c/libmariadb/getopt \
55 UnpackedTarball/mariadb-connector-c/libmariadb/get_password \
56 UnpackedTarball/mariadb-connector-c/libmariadb/int2str \
57 UnpackedTarball/mariadb-connector-c/libmariadb/is_prefix \
58 UnpackedTarball/mariadb-connector-c/libmariadb/libmariadb \
59 UnpackedTarball/mariadb-connector-c/libmariadb/list \
60 UnpackedTarball/mariadb-connector-c/libmariadb/llstr \
61 UnpackedTarball/mariadb-connector-c/libmariadb/longlong2str \
62 UnpackedTarball/mariadb-connector-c/libmariadb/mf_dirname \
63 UnpackedTarball/mariadb-connector-c/libmariadb/mf_fn_ext \
64 UnpackedTarball/mariadb-connector-c/libmariadb/mf_format \
65 UnpackedTarball/mariadb-connector-c/libmariadb/mf_loadpath \
66 UnpackedTarball/mariadb-connector-c/libmariadb/mf_pack \
67 UnpackedTarball/mariadb-connector-c/libmariadb/mf_path \
68 UnpackedTarball/mariadb-connector-c/libmariadb/mf_unixpath \
69 UnpackedTarball/mariadb-connector-c/libmariadb/mf_wcomp \
70 UnpackedTarball/mariadb-connector-c/libmariadb/mulalloc \
71 UnpackedTarball/mariadb-connector-c/libmariadb/my_alloc \
72 UnpackedTarball/mariadb-connector-c/libmariadb/my_compress \
73 UnpackedTarball/mariadb-connector-c/libmariadb/my_div \
74 UnpackedTarball/mariadb-connector-c/libmariadb/my_error \
75 UnpackedTarball/mariadb-connector-c/libmariadb/my_fopen \
76 UnpackedTarball/mariadb-connector-c/libmariadb/my_fstream \
77 UnpackedTarball/mariadb-connector-c/libmariadb/my_getwd \
78 UnpackedTarball/mariadb-connector-c/libmariadb/my_init \
79 UnpackedTarball/mariadb-connector-c/libmariadb/my_lib \
80 UnpackedTarball/mariadb-connector-c/libmariadb/my_malloc \
81 UnpackedTarball/mariadb-connector-c/libmariadb/my_messnc \
82 UnpackedTarball/mariadb-connector-c/libmariadb/my_net \
83 UnpackedTarball/mariadb-connector-c/libmariadb/my_once \
84 UnpackedTarball/mariadb-connector-c/libmariadb/my_open \
85 UnpackedTarball/mariadb-connector-c/libmariadb/my_port \
86 UnpackedTarball/mariadb-connector-c/libmariadb/my_pthread \
87 UnpackedTarball/mariadb-connector-c/libmariadb/my_read \
88 UnpackedTarball/mariadb-connector-c/libmariadb/my_realloc \
89 UnpackedTarball/mariadb-connector-c/libmariadb/my_seek \
90 UnpackedTarball/mariadb-connector-c/libmariadb/my_static \
91 UnpackedTarball/mariadb-connector-c/libmariadb/my_symlink \
92 UnpackedTarball/mariadb-connector-c/libmariadb/my_thr_init \
93 UnpackedTarball/mariadb-connector-c/libmariadb/my_write \
94 UnpackedTarball/mariadb-connector-c/libmariadb/password \
95 UnpackedTarball/mariadb-connector-c/libmariadb/str2int \
96 UnpackedTarball/mariadb-connector-c/libmariadb/strcend \
97 UnpackedTarball/mariadb-connector-c/libmariadb/strcont \
98 UnpackedTarball/mariadb-connector-c/libmariadb/strend \
99 UnpackedTarball/mariadb-connector-c/libmariadb/strfill \
100 UnpackedTarball/mariadb-connector-c/libmariadb/string \
101 UnpackedTarball/mariadb-connector-c/libmariadb/strinstr \
102 UnpackedTarball/mariadb-connector-c/libmariadb/strmake \
103 UnpackedTarball/mariadb-connector-c/libmariadb/strmov \
104 UnpackedTarball/mariadb-connector-c/libmariadb/strnmov \
105 UnpackedTarball/mariadb-connector-c/libmariadb/strtoll \
106 UnpackedTarball/mariadb-connector-c/libmariadb/strtoull \
107 UnpackedTarball/mariadb-connector-c/libmariadb/strxmov \
108 UnpackedTarball/mariadb-connector-c/libmariadb/strxnmov \
109 UnpackedTarball/mariadb-connector-c/libmariadb/thr_mutex \
110 UnpackedTarball/mariadb-connector-c/libmariadb/typelib \
111 UnpackedTarball/mariadb-connector-c/libmariadb/sha1 \
112 UnpackedTarball/mariadb-connector-c/libmariadb/my_stmt \
113 UnpackedTarball/mariadb-connector-c/libmariadb/my_loaddata \
114 UnpackedTarball/mariadb-connector-c/libmariadb/my_stmt_codec \
115 UnpackedTarball/mariadb-connector-c/libmariadb/client_plugin \
116 UnpackedTarball/mariadb-connector-c/libmariadb/my_auth \
117 UnpackedTarball/mariadb-connector-c/libmariadb/ma_secure \
118 $(if $(filter $(OS),WNT), \
119 UnpackedTarball/mariadb-connector-c/win-iconv/win_iconv,) \
122 # vim: set noet sw=4 ts=4: