Skip to content

Instantly share code, notes, and snippets.

View worky68's full-sized avatar

Drew Workman worky68

View GitHub Profile
@worky68
worky68 / Project Panama Webview Bindings Example Build
Last active October 8, 2025 22:07
Project Panama Webview Bindings Example
# Amalgamate webview lib into single header file
python3 scripts/amalgamate/amalgamate.py --base core --search include --output webview_amalgamation.h src
# Use jextract to produce Java bindings (Java files renamed in below examples)
jextract webview_amalgamation.h
# Build libwebview_amalgamate shared library
g++ -I /usr/lib/jvm/java/include/ -I/usr/lib/jvm/java/include/linux -fPIC -std=c++11 -Wall -Wextra -pedantic -I./src_c -DWEBVIEW_GTK=1 -I/usr/include/webkitgtk-4.1 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cloudproviders -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/atk-1.0 -I/usr/lib64/pkgconfig/../../include/dbus-1.0 -I/usr/lib64/pkgconfig/../../lib64/dbus-1.0/include -I/usr/include/fribidi -I/usr/include/libxml2 -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gio-unix-2.0 -I/usr/include/libsoup-3.0 -I/usr/include/libmoun