Skip to content
Snippets Groups Projects
Verified Commit 2fb11f25 authored by Bruce Cowan's avatar Bruce Cowan :airplane:
Browse files

Better configuration file handling

parent 35b43d38
No related branches found
No related tags found
No related merge requests found
......@@ -16,15 +16,12 @@ gtk_dep = dependency('gtk4', version: '>= 4.0')
conf = configuration_data()
conf.set_quoted('VERSION','@VCS_TAG@')
config_h = declare_dependency(
sources: vcs_tag(
input: configure_file(
output: 'config.h.in',
configuration: conf
),
output: 'config.h',
)
config_h = vcs_tag(
input: configure_file(
output: 'config.h.in',
configuration: conf
),
output: 'config.h',
)
cflags = []
......
......@@ -3,7 +3,7 @@
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#include "config.h"
#include <config.h>
#include "rugby-app-window.h"
#include "rugby-pref-window.h"
......
......@@ -11,7 +11,7 @@ sources = [
]
executable('rugby',
sources, resources, compiled_schemas,
dependencies: [config_h, gio_dep, gtk_dep],
sources, config_h, resources, compiled_schemas,
dependencies: [gio_dep, gtk_dep],
install_dir: get_option('bindir'),
install: true)
......@@ -4,7 +4,7 @@
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#include "config.h"
#include <config.h>
#include "rugby-app-window.h"
#include "rugby-list-store.h"
......
......@@ -4,7 +4,7 @@
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#include "config.h"
#include <config.h>
#include "rugby-possibility-widget.h"
......
......@@ -4,7 +4,7 @@
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#include "config.h"
#include <config.h>
#include "rugby-possibility.h"
struct _RugbyPossibility
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment