-
Notifications
You must be signed in to change notification settings - Fork 68
/
Makefile
39 lines (29 loc) · 1.19 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
include .dev-config.mk
.dev-config.mk:
[ ! -f .dev-config.mk ] && cp .dev-config.mk.default .dev-config.mk
release:
mkdir -p build/Release
cd build/Release && cmake -DCMAKE_BUILD_TYPE=Release ../..
cd build/Release && cmake --build .
debug:
mkdir -p build/Debug
cd build/Debug && cmake -DCMAKE_BUILD_TYPE=Debug ../..
cd build/Debug && cmake --build .
########################################################################################################################
# WASM
########################################################################################################################
wasm:
bash extras/building/build-wasm.sh $(EMSCRIPTEN_VERSION) $(QT_WASM_PATH) $(EMSDK_PATH)
wasm-clean:
rm -rf $(WASM_BUILD_DIR)
wasm-clean-deep: wasm-clean
rm -rf $(EMSDK_PATH)/upstream/cache/*
rm -rf $(EMSDK_PATH)/upstream/emscripten/cache/*
wasm-serve:
cp data/wasm/* $(WASM_BUILD_DIR)/target
# Server is necessary due to CORS
cd $(WASM_BUILD_DIR)/target/ && python -m http.server
open localhost:8000
wasm-install-qt:
python -m aqt install $(QT_WASM_VERSION) linux desktop wasm_32 --outputdir $(QT_INSTALL_DIR)
.PHONY: release debug wasm wasm-clean wasm-clean-deep wasm-serve wasm-install-qt