-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeson.build
33 lines (25 loc) · 1.11 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
project('BLauncher', 'cpp', version: '2.0',
subproject_dir: 'libs', meson_version: '>=0.60',
default_options: ['buildtype=release', 'strip=true',
'b_lto=true', 'cpp_rtti=false',
'warning_level=3', 'cpp_std=c++20'])
qt5 = import('qt5')
gui = qt5.compile_ui(sources: ['gui/main.ui'])
deps = [
dependency('threads', static: get_option('static')),
dependency('qt5', version: '>=5.15', modules: ['Core','Gui','Widgets'], static: get_option('static'))
]
dir_install = meson.current_source_dir() / 'build_output'
install_subdir('assets', strip_directory: true,
install_dir: dir_install/'assets')
install_subdir('themes', strip_directory: true,
install_dir: dir_install/'themes')
exe_name = 'BLauncher_v' + meson.project_version()
bl_exe = executable(
exe_name,'src/main.cpp',
gui, dependencies: deps,
install: true,
install_dir: dir_install,
cpp_args: ['-Wno-unused-variable',
'-Wno-unused-parameter',
'-Wno-ignored-attributes'])