adding my fucking makefile
This commit is contained in:
28
SDL2_ttf/external/harfbuzz/src/wasm/graphite/Makefile
vendored
Normal file
28
SDL2_ttf/external/harfbuzz/src/wasm/graphite/Makefile
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
FONTS = CharisSIL-R.wasm.ttf Scheherazade-R.wasm.ttf AwamiNastaliq-Regular.wasm.ttf
|
||||
ADD_TABLE = ../../addTable.py
|
||||
|
||||
all: $(FONTS)
|
||||
|
||||
%.wasm: %.cc ../../hb-wasm-api.h
|
||||
emcc \
|
||||
-I ../.. \
|
||||
-I ~/graphite/include/ \
|
||||
-fvisibility=hidden \
|
||||
-Wl,--allow-undefined \
|
||||
-Wl,--no-entry \
|
||||
-Wl,--strip-all \
|
||||
-sERROR_ON_UNDEFINED_SYMBOLS=0 \
|
||||
-Wl,--export=malloc -Wl,--export=free \
|
||||
~/graphite/src/libgraphite2.a \
|
||||
~/wasm/wasi-sdk-19.0/share/wasi-sysroot/lib/wasm32-wasi/libc.a \
|
||||
$< \
|
||||
-o $@
|
||||
|
||||
|
||||
%.wasm.ttf: %.ttf shape.wasm $(ADD_TABLE)
|
||||
python $(ADD_TABLE) $< $@ shape.wasm
|
||||
|
||||
clean:
|
||||
$(RM) shape.wasm $(FONTS)
|
||||
|
||||
.PRECIOUS: shape.wasm
|
||||
25
SDL2_ttf/external/harfbuzz/src/wasm/sample/c/Makefile
vendored
Normal file
25
SDL2_ttf/external/harfbuzz/src/wasm/sample/c/Makefile
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
ADD_TABLE = ../../../addTable.py
|
||||
|
||||
all: test-fallback.wasm.ttf test-ot.wasm.ttf
|
||||
|
||||
%.wasm: %.cc ../../../hb-wasm-api.h
|
||||
clang \
|
||||
--target=wasm32-unknown-wasi \
|
||||
-Wl,--no-entry \
|
||||
-fvisibility=hidden \
|
||||
-Wl,--allow-undefined \
|
||||
-nostdlib \
|
||||
-I ../../.. \
|
||||
$< \
|
||||
-o $@
|
||||
|
||||
test-fallback.wasm.ttf: test.ttf shape-fallback.wasm $(ADD_TABLE)
|
||||
python $(ADD_TABLE) $< $@ shape-fallback.wasm
|
||||
|
||||
test-ot.wasm.ttf: test.ttf shape-ot.wasm $(ADD_TABLE)
|
||||
python $(ADD_TABLE) $< $@ shape-ot.wasm
|
||||
|
||||
clean:
|
||||
$(RM) test-fallback.wasm.ttf test-ot.wasm.ttf shape-fallback.wasm shape-ot.wasm
|
||||
|
||||
.PRECIOUS: *.wasm
|
||||
Reference in New Issue
Block a user