-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
54 lines (48 loc) · 1.86 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
project(
'fast-logi-channel-switcher',
'cpp',
default_options: ['warning_level=3', 'cpp_std=c++20', 'default_library=static'],
license : 'MIT',
meson_version: '>=1.0.0',
version: '0.0.1',
)
conf_data = configuration_data({
'PROGRAM': '"' + meson.project_name() + '"',
'VERSION': '"' + meson.project_version() + '"',
})
configure_file(
output : 'config.h',
configuration : conf_data,
)
configuration_inc = include_directories('.')
hidapi = subproject('hidapi', default_options: ['cpp_std=c++20','default_library=static'])
absl = subproject('abseil-cpp', default_options: ['cpp_std=c++20', 'default_library=static'])
fmt = subproject('fmt', default_options: ['cpp_std=c++20', 'default_library=static'])
cxxopts = subproject('cxxopts', default_options: ['cpp_std=c++20', 'default_library=static'])
nlohmann_json = subproject('nlohmann_json', default_options: ['cpp_std=c++20', 'default_library=static'])
ftxui = subproject('ftxui', default_options: ['cpp_std=c++20', 'default_library=static'])
dependencies = [
hidapi.get_variable('hidapi_dep'),
fmt.get_variable('fmt_dep'),
absl.get_variable('absl_debugging_dep'),
absl.get_variable('absl_base_dep'),
absl.get_variable('absl_crc_dep'),
absl.get_variable('absl_strings_dep'),
absl.get_variable('absl_synchronization_dep'),
absl.get_variable('absl_status_dep'),
absl.get_variable('absl_log_dep'),
cxxopts.get_variable('cxxopts_dep'),
nlohmann_json.get_variable('nlohmann_json_dep'),
ftxui.get_variable('screen_dep'),
ftxui.get_variable('dom_dep'),
ftxui.get_variable('component_dep'),
]
sources = [
'src/device_config.cc',
'src/hid_utils.cc',
'src/logitech_devices.cc',
'src/main.cc',
'src/tui.cc',
'src/utils.cc',
]
executable(meson.project_name(), sources: sources, dependencies: dependencies, include_directories : configuration_inc)