2.1. Minimum Requirements
2.2. Building the Repository
3. Creating an example
+ 4. Installing Emscripten examples
1. GBS Builds
- Modify "com.samsung.dali-demo.xml" to include your example so that it can be launched on target.
- No changes are required to the make system as long as the above is followed, your example will be automatically built & installed.
+
+4. Installing Emscripten Examples
+=================================
+
+Some Emscripten Javascript examples are included in dali-demo.
+
+They do not require building, to install them run the provided install script.
+Note: Your dali-env must be setup as it will install to your dali-env/opt/share/emscripten directory.
+
+# cd ./emscripten-examples
+# ./install.sh
+
+Run the examples by either opening them in a browser, or, running the browser from the command line with an example as a parameter.
ELSE()
SET(APP_DATA_DIR ${PREFIX}/share/com.samsung.dali-demo)
SET(BINDIR ${PREFIX}/bin)
-
- # Directory for compiled Emscripten artifacts along with Emscripten examples and demos.
- SET(EMSCRIPTEN_ENV_DIR ${APP_DATA_DIR}/../emscripten/)
- SET(EMSCRIPTEN_EXAMPLE_DIR ${ROOT_SRC_DIR}/emscripten-examples/)
ENDIF()
ADD_SUBDIRECTORY(demo)
ADD_SUBDIRECTORY(examples)
ADD_SUBDIRECTORY(builder)
-
-IF(NOT DEFINED DALI_APP_DIR)
- FILE( MAKE_DIRECTORY ${EMSCRIPTEN_ENV_DIR} )
- CONFIGURE_FILE( ${EMSCRIPTEN_EXAMPLE_DIR}/dali-toy.js ${EMSCRIPTEN_ENV_DIR}/ )
- CONFIGURE_FILE( ${EMSCRIPTEN_EXAMPLE_DIR}/dali-toy.html ${EMSCRIPTEN_ENV_DIR}/ )
- CONFIGURE_FILE( ${EMSCRIPTEN_EXAMPLE_DIR}/dali-doc-demo.html ${EMSCRIPTEN_ENV_DIR}/ )
-ENDIF()
--- /dev/null
+#!/bin/bash
+
+INSTALL_PATH=$DESKTOP_PREFIX/share/emscripten/
+
+echo "Installing Emscripten examples to: $INSTALL_PATH"
+
+mkdir -p $INSTALL_PATH
+cp -v *.{js,html} $INSTALL_PATH/
+