iOS milestone 3 groundwork: SizzleSession bridge, app shell with tabs, slot-backed editors, screen snapshots
SizzleSession owns the song, engine (192-frame chunks, try-lock on the audio thread), samples and audio output; AppModel/RootView give the four tabs; DeviceModel now works on toolbox slots too; make screen-snapshots renders the app's tabs on the Mac. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
7bc54e6466
commit
29650b88d7
@@ -112,6 +112,25 @@ build/snapshots/editor_snapshots: build/snapshots/libsizzlesnap.dylib $(EDITOR_S
|
||||
editor-snapshots: build/snapshots/editor_snapshots
|
||||
cd build/snapshots && ./editor_snapshots png
|
||||
|
||||
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 $(shell find app/Host/Screens -name '*.swift')
|
||||
$(SNAPDIR)/libsizzlescreens.dylib: $(AU_SRC) $(wildcard app/Host/SizzleSession*.mm app/Host/SizzleSession*.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
|
||||
|
||||
$(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 \
|
||||
-o $@ $(SCREEN_SWIFT) app/tests/screen_snapshots.swift -L$(SNAPDIR) -lsizzlescreens -Xlinker -rpath -Xlinker @executable_path
|
||||
cp app/FX/DeviceLayouts.json $(SNAPDIR)/
|
||||
|
||||
screen-snapshots: $(SNAPDIR)/screen_snapshots
|
||||
cd $(SNAPDIR) && ./screen_snapshots png $(CURDIR)/../samples/demo.sng
|
||||
|
||||
app/FX/Info.plist app/FX/Components.gen.h: app/components.txt tools/gen_components.py
|
||||
python3 tools/gen_components.py app/components.txt app/FX/Info.plist app/FX/Components.gen.h
|
||||
|
||||
|
||||
Reference in New Issue
Block a user