Commit 617d4475 authored by Christian Hergert's avatar Christian Hergert

build: add with_channel build option

We need this so that we can display which channel the user is running
from the About dialog. This can be useful to us when debugging.
parent f55b4e2f
......@@ -40,6 +40,14 @@
*/
#define IDE_BUILD_TYPE @BUILD_TYPE@
/**
* IDE_BUILD_CHANNEL:
*
* The release channel of Builder. This should be a string such as
* "other", "flatpak-stable", or "flatpak-nightly".
*/
#define IDE_BUILD_CHANNEL @BUILD_CHANNEL@
/**
* IDE_MAJOR_VERSION:
*
......
......@@ -5,6 +5,7 @@ version_data.set('MAJOR_VERSION', MAJOR_VERSION)
version_data.set('MINOR_VERSION', MINOR_VERSION)
version_data.set('MICRO_VERSION', MICRO_VERSION)
version_data.set('VERSION', meson.project_version())
version_data.set_quoted('BUILD_CHANNEL', get_option('with_channel'))
version_data.set_quoted('BUILD_TYPE', get_option('buildtype'))
libide_version_h = configure_file(
......
......@@ -6,6 +6,7 @@ project('gnome-builder', 'c',
'c_std=gnu11',
'cpp_std=c++11',
'warning_level=2',
'with_channel=other',
],
)
......
......@@ -5,6 +5,12 @@ option('enable_rdtscp', type: 'boolean', value: false,
description: 'High performance counters'
)
option('with_channel',
type: 'combo',
choices: [ 'other', 'flatpak-stable', 'flatpak-nightly' ],
description: 'The distribution channel for Builder',
)
option('with_editorconfig', type: 'boolean')
option('with_webkit', type: 'boolean')
option('with_introspection', type: 'boolean')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment