[4.0] Remove ExcludeArch and dead copmiler definitions 11/88611/4
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 20 Sep 2016 04:03:13 +0000 (04:03 +0000)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Mon, 31 Oct 2016 06:19:45 +0000 (23:19 -0700)
If TV-profile should not include this package, it should be removed from
the ks file (meta-tv.git). As we are trying to merge build projects,
trying not to build for a specific profile will become meaningless soon.
Thus, the ExcludeArch statement in the specfile is useless and confuses
the system. So, it is removed.

CMakeLists.txt states as if there are code with compiler definitions of
"_MOBILE_" and "_WEARABLE". However, grep on the source code has revealed
that there are no such code. Therefore, these two definitions are deadcode.

We have not yet completely removed profile build dependencies.

There will be another patch following this soon from me.

Change-Id: I59025327e0ca933fd5599388b13939973a81081a
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
CMakeLists.txt
packaging/context-provider.spec

index 303cca7a93fcae2f594c95a0c5b0140e419566a7..2c21cb6828e4487fa2f13f0ec2df817d5ef47cf1 100644 (file)
@@ -15,15 +15,6 @@ ADD_DEFINITIONS(-DLOG_TAG="CONTEXT")
 ADD_DEFINITIONS(-D_LIBDIR_="${LIBDIR}")
 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fPIC -Wl,--as-needed -Wl,--gc-section -Wl,--print-gc-section")
 
-# Profiles
-IF("${PROFILE}" STREQUAL "mobile")
-       ADD_DEFINITIONS("-D_MOBILE_")
-ENDIF("${PROFILE}" STREQUAL "mobile")
-
-IF("${PROFILE}" STREQUAL "wearable")
-       ADD_DEFINITIONS("-D_WEARABLE_")
-ENDIF("${PROFILE}" STREQUAL "wearable")
-
 INSTALL(
        DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/
        DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${target_dir}/internal
index 2a2a1d61dd6c27b29964e6679ceeef3e6118b421..765f4858f80ad4f9c4e887f6e5540633cebe1ddf 100644 (file)
@@ -8,10 +8,6 @@ Source0:    %{name}-%{version}.tar.gz
 
 %define BUILD_PROFILE %{?profile}%{!?profile:%{?tizen_profile_name}}
 
-%if "%{?BUILD_PROFILE}" == "tv"
-ExcludeArch: %{arm} aarch64 %ix86 x86_64
-%endif
-
 BuildRequires: cmake
 
 BuildRequires: pkgconfig(gmodule-2.0)