build: Add ENABLE_TPL_TEST_GCOV option on spec 23/164123/1
authorHoyub Lee <hoyub.lee@samsung.com>
Fri, 15 Dec 2017 10:04:12 +0000 (19:04 +0900)
committerHoyub Lee <hoyub.lee@samsung.com>
Fri, 15 Dec 2017 10:16:41 +0000 (19:16 +0900)
Change-Id: I984348d96269bb8230cd41141d556bd76b2447be
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
packaging/libtpl-egl.spec

index 38d6051..53f8edc 100644 (file)
@@ -1,4 +1,5 @@
 %bcond_with utest
+%bcond_with utest_gcov
 
 #TPL VERSION MACROS
 %define TPL_VERSION_MAJOR      1
@@ -19,7 +20,8 @@
 %define ENABLE_DEFAULT_WL_THREAD       0
 
 #TPL INSTALL OPTION
-%define ENABLE_TPL_TEST        0
+%define ENABLE_TPL_TEST                        0
+%define ENABLE_TPL_TEST_GCOV   0
 
 #WAYLAND-EGL VERSION MACROS
 %define WL_EGL_VERSION_MAJOR   1
@@ -153,6 +155,9 @@ export WL_EGL_VERSION_PATCH=%{WL_EGL_VERSION_PATCH}
 %endif
 %if %{with utest} || "%{ENABLE_TPL_TEST}" == "1"
        --with-utest=yes        \
+%if %{with utest_gcov} || "%{ENABLE_TPL_TEST_GCOV}" == "1"
+       --enable-gcov=yes       \
+%endif
 %endif
        --enable-dlog=%{ENABLE_DLOG}                                                    \
        --enable-dlog-default=%{ENABLE_DEFAULT_LOG}                             \