Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
68 additions
and
298 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,31 @@ | ||
Reason: Fix crossbuilding GIR | ||
Upstream: No, not upstreamable since this is very specific to the Void setup | ||
diff --git clients/common/meson.build clients/common/meson.build | ||
index afa257b..50b53e7 100644 | ||
--- clients/common/meson.build | ||
+++ clients/common/meson.build | ||
@@ -35,7 +35,7 @@ if enable_introspection | ||
settings_docs, | ||
input: nm_property_docs, | ||
output: settings_docs, | ||
- command: [xsltproc, '--output', '@OUTPUT@', join_paths(meson.current_source_dir(), 'settings-docs.xsl'), '@INPUT@'], | ||
+ command: [xsltproc, '--output', '@OUTPUT@', join_paths(meson.current_source_dir(), 'settings-docs.xsl'), join_paths(meson.current_source_dir(), '..', '..', '@INPUT@')], | ||
) | ||
Index: b/libnm/meson.build | ||
=================================================================== | ||
--- a/libnm/meson.build | ||
+++ b/libnm/meson.build | ||
@@ -274,13 +274,23 @@ if enable_introspection | ||
'LD_LIBRARY_PATH=' + ld_library_path, | ||
] | ||
|
||
test( | ||
diff --git libnm/meson.build libnm/meson.build | ||
index 51ca46d..f14d861 100644 | ||
--- libnm/meson.build | ||
+++ libnm/meson.build | ||
@@ -236,7 +236,13 @@ if enable_introspection | ||
) | ||
endif | ||
|
||
- generate_setting_docs = join_paths(meson.current_source_dir(), 'generate-setting-docs.py') | ||
+ if meson.is_cross_build() | ||
+ qemu = '/usr/bin/qemu-@XBPS_TARGET_QEMU_MACHINE@-static' | ||
+ qemu_python3_cmd = qemu + ' -L @XBPS_CROSS_BASE@ @XBPS_CROSS_BASE@/usr/bin/python3' | ||
+ generate_setting_docs = ['sh', '-c', qemu_python3_cmd, join_paths(meson.current_source_dir(), 'generate-setting-docs.py')] | ||
+ qemu_python3_cmd = [ | ||
+ '/usr/bin/qemu-@XBPS_TARGET_QEMU_MACHINE@-static', | ||
+ '-L', '@XBPS_CROSS_BASE@', | ||
+ '@XBPS_CROSS_BASE@/usr/bin/python3' | ||
+ ] | ||
+ else | ||
+ generate_setting_docs = [python.path(), join_paths(meson.current_source_dir(), 'generate-setting-docs.py')] | ||
+ qemu_python3_cmd = python.path() | ||
+ endif | ||
|
||
gi_typelib_path = run_command('printenv', 'GI_TYPELIB_PATH').stdout() | ||
if gi_typelib_path != '' | ||
@@ -261,7 +267,7 @@ if enable_introspection | ||
name, | ||
+ | ||
nm_settings_docs_xml_gir = custom_target( | ||
'nm-settings-docs-gir.xml', | ||
input: libnm_gir[0], | ||
output: name, | ||
- command: [generate_setting_docs_env, python.path(), generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT@', '--output', '@OUTPUT@'], | ||
+ command: [generate_setting_docs_env, generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT@', '--output', '@OUTPUT@'], | ||
depends: libnm_gir, | ||
) | ||
|
||
@@ -270,7 +276,7 @@ if enable_introspection | ||
name, | ||
input: [libnm_gir[0], nm_settings_docs_overrides], | ||
output: name, | ||
- command: [generate_setting_docs_env, python.path(), generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT0@', '--overrides', '@INPUT1@', '--output', '@OUTPUT@'], | ||
+ command: [generate_setting_docs_env, generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT0@', '--overrides', '@INPUT1@', '--output', '@OUTPUT@'], | ||
depends: libnm_gir, | ||
) | ||
endif | ||
output: 'nm-settings-docs-gir.xml', | ||
command: [ | ||
generate_setting_docs_env, | ||
- python.path(), | ||
+ qemu_python3_cmd, | ||
join_paths(meson.source_root(), 'tools', 'generate-docs-nm-settings-docs-gir.py'), | ||
'--lib-path', meson.current_build_dir(), | ||
'--gir', '@INPUT@', |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,28 @@ | ||
Index: b/meson.build | ||
=================================================================== | ||
--- a/meson.build | ||
+++ b/meson.build | ||
@@ -943,10 +943,8 @@ if enable_qt | ||
endif | ||
|
||
if enable_docs | ||
- assert(enable_introspection, '-Ddocs=true requires -Dintrospection=true') | ||
assert(meson.version().version_compare('>= 0.46.0'), '-Ddocs requires meson >= 0.46') | ||
subdir('man') | ||
- subdir('docs') | ||
endif | ||
|
||
configure_file( | ||
Index: b/clients/common/meson.build | ||
=================================================================== | ||
--- a/clients/common/meson.build | ||
+++ b/clients/common/meson.build | ||
@@ -28,7 +28,7 @@ libnmc_base_dep = declare_dependency( | ||
link_with: libnmc_base, | ||
) | ||
|
||
-if enable_docs | ||
+if enable_docs and enable_introspection | ||
settings_docs_source = custom_target( | ||
'settings-docs.h', | ||
input: nm_settings_docs_xml_gir, |
Oops, something went wrong.