GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — swingwebview/build-linux.sh at master · webliteca/swingwebview Expand file tree/ Copy pathbuild-linux.shMore file actions executable file ·36 lines (36 loc) · 1.85 KB / Copy pathbuild-linux.shFile metadata and controlsexecutable file ·36 lines (36 loc) · 1.85 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 #!/bin/bash set -e # Prefer webkit2gtk-4.1 (Ubuntu 24.04+) and fall back to 4.0 (older distros). if pkg-config --exists webkit2gtk-4.1; then WEBKIT_PKG=webkit2gtk-4.1 else WEBKIT_PKG=webkit2gtk-4.0 fi # JAWT is deliberately NOT linked (Canvas 8, Op 8). The JAWT_* symbols resolve # at load time from the already-loaded JVM, against the libjawt WebViewNative # pre-loads before this library. Linking -ljawt would make the build depend on a # standalone libjawt that some JDKs do not ship -- the very case the loader is # written to survive. This mirrors the Linux `native` job in # .github/workflows/build.yml, which produces the artifact that ships. # # This uses the HOST toolchain, so the library carries the host's glibc / # libstdc++ floor -- not the glibc 2.31 / GCC 10 floor of the shipped # artifact, which CI builds in a debian:11 container (Canvas 8, Op 6/8). # Fine for a local smoke test; do not ship it to older distros. g++ -I"${JAVA_HOME}/include" -I"${JAVA_HOME}/include/linux" -fPIC -std=c++11 -Wall -Wextra -pedantic -I./src_c -DWEBVIEW_GTK=1 \ `pkg-config --cflags gtk+-3.0 $WEBKIT_PKG` \ src_c/webview.c src_c/webview_embed.cpp src_c/webkit_loader.cpp \ $LDFLAGS \ `pkg-config --libs gtk+-3.0` \ -lX11 -ldl \ -shared -o libwebview.so # NOTE: WebKitGTK/JavaScriptCore are intentionally NOT linked (only --cflags # for the headers). They are dlopen'd at runtime (4.1 preferred, 4.0 fallback) # by src_c/webkit_loader.cpp, so this single libwebview.so runs on both. # The password-manager credential store (Canvas 27) likewise dlopen's # libsecret-1.so.0 at first use rather than linking -lsecret -- matching the # same runtime-load convention. Absence of a Secret Service provider degrades # gracefully (the store becomes a no-op); it never blocks library load. mkdir -p natives/linux_64 mv libwebview.so natives/linux_64/ mvn -DskipTests package |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |