momentarylapse / tsunami

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

[windows] Build and run on windows #16

Open momentarylapse opened 1 month ago

momentarylapse commented 1 month 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: