-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmeson.build
More file actions
27 lines (25 loc) · 769 Bytes
/
meson.build
File metadata and controls
27 lines (25 loc) · 769 Bytes
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(
'pakfu',
'cpp',
version: run_command(
'python',
'-c',
'from pathlib import Path; print(Path("VERSION").read_text().strip())',
check: true
).stdout().strip(),
default_options: [
'cpp_std=c++20',
'warning_level=2',
'werror=false',
],
)
qt6_modules = ['Core', 'Gui', 'Widgets', 'OpenGL', 'OpenGLWidgets', 'Network', 'Multimedia', 'MultimediaWidgets']
qt6 = import('qt6')
qt6_dep = dependency('qt6', modules: qt6_modules, method: 'config-tool', required: false)
if not qt6_dep.found()
qt6_dep = dependency('qt6', modules: qt6_modules, method: 'pkg-config', required: false)
endif
if not qt6_dep.found()
error('Qt 6 not found. Install Qt 6 and ensure qmake6 is on PATH or pkg-config is available.')
endif
subdir('src')