From fb0c97485d90a37ecd870810d2152c7442a9e84c Mon Sep 17 00:00:00 2001 From: Niels De Graef Date: Thu, 30 Apr 2020 19:52:28 +0000 Subject: 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. --- common/meson.build | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 common/meson.build (limited to 'common') diff --git a/common/meson.build b/common/meson.build new file mode 100644 index 00000000..074dd92e --- /dev/null +++ b/common/meson.build @@ -0,0 +1,43 @@ +libgdmcommon_src = files( + 'gdm-address.c', + 'gdm-common.c', + 'gdm-log.c', + 'gdm-profile.c', + 'gdm-settings-backend.c', + 'gdm-settings-desktop-backend.c', + 'gdm-settings-direct.c', + 'gdm-settings-utils.c', + 'gdm-settings.c', +) + +libgdmcommon_deps = [ + libsystemd_dep, + gobject_dep, + gio_dep, + gio_unix_dep, +] + +if libselinux_dep.found() + libgdmcommon_deps += libselinux_dep +endif + +libgdmcommon_lib = static_library('gdmcommon', + libgdmcommon_src, + dependencies: libgdmcommon_deps, + include_directories: config_h_dir, +) + +libgdmcommon_dep = declare_dependency( + link_with: libgdmcommon_lib, + dependencies: libgdmcommon_deps, + include_directories: include_directories('.'), +) + +install_data('gdb-cmd') + +# test-log exectuable +test_log = executable('test-log', + 'test-log.c', + dependencies: libgdmcommon_dep, + include_directories: config_h_dir, +) -- cgit v1.2.1