Remove setting of -DTIZEN_DEBUG_ENABLE compilation flag 28/108028/3
authorRafal Krypa <r.krypa@samsung.com>
Mon, 2 Jan 2017 11:05:28 +0000 (12:05 +0100)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 24 Jan 2017 07:55:22 +0000 (23:55 -0800)
This is a legacy flag inherited from security-server code base.
Nothing in the code uses it.

Change-Id: I86208743ea25b92f4a0612f7f94ea12ed7419ca4
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
CMakeLists.txt
packaging/security-manager.spec

index baaba47..98cb047 100644 (file)
@@ -99,10 +99,7 @@ IF(DB_LOGS)
     ADD_DEFINITIONS("-DDB_LOGS")
 ENDIF(DB_LOGS)
 
-IF (CMAKE_BUILD_TYPE MATCHES "DEBUG")
-    ADD_DEFINITIONS("-DTIZEN_DEBUG_ENABLE")
-    ADD_DEFINITIONS("-DBUILD_TYPE_DEBUG")
-ENDIF (CMAKE_BUILD_TYPE MATCHES "DEBUG")
+ADD_DEFINITIONS("-DBUILD_TYPE_${CMAKE_BUILD_TYPE}")
 
 SET(INCLUDE_PATH ${PROJECT_SOURCE_DIR}/src/include)
 SET(COMMON_PATH  ${PROJECT_SOURCE_DIR}/src/common)
index 22409ed..92ce98e 100644 (file)
@@ -89,13 +89,6 @@ cp %{SOURCE3} .
 cp %{SOURCE4} .
 cp %{SOURCE5} .
 
-%build
-%if 0%{?sec_build_binary_debug_enable}
-export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
-export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
-export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
-%endif
-
 export LDFLAGS+="-Wl,--rpath=%{_libdir}"
 
 %cmake . -DVERSION=%{version} \