From acc10b1379c0063818750e00d9276909f6265067 Mon Sep 17 00:00:00 2001 From: Tom Robinson Date: Tue, 24 May 2016 16:02:18 +0100 Subject: [PATCH] Allows debug builds to be enabled for GBS builds You can now enable a debug build of DALi via GBS by adding the following to your GBS build line: --define "%enable_debug 1" Details in README file. Change-Id: Id7116cd8d1ccf94a2f71a280ecdcc1803f7281de --- README | 9 ++++++++- packaging/dali-toolkit.spec | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/README b/README index 2ecae9d..cb8aeb5 100644 --- a/README +++ b/README @@ -4,6 +4,8 @@ T.O.C. 1. GBS Builds 1.1. NON-SMACK Targets 1.2. SMACK enabled Targets + 1.3. DEBUG Builds + 1.4. MOBILE Profile 2. Building for Ubuntu desktop 2.1. Minimum Requirements 2.2. Building the Repository @@ -23,7 +25,12 @@ T.O.C. gbs build -A [TARGET_ARCH] --define "%enable_dali_smack_rules 1" -1.3. MOBILE Profile +1.3. DEBUG Builds +----------------- + + gbs build -A [TARGET_ARCH] --define "%enable_debug 1" + +1.4. MOBILE Profile ------------------- gbs build -A [TARGET_ARCH] --spec dali-toolkit-mobile.spec diff --git a/packaging/dali-toolkit.spec b/packaging/dali-toolkit.spec index c80971f..55fc495 100644 --- a/packaging/dali-toolkit.spec +++ b/packaging/dali-toolkit.spec @@ -87,7 +87,14 @@ cd %{_builddir}/dali-toolkit-%{version}/build/tizen autoreconf --install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" ; export DALI_DATA_RW_DIR DALI_DATA_RO_DIR="%{dali_data_ro_dir}" ; export DALI_DATA_RO_DIR -%configure --enable-profile=%{dali_toolkit_profile} --with-style=%{dali_style_folder} --enable-i18n=yes + +%configure --enable-profile=%{dali_toolkit_profile} \ + --with-style=%{dali_style_folder} \ +%if 0%{?enable_debug} + --enable-debug \ +%endif + --enable-i18n=yes + make %{?jobs:-j%jobs} ############################## -- 2.7.4