mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 12:56:06 +00:00
x86-64 client: the controller reader for x86 programs
The session's pads exist for a guest program only through libfakeinput (the FAKE_EVDEV_* rings), which was built for arm64 alone, so the x86 client saw no controller. Build it natively for x86-64 too, stage it, and preload it through the FEX rootfs next to the session shim.
This commit is contained in:
1 parent
1d90448924
commit
47e528102d
3 files changed
+14
-1
No files matched your search
@@ -28,7 +28,7 @@ concurrency:
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
env:
|
||||
PRELOAD_CACHE_VERSION: v3
|
||||
PRELOAD_CACHE_VERSION: v4
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -182,6 +182,11 @@ jobs:
|
||||
gcc -shared -fPIC -O2 -Wall -pthread \
|
||||
-o "$D/libblsession-x86_64.so" tools/linuxfs/preload/*.c -ldl
|
||||
strip --strip-unneeded "$D/libblsession-x86_64.so"
|
||||
# And the controller reader: the session's pads reach x86-64 programs the same way.
|
||||
g++ -shared -fPIC -O2 -Wall -Wno-attributes -Wno-nonnull-compare \
|
||||
-pthread -std=c++17 -static-libstdc++ -static-libgcc -Wl,--exclude-libs,ALL \
|
||||
-o "$D/libfakeinput-x86_64.so" app/src/main/cpp/fakeinput_steam.cpp -ldl
|
||||
strip --strip-unneeded "$D/libfakeinput-x86_64.so"
|
||||
aarch64-linux-gnu-gcc -shared -fPIC -O2 -Wall -pthread \
|
||||
-o "$D/libblfastpath.so" tools/proot/fastpath/fastpath.c -ldl
|
||||
aarch64-linux-gnu-strip --strip-unneeded "$D/libblfastpath.so"
|
||||
|
||||
Reference in new issue
Block a user