aKode fase 5: rinomina interna (crate akode-*, akode-rs/, akode-cli/, binario akode, AKODE_*, ~/.akode, snapshot)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2
akode-rs/vendor/bubblewrap/tests/use-as-subproject/.gitignore
vendored
Normal file
2
akode-rs/vendor/bubblewrap/tests/use-as-subproject/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/_build/
|
||||
/subprojects/
|
||||
3
akode-rs/vendor/bubblewrap/tests/use-as-subproject/README
vendored
Normal file
3
akode-rs/vendor/bubblewrap/tests/use-as-subproject/README
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
This is a simple example of a project that uses bubblewrap as a
|
||||
subproject. The intention is that if this project can successfully build
|
||||
bubblewrap as a subproject, then so could Flatpak.
|
||||
26
akode-rs/vendor/bubblewrap/tests/use-as-subproject/assert-correct-rpath.py
vendored
Executable file
26
akode-rs/vendor/bubblewrap/tests/use-as-subproject/assert-correct-rpath.py
vendored
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/python3
|
||||
# Copyright 2022 Collabora Ltd.
|
||||
# SPDX-License-Identifier: LGPL-2.0-or-later
|
||||
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
if __name__ == '__main__':
|
||||
completed = subprocess.run(
|
||||
['objdump', '-T', '-x', sys.argv[1]],
|
||||
stdout=subprocess.PIPE,
|
||||
)
|
||||
stdout = completed.stdout
|
||||
assert stdout is not None
|
||||
seen_rpath = False
|
||||
|
||||
for line in stdout.splitlines():
|
||||
words = line.strip().split()
|
||||
|
||||
if words and words[0] in (b'RPATH', b'RUNPATH'):
|
||||
print(line.decode(errors='backslashreplace'))
|
||||
assert len(words) == 2, words
|
||||
assert words[1] == b'${ORIGIN}/../lib', words
|
||||
seen_rpath = True
|
||||
|
||||
assert seen_rpath
|
||||
1
akode-rs/vendor/bubblewrap/tests/use-as-subproject/config.h
vendored
Normal file
1
akode-rs/vendor/bubblewrap/tests/use-as-subproject/config.h
vendored
Normal file
@@ -0,0 +1 @@
|
||||
#error Should not use superproject config.h to compile bubblewrap
|
||||
1
akode-rs/vendor/bubblewrap/tests/use-as-subproject/dummy-config.h.in
vendored
Normal file
1
akode-rs/vendor/bubblewrap/tests/use-as-subproject/dummy-config.h.in
vendored
Normal file
@@ -0,0 +1 @@
|
||||
#error Should not use superproject generated config.h to compile bubblewrap
|
||||
20
akode-rs/vendor/bubblewrap/tests/use-as-subproject/meson.build
vendored
Normal file
20
akode-rs/vendor/bubblewrap/tests/use-as-subproject/meson.build
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
project(
|
||||
'use-bubblewrap-as-subproject',
|
||||
'c',
|
||||
version : '0',
|
||||
meson_version : '>=0.49.0',
|
||||
)
|
||||
|
||||
configure_file(
|
||||
output : 'config.h',
|
||||
input : 'dummy-config.h.in',
|
||||
configuration : configuration_data(),
|
||||
)
|
||||
|
||||
subproject(
|
||||
'bubblewrap',
|
||||
default_options : [
|
||||
'install_rpath=${ORIGIN}/../lib',
|
||||
'program_prefix=not-flatpak-',
|
||||
],
|
||||
)
|
||||
Reference in New Issue
Block a user