6 1.2. SMACK enabled Targets
8 2. Building for Ubuntu desktop
9 2.1. Minimum Requirements
10 2.2. Building the Repository
12 3. Creating an example
13 4. Installing Emscripten examples
19 1.1. NON-SMACK Targets
20 ----------------------
22 gbs build -A [TARGET_ARCH]
24 1.2. SMACK enabled Targets
25 --------------------------
27 gbs build -A [TARGET_ARCH] --define "%enable_dali_smack_rules 1"
32 gbs build -A [TARGET_ARCH] --define "%enable_debug 1"
36 2. Building for Ubuntu desktop
37 ==============================
39 2.1. Minimum Requirements
40 ------------------------
43 - Environment created using dali_env script in dali-core repository
45 2.2. Building the Repository
46 ----------------------------
48 To build the repository enter the 'build/tizen' folder:
50 cd dali-demo/build/tizen
52 Then run the following commands:
54 cmake -DCMAKE_INSTALL_PREFIX=$DESKTOP_PREFIX .
60 Specify a debug build when building for desktop by passing the following parameter to cmake:
62 cmake -DCMAKE_INSTALL_PREFIX=$DESKTOP_PREFIX -DCMAKE_BUILD_TYPE=Debug .
64 Before running make install as normal:
69 3. Creating an example
70 ======================
72 - Make a directory in the "examples" directory. Only one example will be created per directory.
73 - The executable installed will have a ".example" appended to it, e.g. a "blocks" directory produces "blocks.example".
74 - Add all source files for the required example in this directory.
75 - Modify "com.samsung.dali-demo.xml" to include your example so that it can be launched on target.
76 - No changes are required to the make system as long as the above is followed, your example will be automatically built & installed.
79 4. Installing Emscripten Examples
80 =================================
82 Some Emscripten Javascript examples are included in dali-demo.
84 They do not require building, to install them run the provided install script.
85 Note: Your dali-env must be setup as it will install to your dali-env/opt/share/emscripten directory.
87 # cd ./emscripten-examples
90 Run the examples by either opening them in a browser, or, running the browser from the command line with an example as a parameter.