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>
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
%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)