I had thought about this before, but thought it would probably be too complicated.

Surprisingly, it doesn't seem to require CAAppKitBridge, but unfortunately it requires WebKit.

If we want to do a GNUstep port of the Cocoa backend for WebKit, we could use the 2017 GSoC project <https://gist.github.com/theiostream/7b9e83997320ccade6b5ec749cdc3573>, but it would require a lot of work -- WebKit has certainly experienced significant changes in the past 8 years, and the 2017 GSoC project only got JavaScriptCore working (no web rendering yet).

Alternatively, it might be easier to use one of the existing WebKit ports to Linux -- WebKitGtk and WPE WebKit. It might be harder to provide compatibility with WebKit.framework (since that might expose some internal stuff not exposed by WebKitGtk/WPEWebKit API). See https://github.com/trunkmaster/nextspace/issues/325 for more discussion on how to do that. @onflapp made a web browser which embedded WebKitGtk using XEmbed. WPE might be better, since it allows you to provide your own drawing backend (we could probably provide an NSView). The default backend (WPEBackend-FDO) renders to a Wayland EGL surface; we might be able to ask the compositor to composite the surface on top of the window but I don't know if all compositors support that. If we want to use WPE, we'll probably want to chat with the WPE developers, since WPE's documentation is currently not very extensive.

On 3/1/25 08:19, Gregory Casamento wrote:
I think it’s an interesting looking project.  If it avoids using core frameworks and swift it should be portable.  I do see some places in the project file where it looks like libs-Xcode might need to be extended to handle the build (remote targets).

Let me know how it goes, but it looks promising at first glance.

Gregory Casamento
GNUstep Lead Developer / Black Lotus, Principal Consultant
http://www.gnustep.org - http://heronsperch.blogspot.com
https://www.patreon.com/bePatron?u=352392 - Become a Patron
https://www.openhub.net/languages/objective_c
https://www.gofundme.com/f/cacao-linux-a-gnustep-reference-implementation


On Sat, Mar 1, 2025 at 06:22 [email protected] <[email protected]> wrote:

    Hi fellow 'Steppers,


    By surfing the Web I came across this App:

    https://github.com/dsward2/macSVG

    https://macsvg.org/

    The good news: it is, for the most parts, written in ObjC! Some
    newer parts, as I read the PlugIn System, are written in Swift
    although. But this should only be another incentive to consider
    Swift support for GNUstep again.

    What do you think? In my opinion a GNUstep port of macSVG could be
    a Killer App for us on the free Unix and Unix-Clone OSes like the
    BSDs and, of course, Linux.


    Kind regards,

    Lars

Reply via email to