Allows debug builds to be enabled for GBS builds 88/71188/5
authorTom Robinson <tom.robinson@samsung.com>
Tue, 24 May 2016 10:51:18 +0000 (11:51 +0100)
committerTom Robinson <tom.robinson@samsung.com>
Tue, 24 May 2016 15:04:47 +0000 (08:04 -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: Icd0eccda950ceeb21eaa50956bebc78deb6973e5

README
packaging/dali.spec

diff --git a/README b/README
index 3ef1773..c3459d9 100644 (file)
--- a/README
+++ b/README
@@ -4,6 +4,7 @@ T.O.C.
  1.   GBS Builds
  1.1. NON-SMACK Targets
  1.2. SMACK enabled Targets
+ 1.3. DEBUG Builds
  2.   Building for Ubuntu desktop
  2.1. Minimum Requirements
  2.2. Creating a DALi Environment
@@ -27,6 +28,10 @@ T.O.C.
 
  gbs build -A [TARGET_ARCH] --define "%enable_dali_smack_rules 1"
 
+1.3. DEBUG Builds
+-----------------
+
+ gbs build -A [TARGET_ARCH] --define "%enable_debug 1"
 
 
 2. Building for Ubuntu desktop
index 8530450..d3f851f 100644 (file)
@@ -88,6 +88,9 @@ LDFLAGS="${LDFLAGS:-%optflags}" ; export LDFLAGS;
       --sharedstatedir=%{_sharedstatedir} \
       --mandir=%{_mandir} \
       --enable-gles=%{target_gles_version} \
+%if 0%{?enable_debug}
+      --enable-debug \
+%endif
       --infodir=%{_infodir}
 
 make %{?jobs:-j%jobs}