Browse Source

install example config

Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
Stephan Lachnit 4 years ago
parent
commit
43911a8919
2 changed files with 7 additions and 0 deletions
  1. 6 0
      example/meson.build
  2. 1 0
      meson.build

+ 6 - 0
example/meson.build

@@ -11,3 +11,9 @@ executable(
     install: true,
     install_dir: path_bindir,
 )
+
+# An example configuration
+install_data(
+    files('gamemode.ini'),
+    install_dir: path_sysconfdir,
+)

+ 1 - 0
meson.build

@@ -77,6 +77,7 @@ path_datadir = join_paths(path_prefix, get_option('datadir'))
 path_includedir = join_paths(path_prefix, get_option('includedir'))
 path_libdir = join_paths(path_prefix, get_option('libdir'))
 path_libexecdir = join_paths(path_prefix, get_option('libexecdir'))
+path_sysconfdir = join_paths(path_prefix, get_option('sysconfdir'))
 
 # Find systemd via pkgconfig
 with_systemd = get_option('with-systemd')