+
+
+3. Building for Emscripten
+--------------------------
+
+Currently the build for emscripten uses a minimal adaptor which does not support dali-toolkit.
+
+
+3.1. Setup dali-env & build dali-core
+-------------------------------------
+
+ The build requires the Emscripten SDK, this is installed automatically by running dali_env with the correct parameters.
+ dali_env is part of the dali-core repository.
+ Please see the README within dali-core to setup dali_env and build dali-core.
+
+
+3.2. Build the minimal dali-adaptor
+-----------------------------------
+
+ Use the build.sh script build adaptor.
+ This uses emscriptens emcc to compile byte code to javascript (full OpenGL ES support with stb-image loading library and cpp bindings).
+ Note: Please view the build.sh script for debug build options.
+
+ # cd ./build/emscripten
+ # ./build.sh
+
+
+3.3. Using the Javascript Build
+-------------------------------
+
+ The build will create 1 main Javascript artifact, and its html counterpart; dali-emscripten.js
+
+ This is required by any dali JS app, and must be located in the same directory as the app JS in order for the browser to find it.
+
+ After the build, the necessary artifacts (which include dali-wrapper.js) will be placed in the dali-env directory under opt/share/emscripten:
+
+ dali-env/opt/share/emscripten
+
+ If dali-demo is built, any JS examples will also be placed in this directory, so they are ready to run.