diff --git a/scripts/build_html_examples.sh b/scripts/build_html_examples.sh index 1ffdaf9361..d8da85cff8 100755 --- a/scripts/build_html_examples.sh +++ b/scripts/build_html_examples.sh @@ -10,6 +10,10 @@ cd lvgl git checkout $CURRENT_REF cd .. git submodule update --init -- lv_drivers -make -j$(nproc) CHOSEN_DEMO=lv_example_noop || exit 1 -cd .. -cp -a emscripten_builder/build docs/_static/built_lv_examples +mkdir cmbuild +cd cmbuild +emcmake cmake .. -DLVGL_CHOSEN_DEMO=lv_example_noop +make -j$(nproc) +rm -rf CMakeFiles +cd ../.. +cp -a emscripten_builder/cmbuild docs/_static/built_lv_examples