Allows debug builds to be enabled for GBS builds 40/71240/2
authorTom Robinson <tom.robinson@samsung.com>
Tue, 24 May 2016 15:02:18 +0000 (16:02 +0100)
committerTom Robinson <tom.robinson@samsung.com>
Tue, 24 May 2016 15:05:46 +0000 (08:05 -0700)
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
packaging/dali-toolkit.spec

diff --git a/README b/README
index 2ecae9d..cb8aeb5 100644 (file)
--- 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
index c80971f..55fc495 100644 (file)
@@ -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}
 
 ##############################