Modified build option naming rule 33/69433/1 accepted/tizen/common/20160518.124822 accepted/tizen/ivi/20160518.003842 accepted/tizen/mobile/20160518.003819 accepted/tizen/tv/20160518.003833 accepted/tizen/wearable/20160518.003808 submit/tizen/20160517.075821
authortaesubkim <taesub.kim@samsung.com>
Fri, 13 May 2016 07:33:36 +0000 (16:33 +0900)
committertaesubkim <taesub.kim@samsung.com>
Fri, 13 May 2016 07:34:06 +0000 (16:34 +0900)
Change-Id: Ia04cf1a5d374d0aac39d4945a232b32542485ec9
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
CMakeLists.txt
packaging/capi-vpn-service.spec

index b60293d..ee997cb 100755 (executable)
@@ -24,15 +24,6 @@ ADD_DEFINITIONS("-fPIC")
 # ADD_DEFINITIONS("-Werror")                      # Make all warnings into errors.
 ADD_DEFINITIONS("-Wall")                        # Generate all warnings
 
 # ADD_DEFINITIONS("-Werror")                      # Make all warnings into errors.
 ADD_DEFINITIONS("-Wall")                        # Generate all warnings
 
-STRING(REGEX MATCH "([^.]*)" API_VERSION "${VERSION}")
-ADD_DEFINITIONS("-DAPI_VERSION=\"$(API_VERSION)\"")
-ADD_DEFINITIONS("-DSMACK_ENABLED")
-
-IF (CMAKE_BUILD_TYPE MATCHES "DEBUG")
-    ADD_DEFINITIONS("-DTIZEN_DEBUG_ENABLE")
-    ADD_DEFINITIONS("-DBUILD_TYPE_DEBUG")
-ENDIF (CMAKE_BUILD_TYPE MATCHES "DEBUG")
-
 ADD_SUBDIRECTORY(framework)
 ADD_SUBDIRECTORY(daemon)
 ADD_SUBDIRECTORY(test)
 ADD_SUBDIRECTORY(framework)
 ADD_SUBDIRECTORY(daemon)
 ADD_SUBDIRECTORY(test)
index 9e3b66d..f30b897 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       vpnsvc-pkg
 Summary:    VPN service library in TIZEN C API
 Name:       vpnsvc-pkg
 Summary:    VPN service library in TIZEN C API
-Version:    1.0.15
+Version:    1.0.16
 Release:    1
 Group:      System/Network
 License:    Apache-2.0
 Release:    1
 Group:      System/Network
 License:    Apache-2.0
@@ -65,26 +65,13 @@ vpnsvc daemon package
 %setup -q
 
 %build
 %setup -q
 
 %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
-
-%if 0%{?tizen_build_binary_release_type_eng}
-export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
-export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
-export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
-%endif
-
 export LDFLAGS+="-Wl,--rpath=%{_libdir}"
 
 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
 %cmake . -DVERSION=%{version} \
 export LDFLAGS+="-Wl,--rpath=%{_libdir}"
 
 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
 %cmake . -DVERSION=%{version} \
-               -DFULLVER=%{version} \
-               -DMAJORVER=${MAJORVER} \
+       -DFULLVER=%{version} \
+       -DMAJORVER=${MAJORVER} \
         -DCMAKE_BUILD_TYPE=%{?build_type:%build_type}%{!?build_type:RELEASE} \
         -DCMAKE_BUILD_TYPE=%{?build_type:%build_type}%{!?build_type:RELEASE} \
-               -DTIZEN_ENGINEER_MODE=%{?tizen_build_binary_release_type_eng:1}%{!?tizen_build_binary_release_type_eng:0} \
         -DCMAKE_VERBOSE_MAKEFILE=ON \
         -DLIB_INSTALL_DIR=%{_libdir}
 
         -DCMAKE_VERBOSE_MAKEFILE=ON \
         -DLIB_INSTALL_DIR=%{_libdir}