harfbuzz/src/wasm/sample/c/Makefile

26 lines
590 B
Makefile
Raw Normal View History

2023-02-25 15:57:04 +01:00
ADD_TABLE = ../../../addTable.py
2023-02-24 19:03:13 +01:00
all: test-fallback.wasm.ttf test-ot.wasm.ttf
2023-02-23 22:28:16 +01:00
2023-02-25 15:57:04 +01:00
%.wasm: %.cc ../../../hb-wasm-api.h
2023-02-23 22:28:16 +01:00
clang \
--target=wasm32-unknown-wasi \
-Wl,--no-entry \
-fvisibility=hidden \
-Wl,--allow-undefined \
-nostdlib \
2023-02-25 15:57:04 +01:00
-I ../../.. \
2023-02-23 22:28:16 +01:00
$< \
-o $@
2023-02-25 15:57:04 +01:00
test-fallback.wasm.ttf: test.ttf shape-fallback.wasm $(ADD_TABLE)
python $(ADD_TABLE) $< $@ shape-fallback.wasm
2023-02-24 19:03:13 +01:00
2023-02-25 15:57:04 +01:00
test-ot.wasm.ttf: test.ttf shape-ot.wasm $(ADD_TABLE)
python $(ADD_TABLE) $< $@ shape-ot.wasm
2023-02-23 22:28:16 +01:00
clean:
2023-02-24 19:03:13 +01:00
$(RM) test-fallback.wasm.ttf test-ot.wasm.ttf shape-fallback.wasm shape-ot.wasm
2023-02-23 22:54:46 +01:00
2023-02-24 19:03:13 +01:00
.PRECIOUS: *.wasm