-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
meson is a build system focused on speed an ease of use, which helps speeding up the software development. This patch adds meson support along autotools.
- Loading branch information
Showing
39 changed files
with
1,144 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
policy = 'org.freedesktop.policykit.policy' | ||
|
||
custom_target( | ||
policy, | ||
input: policy + '.in', | ||
output: '@BASENAME@', | ||
command: intltool_xml_cmd, | ||
install: true, | ||
install_dir: pk_pkgactiondir, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
service_conf = {'libprivdir': pk_prefix / pk_pkglibdir} | ||
|
||
configure_file( | ||
input: 'org.freedesktop.PolicyKit1.service.in', | ||
output: '@BASENAME@', | ||
configuration: service_conf, | ||
install: true, | ||
install_dir: dbus_system_bus_services_dir, | ||
) | ||
|
||
configure_file( | ||
input: 'org.freedesktop.PolicyKit1.conf.in', | ||
output: '@BASENAME@', | ||
configuration: {'polkitd_user': polkitd_user}, | ||
install: true, | ||
install_dir: dbus_policydir, | ||
) | ||
|
||
if enable_pam | ||
configure_file( | ||
input: 'polkit-1.in', | ||
output: '@BASENAME@', | ||
configuration: pam_conf, | ||
install: true, | ||
install_dir: pk_sysconfdir / 'pam.d', | ||
) | ||
endif | ||
|
||
its_data = files( | ||
'polkit.its', | ||
'polkit.loc', | ||
) | ||
|
||
install_data( | ||
its_data, | ||
install_dir: pk_datadir / 'gettext/its', | ||
) | ||
|
||
if enable_logind | ||
configure_file( | ||
input: 'polkit.service.in', | ||
output: '@BASENAME@', | ||
configuration: service_conf, | ||
install: true, | ||
install_dir: systemd_systemdsystemunitdir, | ||
) | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
|
||
SUBDIRS = man polkit | ||
|
||
EXTRA_DIST = version.xml.in | ||
EXTRA_DIST = \ | ||
version.xml.in \ | ||
meson.build \ | ||
$(NULL) | ||
|
||
-include $(top_srcdir)/git.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ EXTRA_DIST = \ | |
pkcheck.xml \ | ||
pkaction.xml \ | ||
pkttyagent.xml \ | ||
meson.build \ | ||
$(NULL) | ||
|
||
clean-local: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
xsltproc = find_program('xsltproc', required: false) | ||
assert(xsltproc.found(), 'xsltproc is required for man pages generation') | ||
|
||
xsltproc_cmd = [ | ||
xsltproc, | ||
'--output', '@OUTPUT@', | ||
'--nonet', | ||
'--stringparam', 'man.base.url.for.relative.links', pk_api_docpath + '/', | ||
'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl', | ||
'@INPUT@', | ||
] | ||
|
||
mans = [ | ||
['polkit', '8'], | ||
['polkitd', '8'], | ||
['pkexec', '1'], | ||
['pkcheck', '1'], | ||
['pkaction', '1'], | ||
['pkttyagent', '1'], | ||
] | ||
|
||
foreach man: mans | ||
xml = files(man[0] + '.xml') | ||
content_files += xml | ||
|
||
output = '@0@.@1@'.format(man[0], man[1]) | ||
|
||
custom_target( | ||
output, | ||
input: xml, | ||
output: output, | ||
command: xsltproc_cmd, | ||
install: true, | ||
install_dir: pk_mandir / ('man' + man[1]), | ||
) | ||
endforeach |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
pk_api_docpath = pk_prefix / gnome.gtkdoc_html_dir(pk_api_name) | ||
|
||
enable_man = get_option('man') | ||
if enable_man | ||
subdir('man') | ||
endif | ||
|
||
enable_gtk_doc = get_option('gtk_doc') | ||
if enable_gtk_doc | ||
content_files += configure_file( | ||
input: 'extensiondir.xml.in', | ||
output: '@BASENAME@', | ||
configuration: {'libdir': pk_prefix / pk_libdir}, | ||
) | ||
|
||
content_files += configure_file( | ||
input: 'version.xml.in', | ||
output: '@BASENAME@', | ||
configuration: {'VERSION': pk_version}, | ||
) | ||
|
||
html_images = files( | ||
'polkit-architecture.png', | ||
'polkit-authentication-agent-example.png', | ||
'polkit-authentication-agent-example-wheel.png', | ||
) | ||
|
||
subdir('polkit') | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
doc_module = pk_api_name | ||
|
||
src_dirs = [ | ||
source_root / 'src/polkit', | ||
source_root / 'src/polkitagent', | ||
] | ||
|
||
private_headers = [ | ||
'polkitagenthelperprivate.h', | ||
'polkitprivate.h', | ||
] | ||
|
||
content_files += files( | ||
'docbook-interface-org.freedesktop.PolicyKit1.AuthenticationAgent.xml', | ||
'docbook-interface-org.freedesktop.PolicyKit1.Authority.xml', | ||
) | ||
|
||
gnome.gtkdoc( | ||
doc_module, | ||
main_xml: doc_module + '-docs.xml', | ||
src_dir: src_dirs, | ||
ignore_headers: private_headers, | ||
dependencies: libpolkit_agent_dep, | ||
namespace: meson.project_name(), | ||
html_assets: html_images, | ||
fixxref_args: '--html-dir=' + pk_api_docpath, | ||
gobject_typesfile: files(doc_module + '.types'), | ||
content_files: content_files, | ||
install: true, | ||
) |
Oops, something went wrong.