iOS 0.6.0: milestone 5 (recording, MIDI, input bindings, themes, bundles, backups)
- Master recording (MasterSink ring + writer thread) and the sample recorder - CoreMIDI in/out: sound module, clock send/follow, virtual "Sizzle" ports; platform-free parser/module/clock in core (midi_test) - Hardware keyboard and gamepads via GameController; rebindable keyboard, gamepad and MIDI CC actions; per-parameter MIDI learn - Colour themes (.szt), project bundles (.szgz), backup & restore; ZIP in core with zlib (zip_test against jar and unzip) - Persistent app settings; audio pauses in the background unless sound module Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
435305e42a
commit
64e21e0bcc
+26
-9
@@ -37,7 +37,7 @@ IPA := dist/$(APP_ID)_$(BUILD_NO).ipa
|
||||
CORE_SRC := $(wildcard core/src/*.cpp core/src/*/*.cpp)
|
||||
CORE_HDR := $(wildcard core/include/sizzle/*.hpp core/src/*/*.hpp)
|
||||
CXX ?= c++
|
||||
CXXFLAGS := -std=c++17 -O2 -Wall -Wextra -Icore/include -Icore/src -Icore/src/fx
|
||||
CXXFLAGS := -std=c++17 -O2 -Wall -Wextra -Icore/include -Icore/src -Icore/src/fx -lz
|
||||
GOLDEN := core/golden
|
||||
SPECS_GEN := core/include/sizzle/DeviceSpecs.gen.hpp
|
||||
# Gradle needs the Android SDK; same default location as the Android Makefile.
|
||||
@@ -78,19 +78,36 @@ build/core/io_test: $(CORE_SRC) $(CORE_HDR) core/tests/io_test.cpp
|
||||
mkdir -p build/core
|
||||
$(CXX) $(CXXFLAGS) -o $@ $(CORE_SRC) core/tests/io_test.cpp
|
||||
|
||||
core-test: build/core/golden_test build/core/sampler_test build/core/engine_test build/core/io_test
|
||||
build/core/midi_test: core/include/sizzle/Midi.hpp core/tests/midi_test.cpp
|
||||
mkdir -p build/core
|
||||
$(CXX) $(CXXFLAGS) -o $@ core/tests/midi_test.cpp
|
||||
|
||||
build/core/zip_test: core/src/io/Zip.cpp core/src/io/Zip.hpp core/tests/zip_test.cpp
|
||||
mkdir -p build/core/zipfix/dir
|
||||
$(CXX) $(CXXFLAGS) -o $@ core/src/io/Zip.cpp core/tests/zip_test.cpp -lz
|
||||
|
||||
# A Java-written archive (ZipOutputStream, like Android's) for zip_test, and ours checked by unzip.
|
||||
zip-test: build/core/zip_test
|
||||
printf 'hello\n' > build/core/zipfix/a.txt
|
||||
head -c 4096 /dev/urandom > build/core/zipfix/dir/b.bin
|
||||
cd build/core/zipfix && rm -f ../java.zip && jar cfM ../java.zip a.txt dir/b.bin
|
||||
build/core/zip_test build/core/java.zip build/core/ours.zip
|
||||
unzip -tq build/core/ours.zip
|
||||
|
||||
core-test: build/core/golden_test build/core/sampler_test build/core/engine_test build/core/io_test build/core/midi_test zip-test
|
||||
@test -f $(GOLDEN)/input.f32 || $(MAKE) --no-print-directory golden
|
||||
build/core/golden_test $(GOLDEN) $(TYPES)
|
||||
build/core/sampler_test
|
||||
build/core/engine_test $(GOLDEN)/songs
|
||||
build/core/io_test $(GOLDEN)/songs ../app/src/test/resources/mikroseq
|
||||
build/core/midi_test
|
||||
|
||||
# ------------------------------------------------------------------ app
|
||||
AU_SRC := app/FX/SizzleDeviceAU.mm app/FX/SizzleEffectAU.mm app/FX/SizzleInstrumentAU.mm app/FX/SizzleDeviceAU+Sources.mm
|
||||
build/core/au_test: $(AU_SRC) $(wildcard app/FX/*.h app/FX/*.hpp) app/tests/au_test.mm $(CORE_SRC) $(CORE_HDR)
|
||||
mkdir -p build/core
|
||||
$(CXX) $(CXXFLAGS) -Wno-deprecated-declarations -fobjc-arc -Iapp/FX -o $@ $(AU_SRC) app/tests/au_test.mm $(CORE_SRC) \
|
||||
-framework AVFoundation -framework AudioToolbox -framework Foundation
|
||||
-framework AVFoundation -framework AudioToolbox -framework Foundation -framework CoreMIDI
|
||||
|
||||
au-test: build/core/au_test
|
||||
@test -f $(GOLDEN)/input.f32 || $(MAKE) --no-print-directory golden
|
||||
@@ -116,13 +133,13 @@ SNAPDIR ?= build/screens
|
||||
# Mac snapshots of the app's tabs with the demo song (SizzleSession runs on macOS
|
||||
# too, without audio). Screens must stay SwiftUI-only (no UIKit) to render here.
|
||||
SCREEN_SWIFT := $(EDITOR_SWIFT) app/Host/AppModel.swift app/Host/RootView.swift app/Host/SlotDeviceModel.swift \
|
||||
app/Host/KeyboardView.swift app/Host/SlotDataSource.swift \
|
||||
$(shell find app/Host/Screens app/Host/Bespoke -name '*.swift')
|
||||
$(SNAPDIR)/libsizzlescreens.dylib: $(AU_SRC) $(wildcard app/Host/SizzleSession*.mm app/Host/SizzleSession*.h) app/tests/SnapshotComponents.mm $(CORE_SRC) $(CORE_HDR)
|
||||
app/Host/KeyboardView.swift app/Host/SlotDataSource.swift app/Host/SampleRecorder.swift app/Host/AppSettings.swift app/Host/AppBoot.swift app/Host/ThemeLibrary.swift \
|
||||
$(shell find app/Host/Screens app/Host/Bespoke app/Host/Input -name '*.swift')
|
||||
$(SNAPDIR)/libsizzlescreens.dylib: $(AU_SRC) $(wildcard app/Host/SizzleSession*.mm app/Host/SizzleSession*.h) app/Host/SizzleMidi.mm app/Host/SizzleMidi.h app/tests/SnapshotComponents.mm $(CORE_SRC) $(CORE_HDR)
|
||||
mkdir -p $(SNAPDIR)
|
||||
$(CXX) $(CXXFLAGS) -Wno-deprecated-declarations -fobjc-arc -Iapp/FX -Iapp/Host -dynamiclib -install_name @rpath/libsizzlescreens.dylib \
|
||||
-o $@ $(AU_SRC) $(wildcard app/Host/SizzleSession*.mm) app/tests/SnapshotComponents.mm $(CORE_SRC) \
|
||||
-framework AVFoundation -framework AudioToolbox -framework Foundation
|
||||
-o $@ $(AU_SRC) $(wildcard app/Host/SizzleSession*.mm) app/Host/SizzleMidi.mm app/tests/SnapshotComponents.mm $(CORE_SRC) \
|
||||
-framework AVFoundation -framework AudioToolbox -framework Foundation -framework CoreMIDI
|
||||
|
||||
$(SNAPDIR)/screen_snapshots: $(SNAPDIR)/libsizzlescreens.dylib $(SCREEN_SWIFT) app/tests/screen_snapshots.swift
|
||||
swiftc -O -parse-as-library -import-objc-header app/tests/ScreenBridging.h -Iapp/FX -Iapp/Host -Iapp/tests \
|
||||
@@ -182,4 +199,4 @@ $(SPIKE_IPA): $(SPIKE_PROJ)/project.pbxproj $(SPIKE_SRC)
|
||||
clean:
|
||||
rm -rf build dist
|
||||
|
||||
.PHONY: help golden core-test au-test project ipa bump-major bump-minor bump-patch bump spike-ipa clean
|
||||
.PHONY: help golden core-test zip-test au-test project ipa bump-major bump-minor bump-patch bump spike-ipa clean
|
||||
|
||||
Reference in New Issue
Block a user