1 ## SPDX-License-Identifier: GPL-2.0-only
3 # Documentation: https://mesonbuild.com/Qt5-module.html
5 qt5_dep = dependency('qt5', modules : ['Core', 'Widgets', 'Svg'])
6 yamlcpp_dep = dependency('yaml-cpp', version: '>= 0.5.1', required: true)
9 # lang_cpp = qt5.compile_translations(qresource: 'lang.qrc')
11 generated_files = qt5.preprocess(
12 moc_headers : ['MainWindow.h', 'AboutDialog.h', 'ToggleSwitch.h'],
13 ui_files : ['MainWindow.ui', 'AboutDialog.ui'],
14 dependencies : [qt5_dep],
15 qresources : ['resources.qrc'],
18 mock = get_option('mock')
21 add_project_arguments('-DMOCK', language : 'cpp')
24 executable('coreboot-configurator',
33 dependencies : [qt5_dep, yamlcpp_dep],