Remove dead and dangerous code 86/97086/1
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 11 Nov 2016 06:29:27 +0000 (15:29 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 11 Nov 2016 06:29:27 +0000 (15:29 +0900)
- This is for Tizen 4.0

- For 4.0 Confiburability & Building-Blocks, we need to remove
profile build dependencies and this is the first step of it.

There will be other commits following this soon.

1. TIZEN_MOBILE/TIZEN_WEARABLE are useless:

wifi$ grep -r "TIZEN_MOBILE" *
CMakeLists.txt:IF(TIZEN_MOBILE)
CMakeLists.txt: ADD_DEFINITIONS(-DTIZEN_MOBILE)
CMakeLists.txt:ENDIF(TIZEN_MOBILE)
packaging/capi-network-wifi.spec: -DTIZEN_MOBILE=1 \
wifi$ grep -r "TIZEN_WEARABLE" *
CMakeLists.txt:IF(TIZEN_WEARABLE)
CMakeLists.txt: ADD_DEFINITIONS(-DTIZEN_WEARABLE)
CMakeLists.txt:ENDIF(TIZEN_WEARABLE)
packaging/capi-network-wifi.spec: -DTIZEN_WEARABLE=1 \
wifi$

2. capi-appfw-application is not used anymore.

It is removed from CMakeList.txt.

wifi$ grep -r "capi-appfw-application" *
packaging/capi-network-wifi.spec:BuildRequires:  pkgconfig(capi-appfw-application)
wifi$

Change-Id: I15defdfa2906738d102297c689f42b9adb3e6cce
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
CMakeLists.txt
packaging/capi-network-wifi.spec

index d0e48db..10da3ee 100755 (executable)
@@ -17,13 +17,6 @@ SET(pc_dependents "capi-base-common")
 IF(TIZEN_DUALSIM_ENABLE)
     ADD_DEFINITIONS(-DTIZEN_DUALSIM_ENABLE)
 ENDIF(TIZEN_DUALSIM_ENABLE)
-IF(TIZEN_WEARABLE)
-       ADD_DEFINITIONS(-DTIZEN_WEARABLE)
-ENDIF(TIZEN_WEARABLE)
-IF(TIZEN_MOBILE)
-       ADD_DEFINITIONS(-DTIZEN_MOBILE)
-ENDIF(TIZEN_MOBILE)
-
 IF(TIZEN_TV)
        ADD_DEFINITIONS(-DTIZEN_TV)
 ENDIF(TIZEN_TV)
index 6dac075..d799959 100755 (executable)
@@ -17,10 +17,6 @@ BuildRequires:       pkgconfig(capi-system-info)
 Requires(post):                /sbin/ldconfig
 Requires(postun):      /sbin/ldconfig
 
-%if "%{profile}" == "wearable"
-BuildRequires:  pkgconfig(capi-appfw-application)
-%endif
-
 %description
 Network Wi-Fi library in Tizen C API
 
@@ -44,17 +40,9 @@ cmake -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER} \
 %if 0%{?model_build_feature_network_dsds} == 1
        -DTIZEN_DUALSIM_ENABLE=1 \
 %endif
-%if "%{profile}" == "wearable"
-       -DTIZEN_WEARABLE=1 \
-%else
-%if "%{profile}" == "mobile"
-       -DTIZEN_MOBILE=1 \
-%else
 %if "%{profile}" == "tv"
        -DTIZEN_TV=1 \
 %endif
-%endif
-%endif
        .
 
 make %{?_smp_mflags}