|
4 years ago | |
---|---|---|
GtkD @ a8752e4332 | 4 years ago | |
source | 4 years ago | |
.gitignore | 4 years ago | |
.gitmodules | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago | |
dub.json | 4 years ago | |
dub.selections.json | 4 years ago |
These are GTK-D compatible bindings for WebKitGTK.
"webkit-d:static": "~>1.0.0"
to your dub.json.Add the following library dependencies:
webkit2gtk-4.0 webkit2webextension-4.0 javascriptcore-4.0 soup-2.4
If you prefer a dynamic library, well, Dub doesn’t yet support dynamic library dependencies. The process is somewhat awkward:
webkit-d:dynamic
. Copy the output library somewhere convenient.
Let’s say ./libs
.webkit-d/source
in your importPaths
."-Llibs", "-lwebkit-d"
to your lflags
.To run the resulting application, you will need to set LD_LIBRARY_PATH
appropriately.
If you don’t expect to update webkit-d often, you can install it system-wide.
We recommend building webkit-d and GtkD as dynamic libraries. Compilation time for this library won’t be impacted, but it will shave about ten seconds off the build time for whatever other program you have.