Build native OS adapters from the shared D-Bus contract
This commit is contained in:
parent
778904f8fa
commit
876e56c866
2 changed files with 4 additions and 1 deletions
|
|
@ -44,6 +44,7 @@ tar -xf /output/discover-6.8.2.tar.xz -C /tmp/discover-build
|
|||
source=/tmp/discover-build/discover-6.8.2
|
||||
cp -a /adapter "$source/libdiscover/backends/ArchipelagoBackend"
|
||||
cp /contract/org.archipelago.System1.xml "$source/libdiscover/backends/ArchipelagoBackend/"
|
||||
cp /contract/qt-types.py "$source/libdiscover/backends/ArchipelagoBackend/"
|
||||
printf "\nadd_subdirectory(ArchipelagoBackend)\n" >> "$source/libdiscover/backends/CMakeLists.txt"
|
||||
cmake -S "$source" -B /tmp/discover-build/build -G Ninja -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF -DWITH_KCM=OFF -DWITH_NOTIFIER=OFF
|
||||
|
|
@ -58,6 +59,7 @@ if grep -q "not found" /output/loader-check.txt; then
|
|||
fi
|
||||
sha256sum /adapter/ArchipelagoBackend.cpp /adapter/CMakeLists.txt /output/discover-6.8.2.tar.xz /output/archipelago-backend.so > /output/SHA256SUMS
|
||||
sha256sum /contract/org.archipelago.System1.xml >> /output/SHA256SUMS
|
||||
sha256sum /contract/qt-types.py >> /output/SHA256SUMS
|
||||
# Build the missing upstream onboarding package before Core captures its local
|
||||
# repository universe. Purpose installs it normally from that signed repository.
|
||||
source /setup-recipe/PKGBUILD
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ systemd-nspawn --quiet --ephemeral --settings=no --register=no \
|
|||
/bin/bash -euo pipefail -c '
|
||||
pacman-key --init
|
||||
pacman-key --populate archlinux
|
||||
pacman -Syu --needed --noconfirm gcc pkgconf gnome-software json-glib sysprof
|
||||
pacman -Syu --needed --noconfirm gcc pkgconf glib2-devel gnome-software json-glib sysprof
|
||||
pkg-config --exact-version=51.1 gnome-software
|
||||
gdbus-codegen --interface-prefix org.archipelago.System1. --c-namespace ArchipelagoSystem \
|
||||
--generate-c-code /output/archipelago-system-bus /contract/org.archipelago.System1.xml
|
||||
|
|
@ -23,6 +23,7 @@ gcc -shared -fPIC -O2 -Wall -Werror=implicit-function-declaration \
|
|||
/output/archipelago-system-bus.c \
|
||||
-o /output/libgs_plugin_archipelago.so $(pkg-config --cflags --libs gnome-software json-glib-1.0)
|
||||
sha256sum /source/gs-plugin-archipelago.c /output/libgs_plugin_archipelago.so > /output/SHA256SUMS
|
||||
sha256sum /source/system-bus.h >> /output/SHA256SUMS
|
||||
sha256sum /contract/org.archipelago.System1.xml /output/archipelago-system-bus.[ch] >> /output/SHA256SUMS
|
||||
gcc -O2 -Wall -Werror=implicit-function-declaration \
|
||||
-DG_LOG_DOMAIN=\"GsPluginArchipelago\" /source/test-plugin.c \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue