iOS 0.3.0: card editors like Android's for every plugin (knobs, switches, tabs, drawings)
Layouts exported from Android's DeviceLayouts (DeviceLayouts.json), iOS layouts for the devices with hand-built Android editors, SwiftUI editor shared by the extension and the app, Mac snapshot tool for the editors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
47588990ce
commit
b6589ee792
+17
-1
@@ -58,7 +58,7 @@ help:
|
||||
# ------------------------------------------------------------------ core
|
||||
golden:
|
||||
cd .. && ANDROID_HOME=$(ANDROID_SDK) SIZZLE_GOLDEN_DIR=$(CURDIR)/$(GOLDEN) \
|
||||
SIZZLE_SPECS_OUT=$(CURDIR)/$(SPECS_GEN) \
|
||||
SIZZLE_SPECS_OUT=$(CURDIR)/$(SPECS_GEN) SIZZLE_LAYOUTS_OUT=$(CURDIR)/app/FX/DeviceLayouts.json \
|
||||
./gradlew -q :app:testDebugUnitTest --tests '*IosGolden*' --rerun
|
||||
@ls $(GOLDEN)/*.scn | wc -l | xargs echo "reference scenarios:"
|
||||
|
||||
@@ -86,6 +86,22 @@ au-test: build/core/au_test
|
||||
@test -f $(GOLDEN)/input.f32 || $(MAKE) --no-print-directory golden
|
||||
build/core/au_test $(GOLDEN)/input.f32
|
||||
|
||||
# Mac snapshots of the SwiftUI device editors (AUAudioUnit and SwiftUI exist on
|
||||
# macOS too): the AU classes + core as a dylib, the editor Swift on top.
|
||||
EDITOR_SWIFT := $(wildcard app/FX/Editor/*.swift)
|
||||
build/snapshots/libsizzlesnap.dylib: $(AU_SRC) app/tests/SnapshotComponents.mm $(CORE_SRC) $(CORE_HDR)
|
||||
mkdir -p build/snapshots
|
||||
$(CXX) $(CXXFLAGS) -Wno-deprecated-declarations -fobjc-arc -Iapp/FX -dynamiclib -install_name @rpath/libsizzlesnap.dylib \
|
||||
-o $@ $(AU_SRC) app/tests/SnapshotComponents.mm $(CORE_SRC) -framework AVFoundation -framework AudioToolbox -framework Foundation
|
||||
|
||||
build/snapshots/editor_snapshots: build/snapshots/libsizzlesnap.dylib $(EDITOR_SWIFT) app/tests/editor_snapshots.swift
|
||||
swiftc -O -parse-as-library -import-objc-header app/tests/SnapshotBridging.h -Iapp/FX -Iapp/tests \
|
||||
-o $@ $(EDITOR_SWIFT) app/tests/editor_snapshots.swift -Lbuild/snapshots -lsizzlesnap -Xlinker -rpath -Xlinker @executable_path
|
||||
cp app/FX/DeviceLayouts.json build/snapshots/
|
||||
|
||||
editor-snapshots: build/snapshots/editor_snapshots
|
||||
cd build/snapshots && ./editor_snapshots png
|
||||
|
||||
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