diff --git a/Makefile b/Makefile index 3f4ca90..441c220 100644 --- a/Makefile +++ b/Makefile @@ -47,6 +47,7 @@ BOOTSTRAP_FILES = \ TARGETS = \ build/jackd$(APP_EXT) \ + build/mod-screenshot$(APP_EXT) \ build/mod-ui$(APP_EXT) \ build/jack/jack-session.conf \ build/jack/mod-host$(SO_EXT) \ @@ -294,6 +295,10 @@ build/jack/jack-session.conf: utils/jack-session.conf @mkdir -p build/jack ln -sf $(abspath $<) $@ +build/mod-screenshot$(APP_EXT): utils/mod-screenshot.py $(BOOTSTRAP_FILES) + ./utils/run.sh $(PAWPAW_TARGET) python3 utils/mod-screenshot.py build_exe + touch $@ + build/mod-ui$(APP_EXT): utils/mod-ui.py utils/mod-ui-wrapper.py $(BOOTSTRAP_FILES) ./utils/run.sh $(PAWPAW_TARGET) python3 utils/mod-ui.py build_exe touch $@ @@ -313,7 +318,7 @@ mod-midi-merger/build/mod-midi-merger-standalone$(APP_EXT): mod-midi-merger/buil mod-midi-merger/build/Makefile: $(BOOTSTRAP_FILES) ./utils/run.sh $(PAWPAW_TARGET) cmake -S mod-midi-merger -B mod-midi-merger/build -mod-ui/utils/libmod_utils.so: $(BOOTSTRAP_FILES) mod-ui/utils/utils_lilv.cpp +mod-ui/utils/libmod_utils.so: $(BOOTSTRAP_FILES) mod-ui/utils/utils.h mod-ui/utils/utils_jack.cpp mod-ui/utils/utils_lilv.cpp ./utils/run.sh $(PAWPAW_TARGET) $(MAKE) -C mod-ui/utils systray/mod-app$(APP_EXT): systray/main.cpp systray/mod-app.hpp diff --git a/PawPaw b/PawPaw index c1e7d6b..293a000 160000 --- a/PawPaw +++ b/PawPaw @@ -1 +1 @@ -Subproject commit c1e7d6bd15df3720afb573d509eb18b99b299223 +Subproject commit 293a0000d828d4f8cbd312aa7942866ba38c85f2 diff --git a/mod-ui b/mod-ui index 9b445f5..507ef99 160000 --- a/mod-ui +++ b/mod-ui @@ -1 +1 @@ -Subproject commit 9b445f58b3502549ca7d76985e9b0527da3af459 +Subproject commit 507ef999b1ac357871f1cd7119c62a599623c401 diff --git a/utils/mod-screenshot.py b/utils/mod-screenshot.py new file mode 100644 index 0000000..d801a67 --- /dev/null +++ b/utils/mod-screenshot.py @@ -0,0 +1,42 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- + +# ------------------------------------------------------------------------------------------------------------ +# Imports (cx_Freeze) + +from cx_Freeze import setup, Executable + +# ------------------------------------------------------------------------------------------------------------ + +from sys import platform + +if platform == 'win32': + exe = '.exe' + s = '\\' +else: + exe = '' + s = '/' + +# ------------------------------------------------------------------------------------------------------------ + +options = { + "zip_include_packages": ["*"], + "zip_exclude_packages": ["PIL","modtools"], + "replace_paths": [["*",f".{s}lib{s}"]], + "build_exe": f".{s}build", + "optimize": True, +} + +exe_options = { + "script": f".{s}mod-ui{s}modtools{s}pedalboard.py", + "copyright": "Copyright (C) 2023 MOD Audio UG", + "targetName": f"mod-screenshot{exe}", +} + +setup(name = "mod-screenshot", + version = "0.0.0", + description = "MOD Pedalboard screenshot", + options = {"build_exe": options}, + executables = [Executable(**exe_options)]) + +# ------------------------------------------------------------------------------------------------------------