forked from livekit/client-sdk-flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (22 loc) · 786 Bytes
/
Makefile
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
PROTO_DIR="../protocol"
proto:
@{ \
if [ -d "$(PROTO_DIR)" ]; \
then \
protoc --dart_out=lib/src/proto -I$(PROTO_DIR) $(PROTO_DIR)/livekit_rtc.proto $(PROTO_DIR)/livekit_models.proto; \
else \
echo "../protocol is not found. github.com/livekit/protocol must be checked out"; \
fi \
}
format:
flutter format --set-exit-if-changed -l 100 .
e2ee: dart compile js .\web\e2ee.worker.dart -o .\example\web\e2ee.worker.dart.js
.PHONY: proto format
wasmd:
flutter build web --wasm --wasm-opt debug --omit-type-checks --web-renderer html
cd build/web_wasm && dhttpd --port 8090
wasm:
flutter build web --wasm --wasm-opt full --omit-type-checks --web-renderer html
cd build/web_wasm && dhttpd --port 8090
webdev:
flutter run -d web-server --web-port 8080 --web-renderer html