Takes compilation profile from command line.
authorBartlomiej Grzelewski <b.grzelewski@samsung.com>
Thu, 11 Jul 2013 11:16:53 +0000 (13:16 +0200)
committerBartlomiej Grzelewski <b.grzelewski@samsung.com>
Thu, 6 Feb 2014 16:13:20 +0000 (17:13 +0100)
This command will start compilation with debug(-O0 -g -ggdb)
    gbs lb -A armv7l --define "build_type DEBUG"

Default command will use RELEASE profile(-02 -g):
    gbs lb -A armv7l

[Issue#]   N/A
[Bug]      N/A
[Cause]    N/A
[Problem]  N/A
[Solution] N/A

[Verification] Run tests.

Change-Id: Ic1388759b720aebadcfcf98dc0fbd5a73d9eb384

packaging/security-server.spec

index 916ffd3..7af2dbe 100644 (file)
@@ -64,11 +64,10 @@ cp %{SOURCE1001} .
 export LDFLAGS+="-Wl,--rpath=%{_libdir}"
 
 %cmake . -DVERSION=%{version} \
-        -DCMAKE_BUILD_TYPE=RELEASE \
+        -DCMAKE_BUILD_TYPE=%{?build_type:%build_type}%{!?build_type:RELEASE} \
         -DCMAKE_VERBOSE_MAKEFILE=OFF
 make %{?jobs:-j%jobs}
 
-
 %install
 rm -rf %{buildroot}
 mkdir -p %{buildroot}/usr/share/license