Repository navigation
Expand file tree
/
Copy pathmeson.build
More file actions
39 lines (33 loc) · 1.45 KB
/
Copy pathmeson.build
File metadata and controls
39 lines (33 loc) · 1.45 KB
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
project('ypdf', 'cpp', version : '0.0.1', license : 'GPL',
default_options : [ 'cpp_std=c++20' ])
includes = include_directories('include')
boost_deps = dependency('boost', modules : [
'filesystem', 'iostreams', 'system', 'program_options', 'unit_test_framework' ])
libjpeg_dep = dependency('libjpeg')
libturbojpeg_dep = dependency('libturbojpeg')
# Built from the pinned subprojects/libccittfax submodule -- not a system install
ccittfax_dep = subproject('libccittfax').get_variable('ccittfax_dep')
jbig2dec_dep = dependency('jbig2dec')
openjpeg_dep = dependency('libopenjp2')
# range-v3 is header-only and most distributions ship no pkg-config file for it
# (Arch installs only the CMake package config), so probe for a header when the
# .pc is absent. Undeclared, the missing headers surfaced as a fatal error deep
# in the compile instead of at configure time.
range_v3_dep = dependency('range-v3', required : false)
if not range_v3_dep.found()
if not meson.get_compiler('cpp').has_header('range/v3/algorithm/copy.hpp')
error('range-v3 headers not found -- install range-v3')
endif
range_v3_dep = declare_dependency()
endif
subdir('include')
subdir('src')
subdir('examples')
subdir('tools')
subdir('tests')
pkg_mod = import('pkgconfig')
pkg_mod.generate(libraries : libypdf,
version : '0.0.1',
name : 'libypdf',
filebase : 'ypdf',
description : 'Y another PDF library.')