6 1.2. SMACK enabled Targets
7 2. Building for Ubuntu desktop
8 2.1. Minimum Requirements
9 2.2. Creating a DALi Environment
10 2.3. Building the Repository
11 2.4. Build target options
12 2.5. Building and executing test cases
13 3. Building DALi as Javascript using Emscripten
14 3.1. Creating a DALi Environment for Emscripten Javascript builds
15 3.2. Building the repository as Javascript using Emscripten
20 1.1. NON-SMACK Targets
21 ----------------------
23 gbs build -A [TARGET_ARCH]
25 1.2. SMACK enabled Targets
26 --------------------------
28 gbs build -A [TARGET_ARCH] --define "%enable_dali_smack_rules 1"
32 2. Building for Ubuntu desktop
33 ==============================
35 2.1. Minimum Requirements
36 ------------------------
40 2.2. Creating a DALi Environment
41 -------------------------------
43 To build for desktop first ensure ALL sources are selected:
44 - Go to Ubuntu Settings and then to "Software & Updates"
45 - In the "Ubuntu Software" tab, ensure ALL software sources are ticked
46 (This is required because we install some community-maintained free & open-source software)
48 Then you can create a dali-env folder in your home folder with:
50 dali-core/build/scripts/dali_env -c
52 This will also download any dependencies that the dali repositories require.
54 You can save the environment variables to a file:
56 dali-env/opt/bin/dali_env -s > setenv
58 This process only needs to be done once.
60 Next source these variables:
64 You will have to source these variables every time you open up a new terminal (or you can add to .bashrc if you prefer).
67 2.3. Building the Repository
68 ----------------------------
70 To build the repository enter the 'build/tizen' folder:
72 cd dali-core/build/tizen
74 Then run the following commands:
77 ./configure --prefix=$DESKTOP_PREFIX
81 2.4. Build target options
82 -------------------------
86 When building, the OpenGL ES version of the target should be specified.
88 Valid version options are 20, 30, 31
94 Add to the gbs build line: --define "%target_gles_version X"
97 2.5. Building and executing test cases
98 --------------------------------------
100 See the README.md in dali-core/automated-tests.
103 3. Building DALi as Javascript using Emscripten
104 -----------------------------------------------
107 3.1. Environment for Emscripten Javascript builds
108 --------------------------------------------------
110 To build the Javascript version of DALi, the Emscripten SDK is required.
111 Installation of this is built in to the main dali_env script.
113 First create a directory for the environment:
115 # mkdir -p ~/dali-env-emscripten
117 Now run the dali_env script. This will download and build the Emscripten SDK, which may take several minutes.
118 The script may ask for your password as it will need to install any package prerequisites.
119 Note the "-e" option for Emscripten.
121 # cd ~/dali-env-emscripten
122 # PATH-TO-DALI-CORE/build/scripts/dali_env -c -e
124 Create the setenv script. A new section for Emscripten will be created at the top.
126 # ./dali-env/opt/bin/dali-env -s > setenv
128 Run the setenv script to setup environment variables.
132 Warning: As of 19/01/2015 with a userID > 6 digits there was a bug in llvm that caused
133 the build to fail. So I've used the incoming branches of the emscripten sdk and not latest.
136 3.2. Building the repository as Javascript using Emscripten
137 -----------------------------------------------------------
139 Clean the build first:
141 # cd ./dali-core/build/tizen
143 # autoreconf --install
145 Use llvm's drop in replacements for configure & make:
147 # emconfigure ./configure --verbose --prefix=$DESKTOP_PREFIX --enable-emscripten=yes --enable-debug=yes --enable-profile=UBUNTU --enable-gles=20
148 # emmake make install -j8