36 lines
708 B
Bash
Executable File
36 lines
708 B
Bash
Executable File
#!/bin/bash -eux
|
|
|
|
source common.sh
|
|
|
|
rm -rf "$BUILD_DIR"
|
|
rm -rf "$WWW_DIR"
|
|
|
|
# Emscripten comes with ports for most of these, but they don't compile
|
|
# with pthread support. Wipe the cache and build them ourselves.
|
|
emcc --clear-cache --clear-ports
|
|
|
|
./fetch_sources.sh
|
|
|
|
# Dependencies
|
|
./build_zlib.sh
|
|
./build_libjpeg.sh
|
|
./build_libpng.sh # uses zlib
|
|
./build_libogg.sh
|
|
./build_libvorbis.sh # uses ogg
|
|
./build_freetype.sh # uses zlib, libpng
|
|
./build_zstd.sh
|
|
./build_libarchive.sh # uses zstd
|
|
./build_sqlite3.sh
|
|
./build_webshims.sh
|
|
./build_openssl.sh
|
|
./build_curl.sh # uses webshims, openssl, zlib
|
|
|
|
# Minetest
|
|
./build_minetest.sh
|
|
|
|
# Virtual file system
|
|
./build_fsroot.sh
|
|
|
|
# Finished product
|
|
./build_www.sh
|