-
Notifications
You must be signed in to change notification settings - Fork 2
/
meson.build
44 lines (35 loc) · 945 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
39
40
41
42
43
44
project(
'Archive Qt',
'c',
'cpp',
version: '2.0.8',
license: 'GPLv3',
meson_version: '>=0.59.0',
default_options: [
'cpp_std=c++17',
'c_std=c11',
'warning_level=2',
'werror=false',
],
)
add_global_arguments( '-DPROJECT_VERSION=' + meson.project_version(), language : 'cpp' )
add_global_arguments( '-fPIC', language : 'cpp' )
Zlib = dependency( 'zlib' )
Lzma = dependency( 'liblzma' )
BZip = meson.get_compiler( 'cpp' ).find_library( 'bz2' )
Archive = dependency( 'libarchive' )
if get_option('use_qt_version') == 'qt5'
Qt = import( 'qt5' )
QtCore = dependency( 'Qt5Core' )
TgtName = 'archiveqt5'
elif get_option('use_qt_version') == 'qt6'
Qt = import( 'qt6' )
QtCore = dependency( 'Qt6Core' )
TgtName = 'archiveqt6'
endif
Deps = [ QtCore, Zlib, Lzma, BZip, Archive ]
Includes = include_directories( 'lib' )
# Contains the main library
subdir( 'lib' )
# Contains the archvier cli app
subdir( 'archiver' )