24 Commits (902c1546a4c017308141414b5dacc5fbcd7af6ac)

Author SHA1 Message Date
FeRD (Frank Dana) ebd4e44004 Meson: Fix building conntest sample without curl 1 year ago
Miguel Borges de Freitas aa88bc4a43 Add EXIV2_ENABLE_FILESYSTEM_ACCESS option 2 years ago
Miguel Borges de Freitas 9f90144e89 Set conditional HTTP depending on EXIV2_ENABLE_WEBREADY 2 years ago
Rosen Penev 3a1baf0c0c meson: add po support 2 years ago
Rosen Penev ec561bb185 meson: use more subdir meson files
Makes the main one smaller.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2 years ago
Rosen Penev db25f13351 meson: fix png typos
Moved files in normal headers for simplicity.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2 years ago
Rosen Penev e61e3d5a8b meson: error on MSVCRT builds
MSVCRT requires wide string APIs, which were removed. Instead of dealing
with this, just error out on it. MSVCRT is deprecated anyway.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2 years ago
Rosen Penev 8361b92a50 meson: add fallback paths for iconv
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2 years ago
Rosen Penev 3caa9fc098 meson: increase minimum version to 0.54.1
0.54.1 fixed a bug with cmake config files which meson 1.1.0 warns on.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2 years ago
Miloš Komarčević b4179adab8
Merge pull request #2472 from Exiv2/fix_soversion
Fix shared object versioning
2 years ago
Rosen Penev e00c1f5529 meson: fix UCRT check
get_define() is broken for C++ compilers.
2 years ago
Rosen Penev a6766b208e meson: only define MinGW stuff for non UCRT
time_t is 64-bit with UCRT.

__USE_MINGW_ANSI_STDIO is used only to get proper printf formats under
msvcrt. UCRT has them. Hence why it's deprecated.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2 years ago
Rosen Penev c42c7fa9ac meson: build iconv with FreeBSD
Bug was fixed.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2 years ago
Miloš Komarčević dd48bb13ee Add equivalent soversion to meson build 2 years ago
Rosen Penev b92b121532 meson: remove now unused checks
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2 years ago
Rosen Penev 632536a55a meson: build samples
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2 years ago
Eli Schwartz 2108ae671a meson: compile convert.cpp separately, with just iconv
Compiling this file with all dependencies as part of the main library
causes it to have the include directories of all dependencies, but iconv
is a bit of a special case: it can have a libc builtin or an external
library version. The external library might be installed to the same
directory as other dependencies, for example on FreeBSD -- but if exiv2
is not supposed to be built with GNU libiconv, then it will expect to
see the libc builtin.

The leaky include directories means that iconv.h gets pulled in from the
GNU libiconv version instead, though, which then forces -liconv to be
necessary for no reason.

There are two general solutions to ensuring that everything links
correctly:

- expect exiv2 to be built with *global* -I/usr/local/include -L/usr/local/lib
  thus forcing the use of GNU libiconv

- carefully compiling the iconv support without any other dependencies

Let's do the latter since it allows for more choice and is easier to
enforce.
2 years ago
Rosen Penev 4a26eba0d9 fix compilation under FreeBSD
sys headers must come before libprocstat

meson is missing a libprocstat dependency. iconv is also broken with
meson and freebsd.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2 years ago
Rosen Penev c5c8a6101e meson: move warning/sanitizer stuff to CI
No need when building normally.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2 years ago
Rosen Penev 52ab999151 meson: add unit tests
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2 years ago
Rosen Penev 8310b48552 meson: split off internal library
Necessary for the Unit Tests.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2 years ago
Rosen Penev 976dcd8e7b meson: bump warning level
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2 years ago
Rosen Penev 3457b82140 meson: add support for linux libc++fs
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2 years ago
Rosen Penev 063a99b3c3 add meson build
This is a fairly basic meson file that builds only the library. Useful
for stuff like WrapDB.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2 years ago