X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=README.md;h=29330902abf8fdbcc86e5f4cd3e4a20a9d3dbd98;hb=e96676a48a1948833044e39fc35af16e220d1580;hp=d415a7676faa9009e064505d5dc240af187da1a1;hpb=6d728f7d105de1c708806ba5372c536077c384f6;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/README.md b/README.md index d415a76..2933090 100644 --- a/README.md +++ b/README.md @@ -10,19 +10,22 @@ * [Building and executing test cases](#building-and-executing-test-cases) * [2. GBS Builds](#2-gbs-builds) * [DEBUG Builds](#debug-builds) - * [3. Building for Emscripten](#3-building-for-emscripten) - * [Setup dali-env & build dali-core](#setup-dali-env--build-dali-core) - * [Build the minimal dali-adaptor](#build-the-minimal-dali-adaptor) - * [Using the Javascript Build](#using-the-javascript-build) # Build Instructions ## 1. Building for Ubuntu desktop -### Minimum Requirements +### Requirements - Ubuntu 14.04 or later - Environment created using dali_env script in dali-core repository + - GCC version 6 + +DALi requires a compiler supporting C++11 features. +Ubuntu 16.04 is the first version to offer this by default (GCC v5.4.0). + +GCC version 6 is recommended since it has fixes for issues in version 5 +e.g. it avoids spurious 'defined but not used' warnings in header files. ### Building the Repository @@ -36,20 +39,6 @@ Then run the following commands: $ ./configure --prefix=$DESKTOP_PREFIX $ make install -j8 -### Build target options - -OpenGL ES context: - -When building, the OpenGL ES version of the target should be specified. - -Valid version options are 20, 30, 31 for OpenGL ES versions 2.0, 3.0 and 3.1 respectively. - -With configure: -Add: *--enable-gles=X* - -With gbs: -Add to the gbs build line: *--define "%target_gles_version X"* - ### Building and executing test cases See the README.md in dali-adaptor/automated-tests. @@ -62,33 +51,3 @@ See the README.md in dali-adaptor/automated-tests. $ gbs build -A [TARGET_ARCH] --define "%enable_debug 1" -## 3. Building for Emscripten - -Currently the build for emscripten uses a minimal adaptor which does not support dali-toolkit. - -### Setup dali-env & build dali-core - - The build requires the Emscripten SDK, this is installed automatically by running dali_env with the correct parameters. - dali_env is part of the dali-core repository. - Please see the README within dali-core to setup dali_env and build dali-core. - -### Build the minimal dali-adaptor - - Use the build.sh script build adaptor. - This uses emscriptens emcc to compile byte code to javascript (full OpenGL ES support with stb-image loading library and cpp bindings). - Note: Please view the build.sh script for debug build options. - - $ # cd ./build/emscripten - $ # ./build.sh - -### Using the Javascript Build - - The build will create 1 main Javascript artifact, and its html counterpart; dali-emscripten.js - - This is required by any dali JS app, and must be located in the same directory as the app JS in order for the browser to find it. - - After the build, the necessary artifacts (which include dali-wrapper.js) will be placed in the dali-env directory under opt/share/emscripten: - - dali-env/opt/share/emscripten - - If dali-demo is built, any JS examples will also be placed in this directory, so they are ready to run.