Merge "Update PageTurnView Demo" into devel/master
[platform/core/uifw/dali-demo.git] / README
1 T.O.C.
2 ======
3
4  1.   GBS Builds
5  1.1. NON-SMACK Targets
6  1.2. SMACK enabled Targets
7  2.   Building for Ubuntu desktop
8  2.1. Minimum Requirements
9  2.2. Building the Repository
10  3.   Creating an example
11  4.   Installing Emscripten examples
12
13
14 1. GBS Builds
15 =============
16
17 1.1. NON-SMACK Targets
18 ----------------------
19
20  gbs build -A [TARGET_ARCH]
21
22 1.2. SMACK enabled Targets
23 --------------------------
24
25  gbs build -A [TARGET_ARCH] --define "%enable_dali_smack_rules 1"
26
27
28
29 2. Building for Ubuntu desktop
30 ==============================
31
32 2.1. Minimum Requirements
33 ------------------------
34
35  - Ubuntu 14.04
36  - Environment created using dali_env script in dali-core repository
37
38 2.2. Building the Repository
39 ----------------------------
40
41 To build the repository enter the 'build/tizen' folder:
42
43  cd dali-demo/build/tizen
44
45 Then run the following commands:
46
47  cmake -DCMAKE_INSTALL_PREFIX=$DESKTOP_PREFIX .
48  make install -j8
49
50
51
52 3. Creating an example
53 ======================
54
55  - Make a directory in the "examples" directory. Only one example will be created per directory.
56  - The executable installed will have a ".example" appended to it, e.g. a "blocks" directory produces "blocks.example".
57  - Add all source files for the required example in this directory.
58  - Modify "com.samsung.dali-demo.xml" to include your example so that it can be launched on target.
59  - No changes are required to the make system as long as the above is followed, your example will be automatically built & installed.
60
61
62 4. Installing Emscripten Examples
63 =================================
64
65 Some Emscripten Javascript examples are included in dali-demo.
66
67 They do not require building, to install them run the provided install script.
68 Note: Your dali-env must be setup as it will install to your dali-env/opt/share/emscripten directory.
69
70 # cd ./emscripten-examples
71 # ./install.sh
72
73 Run the examples by either opening them in a browser, or, running the browser from the command line with an example as a parameter.