update Makefile for web
This commit is contained in:
20
Makefile
20
Makefile
@@ -1,12 +1,16 @@
|
|||||||
dart-web:
|
wasm:
|
||||||
cd thermion_dart/native/web; mkdir -p build && cd build && emcmake cmake .. && emmake make
|
cd thermion_dart/native/web;
|
||||||
dart-web-clean:
|
mkdir -p build
|
||||||
|
cd build
|
||||||
|
emcmake cmake ..
|
||||||
|
emmake make
|
||||||
|
wasm-clean:
|
||||||
cd thermion_dart/native/web && rm -rf build
|
cd thermion_dart/native/web && rm -rf build
|
||||||
dart-wasm-cli-example: dart-web-clean dart-web
|
wasm-example-web:
|
||||||
cd thermion_dart/examples/cli_wasm/bin && dart compile wasm example_cli.dart && node main.js
|
cd examples/dart/js_wasm
|
||||||
dart-web-example: dart-web
|
mkdir -p build
|
||||||
cp thermion_dart/native/web/build/build/out/thermion_dart* examples/web_wasm/bin
|
dart compile js web/example.dart -o build/example.dart.js
|
||||||
cd thermion_dart/examples/web_wasm/bin && dart compile wasm example_web.dart
|
|
||||||
flutter-example-web: dart-web-clean dart-web
|
flutter-example-web: dart-web-clean dart-web
|
||||||
cd thermion_flutter_federated/thermion_flutter/example/web && dart compile wasm main.dart && cd .. && flutter build web --wasm --profile
|
cd thermion_flutter_federated/thermion_flutter/example/web && dart compile wasm main.dart && cd .. && flutter build web --wasm --profile
|
||||||
flutter-example-macos:
|
flutter-example-macos:
|
||||||
|
|||||||
Reference in New Issue
Block a user