You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
740 B
Bash
22 lines
740 B
Bash
2 years ago
|
#!/bin/bash
|
||
|
set -e
|
||
|
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
|
||
|
CURRENT_REF="$(git rev-parse HEAD)"
|
||
|
rm -rf emscripten_builder
|
||
|
git clone https://github.com/lvgl/lv_sim_emscripten.git emscripten_builder
|
||
|
scripts/genexamplelist.sh > emscripten_builder/examplelist.c
|
||
|
cd emscripten_builder
|
||
10 months ago
|
git checkout 45e0bc5c8d3e55cfbcaf8214361d2335b8b9a7b4
|
||
2 years ago
|
git submodule update --init -- lvgl
|
||
|
cd lvgl
|
||
|
git checkout $CURRENT_REF
|
||
|
cd ..
|
||
|
git submodule update --init -- lv_drivers
|
||
|
mkdir cmbuild
|
||
|
cd cmbuild
|
||
|
emcmake cmake .. -DLVGL_CHOSEN_DEMO=lv_example_noop -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
||
|
emmake make -j$(nproc)
|
||
|
rm -rf CMakeFiles
|
||
|
cd ../..
|
||
|
cp -a emscripten_builder/cmbuild docs/_static/built_lv_examples
|