Skip to content

Commit 76d684c

Browse files
committed
meson: remove cmake config and fix pkgconfig
exiv2lib_export.h in meson is implemented as an empty file and the EXIVAPI definitions are handled by passing -D to the compiler. Add it to the pkgconf file to make it work. For cmake configuration, there's no easy way to handle this. Because meson's support is limited, a full blown cmake configuration file needs to be written for this purpose. Instead of trying to make it work, simpler to remove and tell people to use pkgconfig. Signed-off-by: Rosen Penev <[email protected]>
1 parent d4900fc commit 76d684c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/meson.build

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,12 @@ if host_machine.system() == 'windows' and get_option('default_library') != 'stat
116116
dllapi = '-DEXIV2API=__declspec(dllimport)'
117117
endif
118118

119-
cmake = import('cmake')
120-
cmake.write_basic_package_version_file(
121-
name: meson.project_name(),
122-
version: meson.project_version(),
123-
)
124-
125119
pkg = import('pkgconfig')
126120
pkg.generate(
127121
exiv2,
128122
description: 'Exif/IPTC/Xmp C++ metadata library and tools plus ICC Profiles, Previews and more.',
129123
url: 'https://exiv2.org',
124+
extra_cflags: dllapi,
130125
)
131126

132127
exiv2_dep = declare_dependency(

0 commit comments

Comments
 (0)