-
Notifications
You must be signed in to change notification settings - Fork 4
/
meson.build
38 lines (32 loc) · 991 Bytes
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
project('capypdf', 'cpp', 'c',
version: '0.13.0',
meson_version: '>=1.5',
default_options : ['cpp_std=c++23,c++latest', 'default_library=static'])
version = meson.project_version()
varr = version.split('.')
cdata = configuration_data()
cdata.set_quoted('CAPYPDF_VERSION_STR', version)
cdata.set('CAPYPDF_VERSION_MAJOR', varr[0])
cdata.set('CAPYPDF_VERSION_MINOR', varr[1])
cdata.set('CAPYPDF_VERSION_MICRO', varr[2])
soversion = 0
header_install_subdir = 'capypdf-@0@'.format(soversion)
png_dep = dependency('libpng')
zlib_dep = dependency('zlib')
lcms_dep = dependency('lcms2')
jpeg_dep = dependency('libjpeg')
freetype_dep = dependency('freetype2')
tiff_dep = dependency('libtiff-4')
pubinc = include_directories('include')
subdir('include')
subdir('src')
if get_option('devtools')
subdir('devtools')
endif
subdir('python')
subdir('test')
pkg_mod = import('pkgconfig')
pkg_mod.generate(capypdf_lib,
name: 'capypdf',
filebase: 'capypdf',
subdirs: header_install_subdir)