mirror of
https://github.com/systemd/systemd.git
synced 2024-11-28 12:53:36 +08:00
b0faead250
To successfully extract strings from our .policy files, gettext needs polkit.{its,loc} files provided by policykit-devel. When that package is not installed, systemd-pot would fail to extract strings: [0/1] Running external command systemd-pot. xgettext: warning: file 'src/core/org.freedesktop.systemd1.policy.in.in' extension 'policy' is unknown; will try C xgettext: warning: file 'src/hostname/org.freedesktop.hostname1.policy.in' extension 'policy' is unknown; will try C ... We now don't need the .its and .loc files for normal building, but they are still useful when generating the .pot file, because that way we avoid the dependency on sufficiently new polkit. We just need to tell i18n to pass their location to xgettext.
22 lines
845 B
Meson
22 lines
845 B
Meson
# SPDX-License-Identifier: LGPL-2.1+
|
|
#
|
|
# Copyright 2017 Zbigniew Jędrzejewski-Szmek
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# systemd is distributed in the hope that it will be useful, but
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
# Lesser General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
# along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
i18n = import('i18n')
|
|
i18n.gettext(meson.project_name(),
|
|
preset : 'glib',
|
|
data_dirs : '.')
|