-project('nageru', 'cpp', default_options: ['buildtype=debugoptimized'])
+project('nageru', 'cpp', default_options: ['buildtype=debugoptimized'], version: '1.8.0-pre')
cxx = meson.get_compiler('cpp')
endif
add_project_arguments('-DMOVIT_SHADER_DIR="' + r.stdout().strip() + '"', language: 'cpp')
+# Make the Nageru version available as a #define.
+add_project_arguments('-DNAGERU_VERSION="' + meson.project_version() + '"', language: 'cpp')
+
# DeckLink has these issues, and we include it from various places.
if cxx.has_argument('-Wno-non-virtual-dtor')
add_project_arguments('-Wno-non-virtual-dtor', language: 'cpp')
: ui(new Ui::AboutDialog)
{
ui->setupUi(this);
+ QString str = ui->header->text();
+ str.replace("@NAGERU_VERSION@", NAGERU_VERSION);
+ ui->header->setText(str);
connect(ui->button_box, &QDialogButtonBox::accepted, [this]{ this->close(); });
}
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
- <widget class="QLabel" name="label">
+ <widget class="QLabel" name="header">
<property name="text">
- <string><p><b>Nageru 1.7.5</b></p>
+ <string><p><b>Nageru @NAGERU_VERSION@</b></p>
<p>Realtime video mixer</p></string>
</property>