momentarylapse / tsunami

A simple but powerful audio editor
GNU General Public License v3.0
77 stars 4 forks source link

[windows] Build and run on windows #16

Closed momentarylapse closed 1 month ago

momentarylapse commented 4 months ago

The biggest blockers here are:

gtk

Yes, there are multiple ways of using gtk on windows. Sadly, they seem to get abandoned fairly quickly. I had my hopes on vcpkg but since gtk4 it is only usable with heavy workarounds.

Currently I got it working using https://github.com/wingtk/gvsbuild but who knows.

I still need to check out how to bundle everything. At least theming has gotten easier since gtk4.

kaba

There was a major bug in the calling convention that I've fixed recently. And I'm carefully optimistic after a couple of experiments. Needs more proper testing before I'll call it stable.

build system

As much as I dislike cmake, it is the only realistic and """reliable""" system. I'm automatically generating cmake files with a script from a list of required and optional libraries.

Visual studio can handle cmake files. It seems to require some additional files that my script has (partially) learned to generate.

Libraries on windows are still a nightmare though. From what I've tried, vcpkg still seems like the best option. Yes, some libraries are screwed up, but most work. And cmake integration is finally supported out-of-the-box.

Outlook

I finally got the program running again yesterday. What is missing:

momentarylapse commented 1 month ago

I'll call this finished for now.

Windows support is not completely finished. Installing and file associations are still open and some libraries might not work, but the goal of "build and run on windows" seems achieved. Further work will happen in tickets with smaller scope.

(although gvsbuild is sometimes broken)