-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmeson.build
42 lines (35 loc) · 1.11 KB
/
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
39
40
41
42
project('capypdf', 'cpp', 'c',
version: '0.15.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
add_project_arguments('-D_GLIBCXX_ASSERTIONS', '-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST',
language: 'cpp')
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('benchmark')
subdir('test')
pkg_mod = import('pkgconfig')
pkg_mod.generate(capypdf_lib,
name: 'capypdf',
filebase: 'capypdf',
subdirs: header_install_subdir)