Skip to content

Commit 60ad855

Browse files
committed
build: Use debugoptimized, remove some obsolete meson bits.
1 parent a9a7f1e commit 60ad855

File tree

2 files changed

+6
-41
lines changed

2 files changed

+6
-41
lines changed

debian/rules

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ override_dh_strip:
1212
override_dh_auto_configure:
1313
dh_auto_configure -- \
1414
--libexecdir=lib/$(DEB_HOST_MULTIARCH)/cinnamon-screensaver \
15-
-D use-debian-pam=true
15+
--buildtype=debugoptimized \
16+
-D use-debian-pam=true \
1617

1718
# there has never been a testsuite, so don't try running it and breaking
1819
# just because there isn't one

libcscreensaver/meson.build

Lines changed: 4 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -104,47 +104,11 @@ dbus_files = [
104104
]
105105

106106
dbus_built = []
107-
# foreach dbus: dbus_files
108-
# dbus_built += gnome.gdbus_codegen(dbus[0], '@[email protected]'.format(dbus[2]),
109-
# namespace: 'Cs',
110-
# annotations: dbus[1]
111-
# )
112-
# endforeach
113-
114-
# FIXME: Ugly workaround that simulates the generation of
115-
# two different targets, so headers can be included
116-
# explicitly for introspection.
117-
#
118-
# This can be removed once all platforms use meson >=.46
119-
# and replaced with gnome.gdbus_codegen
120-
codegen = find_program('g-codegen.py')
121-
122107
foreach dbus: dbus_files
123-
annotations = []
124-
125-
foreach item: dbus[1]
126-
annotations += '--annotate'
127-
annotations += item
128-
endforeach
129-
130-
annotations_string = ' '.join(annotations)
131-
132-
generated = custom_target(
133-
dbus[0],
134-
input: '@[email protected]'.format(dbus[2]),
135-
output: ['@[email protected]'.format(dbus[0]), '@[email protected]'.format(dbus[0])],
136-
command: [
137-
codegen,
138-
dbus[2],
139-
dbus[0],
140-
annotations_string,
141-
meson.current_build_dir(),
142-
'@INPUT@', '@OUTPUT@'
143-
]
144-
)
145-
146-
dbus_built += generated[0]
147-
dbus_built += generated[1]
108+
dbus_built += gnome.gdbus_codegen(dbus[0], '@[email protected]'.format(dbus[2]),
109+
namespace: 'Cs',
110+
annotations: dbus[1]
111+
)
148112
endforeach
149113

150114
# non-pam auth implementations are not implemented at this time

0 commit comments

Comments
 (0)