mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-25 15:56:01 +00:00
build(native): the hook is built with its Go support and tracked by the preload recipe
This commit is contained in:
1 parent
092661b69c
commit
d05f895ccf
2 files changed
+13
-5
No files matched your search
@@ -164,7 +164,8 @@
|
|||||||
"tools/components/build-arm64-preloads.sh",
|
"tools/components/build-arm64-preloads.sh",
|
||||||
"tools/linuxfs/preload",
|
"tools/linuxfs/preload",
|
||||||
"app/src/main/cpp/fakeinput_steam.cpp",
|
"app/src/main/cpp/fakeinput_steam.cpp",
|
||||||
"tools/components/recipes/arm64-preloads.sh"
|
"tools/components/recipes/arm64-preloads.sh",
|
||||||
|
"tools/nativeguest"
|
||||||
],
|
],
|
||||||
"outputs": [
|
"outputs": [
|
||||||
"app/src/main/assets/linuxfs/libfakeinput.so",
|
"app/src/main/assets/linuxfs/libfakeinput.so",
|
||||||
@@ -172,7 +173,8 @@
|
|||||||
"app/src/main/assets/linuxfs/libblfastpath.so",
|
"app/src/main/assets/linuxfs/libblfastpath.so",
|
||||||
"app/src/main/assets/linuxfs/libblaudit.so",
|
"app/src/main/assets/linuxfs/libblaudit.so",
|
||||||
"app/src/main/assets/linuxfs/libssbs.so",
|
"app/src/main/assets/linuxfs/libssbs.so",
|
||||||
"app/src/main/assets/linuxfs/usr/local/bin/droiddeck-clipboard"
|
"app/src/main/assets/linuxfs/usr/local/bin/droiddeck-clipboard",
|
||||||
|
"app/src/main/assets/linuxfs/libddnatv-hook.so"
|
||||||
],
|
],
|
||||||
"packages": [
|
"packages": [
|
||||||
"gcc-aarch64-linux-gnu",
|
"gcc-aarch64-linux-gnu",
|
||||||
@@ -187,7 +189,8 @@
|
|||||||
"tools/quest/kgsl_compat.h",
|
"tools/quest/kgsl_compat.h",
|
||||||
"tools/proot/fastpath",
|
"tools/proot/fastpath",
|
||||||
"tools/linuxfs/ssbs",
|
"tools/linuxfs/ssbs",
|
||||||
"tools/linuxfs/clipboard"
|
"tools/linuxfs/clipboard",
|
||||||
|
"tools/nativeguest"
|
||||||
],
|
],
|
||||||
"snapshot_outputs": [
|
"snapshot_outputs": [
|
||||||
"libfakeinput.so",
|
"libfakeinput.so",
|
||||||
@@ -195,7 +198,8 @@
|
|||||||
"libblfastpath.so",
|
"libblfastpath.so",
|
||||||
"libblaudit.so",
|
"libblaudit.so",
|
||||||
"libssbs.so",
|
"libssbs.so",
|
||||||
"usr/local/bin/droiddeck-clipboard"
|
"usr/local/bin/droiddeck-clipboard",
|
||||||
|
"libddnatv-hook.so"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"preload-snapshot": {
|
"preload-snapshot": {
|
||||||
|
|||||||
@@ -5,7 +5,11 @@ set -euo pipefail
|
|||||||
here=$(cd "$(dirname "$0")" && pwd)
|
here=$(cd "$(dirname "$0")" && pwd)
|
||||||
out=${1:?output path}
|
out=${1:?output path}
|
||||||
cc=${2:-aarch64-linux-gnu-gcc}
|
cc=${2:-aarch64-linux-gnu-gcc}
|
||||||
|
gen=$(mktemp -d)
|
||||||
|
trap 'rm -rf "$gen"' EXIT
|
||||||
|
mkdir -p "$gen/gosys"
|
||||||
|
bash "$here/build-gosys.sh" "$gen/gosys/gosys_blob.h"
|
||||||
"$cc" -std=gnu11 -shared -fPIC -O2 -fno-delete-null-pointer-checks -Wall -Wno-nonnull-compare \
|
"$cc" -std=gnu11 -shared -fPIC -O2 -fno-delete-null-pointer-checks -Wall -Wno-nonnull-compare \
|
||||||
-Wno-format-truncation -Wno-stringop-truncation -Wl,-z,max-page-size=16384 \
|
-Wno-format-truncation -Wno-stringop-truncation -Wl,-z,max-page-size=16384 -I "$gen" \
|
||||||
-o "$out" "$here/ddnatv-hook.c" -ldl
|
-o "$out" "$here/ddnatv-hook.c" -ldl
|
||||||
"${cc%gcc}strip" --strip-unneeded "$out"
|
"${cc%gcc}strip" --strip-unneeded "$out"
|
||||||
Reference in new issue
Block a user