-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
27 lines (23 loc) · 853 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
project('imagev', 'cpp', version: '2.0', meson_version: '>= 1.1',
default_options: [
'b_lto=true', 'b_ndebug=if-release', 'cpp_std=c++17', 'warning_level=2',
])
if host_machine.system() == 'darwin'
add_languages('objcpp', native: false)
endif
cpp = meson.get_compiler('cpp')
config = configuration_data({
# std::filesystem::path is not available before macOS 10.15
'HAVE_STD_FILESYSTEM':
cpp.has_header_symbol('filesystem', 'std::filesystem::path::preferred_separator'),
})
glfw_dep = dependency('glfw3')
mpv_dep = dependency('mpv')
if config.get('HAVE_STD_FILESYSTEM')
boost_fs_dep = dependency('', required: false)
else
boost_fs_dep = dependency('boost', modules: ['filesystem'])
endif
icu_i18n_dep = dependency('icu-i18n', required: false)
icu_uc_dep = dependency('icu-uc', required: false)
subdir('src')