-
Notifications
You must be signed in to change notification settings - Fork 2
/
meson.build
52 lines (39 loc) · 1.41 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
43
44
45
46
47
48
49
50
51
52
project('dact', 'cpp',
default_options: ['cpp_std=c++11'],
version: '3.0.0')
cpp = meson.get_compiler('cpp')
is_darwin = host_machine.system() == 'darwin'
if is_darwin
add_languages('objcpp')
add_global_arguments('-std=c++11', language : 'objcpp')
appkit = dependency('appleframeworks', modules : 'appkit')
use_sandboxing = get_option('use_sandboxing')
endif
alpinocorpus_dep = dependency('alpinocorpus')
libexslt_dep = dependency('libexslt')
libxml_dep = dependency('libxml-2.0')
libxslt_dep = dependency('libxslt')
zlib_dep = dependency('zlib')
qt5 = import('qt5')
qt5_dep = dependency('qt5', modules: ['Concurrent', 'Core', 'Gui', 'Network', 'PrintSupport', 'Widgets'])
dbxml_bundle = get_option('dbxml_bundle')
if dbxml_bundle == 'system'
xercesc_dep = dependency('xerces-c')
xqilla_dep = cpp.find_library('xqilla',
has_headers: 'xqilla/xqilla-simple.hpp')
dbxml_rpath = ''
else
bundle_inc = include_directories(dbxml_bundle / 'include')
xercesc_lib = cpp.find_library('xerces-c', dirs: dbxml_bundle / 'lib')
xercesc_dep = declare_dependency(include_directories: bundle_inc,
dependencies: xercesc_lib)
xqilla_lib = cpp.find_library('xqilla', dirs: dbxml_bundle / 'lib')
xqilla_dep = declare_dependency(include_directories: bundle_inc,
dependencies: xqilla_lib)
dbxml_rpath = dbxml_bundle / 'lib'
endif
subdir('include')
subdir('man')
subdir('resources')
subdir('ui')
subdir('src')