-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (43 loc) · 1.59 KB
/
Copy pathMakefile
File metadata and controls
52 lines (43 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
.PHONY: start stop build dev debug release fileprovider-smoke wasm
BINARY := ./target/release/cascade
# Always defer to cargo for build decisions — cargo's incremental
# compilation makes a no-op build cheap, and a file-existence check
# would silently run a stale binary after source edits.
release:
cargo build --release
start: release
exec $(BINARY) start
stop:
$(BINARY) stop
build:
cargo build
dev:
exec env RUST_LOG="$${RUST_LOG:-debug}" cargo watch -x "run -- start"
debug: release
exec env RUST_LOG="$${RUST_LOG:-debug}" $(BINARY) start
# Build the macOS File Provider host app and extension, then open the host
# app so the developer can click "Register File Provider" to register the
# Cascade domain with macOS. No automated registration — that step requires
# an interactive UI click in the host app window.
#
# Prerequisites: macOS 15.4+, Xcode CLT. See docs/fileprovider-smoke-test.md
# for the full step-by-step guide including backend setup and Finder operations.
fileprovider-smoke:
xcodebuild \
-project swift/CascadeFileProvider.xcodeproj \
-scheme CascadeFileProviderHost \
-configuration Debug \
-destination "platform=macOS" \
build
open "$$(xcodebuild \
-project swift/CascadeFileProvider.xcodeproj \
-scheme CascadeFileProviderHost \
-configuration Debug \
-destination "platform=macOS" \
-showBuildSettings \
2>/dev/null \
| awk '/BUILT_PRODUCTS_DIR/{print $$3}')/CascadeFileProviderHost.app"
# Build the cascade-wasm crate to wasm32-unknown-unknown and run wasm-bindgen
# to generate the JS glue in crates/cascade-wasm/pkg/.
wasm:
bash scripts/build-wasm.sh