diff options
author | Niels De Graef <nielsdegraef@gmail.com> | 2020-04-30 19:52:28 +0000 |
---|---|---|
committer | Ray Strode <halfline@gmail.com> | 2020-04-30 19:52:28 +0000 |
commit | fb0c97485d90a37ecd870810d2152c7442a9e84c (patch) | |
tree | 3fb017a34a89bd236d9b30cb72dbc1a7b80e1c1c /data/dconf | |
parent | de884de7b69647bead3081222aa1c2be443e351f (diff) | |
download | gdm-fb0c97485d90a37ecd870810d2152c7442a9e84c.tar.gz |
data: switch gdm.service.in to use cmake format
We're going to be switching to meson, and meson doesn't
deal too well with an @ in the configuration file that's not
part of a substitution variable.
This commit switches the gdm service over to use a cmake style
of substitution variables, so we can later tell meson to use
configure in cmake mode and workaround the @ confusion.
Diffstat (limited to 'data/dconf')
-rw-r--r-- | data/dconf/meson.build | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/data/dconf/meson.build b/data/dconf/meson.build new file mode 100644 index 00000000..8ce18d69 --- /dev/null +++ b/data/dconf/meson.build @@ -0,0 +1,25 @@ +gdm_dconf = configure_file( + input: 'gdm.in', + output: '@BASENAME@', + configuration: { + 'DATADIR': gdm_prefix / get_option('datadir'), + 'PACKAGE': meson.project_name(), + }, + install_dir: get_option('datadir') / 'dconf' / 'profile', +) + +greeter_dconf_defaults = custom_target('greeter-dconf-defaults', + output: 'greeter-dconf-defaults', + input: files( + 'defaults/00-upstream-settings', + 'defaults/locks/00-upstream-settings-locks', + ), + command: [ + find_program('dconf'), + 'compile', + '@OUTPUT@', + meson.current_source_dir() / 'defaults', + ], + install: true, + install_dir: get_option('datadir') / meson.project_name(), +) |