6 1.2. SMACK enabled Targets
8 2. Building for Ubuntu desktop
9 2.1. Minimum Requirements
10 2.2. Creating a DALi Environment
11 2.3. Building the Repository
12 2.4. Build target options
13 2.5. Building and executing test cases
14 3. Building DALi as Javascript using Emscripten
15 3.1. Creating a DALi Environment for Emscripten Javascript builds
16 3.2. Building the repository as Javascript using Emscripten
21 1.1. NON-SMACK Targets
22 ----------------------
24 gbs build -A [TARGET_ARCH]
26 1.2. SMACK enabled Targets
27 --------------------------
29 gbs build -A [TARGET_ARCH] --define "%enable_dali_smack_rules 1"
34 gbs build -A [TARGET_ARCH] --define "%enable_debug 1"
37 2. Building for Ubuntu desktop
38 ==============================
40 2.1. Minimum Requirements
41 ------------------------
45 2.2. Creating a DALi Environment
46 -------------------------------
48 To build for desktop first ensure ALL sources are selected:
49 - Go to Ubuntu Settings and then to "Software & Updates"
50 - In the "Ubuntu Software" tab, ensure ALL software sources are ticked
51 (This is required because we install some community-maintained free & open-source software)
53 Then you can create a dali-env folder in your home folder with:
55 dali-core/build/scripts/dali_env -c
57 This will also download any dependencies that the dali repositories require.
59 You can save the environment variables to a file:
61 dali-env/opt/bin/dali_env -s > setenv
63 This process only needs to be done once.
65 Next source these variables:
69 You will have to source these variables every time you open up a new terminal (or you can add to .bashrc if you prefer).
72 2.3. Building the Repository
73 ----------------------------
75 To build the repository enter the 'build/tizen' folder:
77 cd dali-core/build/tizen
79 Then run the following commands:
82 ./configure --prefix=$DESKTOP_PREFIX
86 2.4. Build target options
87 -------------------------
91 When building, the OpenGL ES version of the target should be specified.
93 Valid version options are 20, 30, 31
99 Add to the gbs build line: --define "%target_gles_version X"
102 2.5. Building and executing test cases
103 --------------------------------------
105 See the README.md in dali-core/automated-tests.
108 3. Building DALi as Javascript using Emscripten
109 -----------------------------------------------
112 3.1. Environment for Emscripten Javascript builds
113 --------------------------------------------------
115 To build the Javascript version of DALi, the Emscripten SDK is required.
116 Installation of this is built in to the main dali_env script.
118 First create a directory for the environment:
120 # mkdir -p ~/dali-env-emscripten
122 Now run the dali_env script. This will download and build the Emscripten SDK, which may take several minutes.
123 The script may ask for your password as it will need to install any package prerequisites.
124 Note the "-e" option for Emscripten.
126 # cd ~/dali-env-emscripten
127 # PATH-TO-DALI-CORE/build/scripts/dali_env -c -e
129 Create the setenv script. A new section for Emscripten will be created at the top.
131 # ./dali-env/opt/bin/dali_env -s > setenv
133 Run the setenv script to setup environment variables.
137 Warning: As of 19/01/2015 with a userID > 6 digits there was a bug in llvm that caused
138 the build to fail. So I've used the incoming branches of the emscripten sdk and not latest.
141 3.2. Building the repository as Javascript using Emscripten
142 -----------------------------------------------------------
144 Clean the build first:
146 # cd ./dali-core/build/tizen
148 # autoreconf --install
150 Use llvm's drop in replacements for configure & make:
152 # emconfigure ./configure --verbose --prefix=$DESKTOP_PREFIX --enable-emscripten=yes --enable-debug=yes --enable-profile=UBUNTU --enable-gles=20
153 # emmake make install -j8