2020-05-22 21:54:28 +00:00
|
|
|
#!/bin/sh -ex
|
|
|
|
|
|
|
|
# Pull all the submodules except llvm
|
|
|
|
# Note: Tried to use git submodule status, but it takes over 20 seconds
|
|
|
|
# shellcheck disable=SC2046
|
2020-07-12 23:20:09 +00:00
|
|
|
git submodule -q update --init --depth 1 $(awk '/path/ && !/llvm/ { print $3 }' .gitmodules)
|
2020-05-22 21:54:28 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS="
|
|
|
|
-DWITH_LLVM=OFF
|
|
|
|
-DUSE_PRECOMPILED_HEADERS=OFF
|
|
|
|
-DUSE_NATIVE_INSTRUCTIONS=OFF
|
|
|
|
-DUSE_SYSTEM_FFMPEG=ON
|
|
|
|
-DUSE_SYSTEM_CURL=ON
|
|
|
|
-DUSE_SYSTEM_LIBPNG=ON
|
|
|
|
"
|
|
|
|
|
|
|
|
# shellcheck disable=SC2086
|
|
|
|
cmake -B build -G Ninja $CONFIGURE_ARGS
|
|
|
|
cmake --build build
|
|
|
|
|
2020-07-12 23:15:32 +00:00
|
|
|
ccache --show-stats
|
|
|
|
ccache --zero-stats
|