-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
66 lines (58 loc) · 1.94 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
53
54
55
56
57
58
59
60
61
62
63
64
65
project('LibJR', 'cpp',
default_options: [
'cpp_std=c++20',
'cpp_eh=none',
'cpp_rtti=false',
'default_library=static',
'warning_level=3',
'buildtype=release'
])
if not meson.is_subproject()
add_global_arguments('-Wno-c99-designator', language: 'cpp')
add_global_arguments('-Wno-c99-extensions', language: 'cpp')
add_global_arguments('-Wno-gnu-zero-variadic-macro-arguments', language: 'cpp')
add_global_arguments('-Wno-keyword-macro', language: 'cpp')
add_global_arguments('-Wno-gnu-conditional-omitted-operand', language: 'cpp')
add_global_arguments('-Wno-format-pedantic', language: 'cpp')
add_global_arguments('-Wno-nullability-extension', language: 'cpp')
add_global_arguments('-Wno-gnu-statement-expression', language: 'cpp')
add_global_arguments('-Wno-gnu-anonymous-struct', language: 'cpp')
add_global_arguments('-Wno-c++2b-extensions', language: 'cpp')
add_global_arguments('-fdebug-prefix-map=../=', language: 'cpp')
add_global_arguments('-ffile-prefix-map=../=', language: 'cpp')
endif
libJR_lib = library('JR', [
'JR/StringView.cpp',
'JR/String.cpp',
],
include_directories: ['.'])
libJR_dep = declare_dependency(
link_with: libJR_lib,
include_directories: '.')
libMain_lib = static_library('Main', [
'Main/Main.cpp'
],
include_directories: ['.'],
dependencies: libJR_dep)
libMain_dep = declare_dependency(
link_with: libMain_lib,
include_directories: '.')
libCore_lib = library('Core', [
'Core/Folder.cpp',
'Core/MappedFile.cpp',
'Core/System.cpp',
'Core/Threads.cpp',
],
include_directories: ['.'],
dependencies: libJR_dep)
libCore_dep = declare_dependency(
link_with: libCore_lib,
include_directories: '.')
libCli_lib = library('Cli',
'Cli/ArgumentParser.cpp',
'Cli/ProgressBar.cpp',
include_directories: ['.'],
dependencies: libJR_dep)
libCli_dep = declare_dependency(
link_with: libCli_lib,
include_directories: '.')