mirror of
https://codeberg.org/armin/ambivalence.git
synced 2026-09-01 04:10:48 +02:00
UI changes, layout redefinition
This commit is contained in:
parent
42cf8432bf
commit
1d9ba772fe
12 changed files with 536 additions and 528 deletions
36
Makefile
36
Makefile
|
|
@ -3,25 +3,25 @@
|
|||
#
|
||||
# Usage:
|
||||
# make clean Release build (VST3 + standalone) into build/<platform>
|
||||
# make install fresh build, remove stale installs, install cleanly
|
||||
# make install remove stale installs, install built artifacts
|
||||
# make uninstall remove installed artifacts
|
||||
# make clean delete the build directory
|
||||
# make version print the current git branch + commit
|
||||
# make info print the resolved configuration
|
||||
#
|
||||
# Notes:
|
||||
# - `make install` always performs a clean rebuild first, so it is fully
|
||||
# self-sufficient. `make && make install` also works (it builds twice).
|
||||
# - `make install` copies whatever is currently in build/<platform>, it does
|
||||
# not build. Run `make` first if you want a fresh build.
|
||||
# - JUCE is auto-fetched into ./build/JUCE on first build (shallow clone of
|
||||
# the JUCE_VERSION tag). Override with: make JUCE_PATH=/path/to/JUCE
|
||||
# - Install targets (user-level, no sudo required):
|
||||
# macOS: VST3: ~/Library/Audio/Plug-Ins/VST3/Ambivalence1.1.vst3
|
||||
# Standalone: ~/Applications/Ambivalence1.1.app
|
||||
# Linux: VST3: ~/.local/lib/vst3/Ambivalence1.1.vst3
|
||||
# Standalone: ~/.local/bin/Ambivalence1.1
|
||||
# macOS: VST3: ~/Library/Audio/Plug-Ins/VST3/Ambivalence.vst3
|
||||
# Standalone: ~/Applications/Ambivalence.app
|
||||
# Linux: VST3: ~/.local/lib/vst3/Ambivalence.vst3
|
||||
# Standalone: ~/.local/bin/Ambivalence
|
||||
# ============================================================================
|
||||
|
||||
PRODUCT := Ambivalence1.1
|
||||
PRODUCT := Ambivalence
|
||||
|
||||
UNAME_S := $(shell uname -s)
|
||||
|
||||
|
|
@ -65,6 +65,12 @@ CMAKE := cmake
|
|||
VST3_BUNDLE := $(VST3_DIR)/$(PRODUCT).vst3
|
||||
STANDALONE := $(APP_DIR)/$(PRODUCT)$(if $(filter $(UNAME_S),Linux),,.app)
|
||||
|
||||
# JUCE 8 no longer adds install() rules for plugins, so we copy the freshly
|
||||
# built artefacts out of the build tree ourselves.
|
||||
BUILD_ARTEFACT_DIR := $(BUILD_DIR)/Ambivalence_artefacts/$(CONFIG)
|
||||
VST3_SRC := $(BUILD_ARTEFACT_DIR)/VST3/$(PRODUCT).vst3
|
||||
STANDALONE_SRC := $(BUILD_ARTEFACT_DIR)/Standalone/$(PRODUCT)$(if $(filter $(UNAME_S),Linux),,.app)
|
||||
|
||||
ifdef OSX_ARCH
|
||||
OSX_FLAG := -DCMAKE_OSX_ARCHITECTURES="$(OSX_ARCH)"
|
||||
endif
|
||||
|
|
@ -93,16 +99,20 @@ build:
|
|||
$(CMAKE) -S . -B "$(BUILD_DIR)" \
|
||||
-DJUCE_PATH="$(JUCE_PATH)" \
|
||||
-DCMAKE_BUILD_TYPE="$(CONFIG)" \
|
||||
$(OSX_FLAG) \
|
||||
-DCMAKE_INSTALL_PREFIX="$(PREFIX)" \
|
||||
-DJUCE_VST3_DIR="$(VST3_DIR)"
|
||||
$(OSX_FLAG)
|
||||
$(CMAKE) --build "$(BUILD_DIR)" -j$(JOBS)
|
||||
|
||||
install: build
|
||||
install:
|
||||
@test -d "$(VST3_SRC)" -a -d "$(STANDALONE_SRC)" || { \
|
||||
echo "error: built artifacts not found in $(BUILD_DIR)"; \
|
||||
echo " run 'make' first to build them, then 'make install'."; \
|
||||
exit 1; }
|
||||
@echo "==> Ambivalence: removing stale installs"
|
||||
rm -rf "$(VST3_BUNDLE)" "$(STANDALONE)"
|
||||
@echo "==> Ambivalence: installing"
|
||||
$(CMAKE) --install "$(BUILD_DIR)"
|
||||
mkdir -p "$(VST3_DIR)" "$(APP_DIR)"
|
||||
cp -R "$(VST3_SRC)" "$(VST3_DIR)/"
|
||||
cp -R "$(STANDALONE_SRC)" "$(APP_DIR)/"
|
||||
@echo "==> Done."
|
||||
@if [ -d "$(VST3_BUNDLE)" ]; then \
|
||||
echo " VST3: $(VST3_BUNDLE)"; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue