offline-web/Makefile

34 lines
811 B
Makefile

all: build test
build: wasm native
native: model-native storage-native
model-native:
cargo build --features native -p offline-web-model
storage-native:
cargo build --features native -p offline-web-storage
wasm: model-wasm storage-wasm
model-wasm:
cargo build --target=wasm32-unknown-unknown --features wasm -p offline-web-model --verbose
storage-wasm:
cargo build --target=wasm32-unknown-unknown --features wasm -p offline-web-storage --verbose
test: test-native test-wasm
test-native: test-model-native test-storage-native
test-model-native:
cargo test --features native -p offline-web-model
test-storage-native:
cargo test --features native -p offline-web-storage
test-wasm: test-storage-wasm
test-storage-wasm:
cd offline-web-storage && wasm-pack test --headless --firefox --features wasm