# Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # # @file platform.cmake # @author Jihoon Chung (jihoon.chung@samsung.com) # @version 1.0 # @brief Generate "platform.h" # # Platform feature macro generator # Gererate a header file, "platform.h", to apply platform feature macro during building # # PRODUCT_XXX : Value definition come from "wrt-commons.spec" by "platform feature macro". # VALUE_XXX : Value is used by "platform.h.in" to generate "platform.h". # Definitions of feature by platform # PRODUCT_FEATURE_OSP_DISABLE - sec_product_feature_osp_disable # Definitions of values effect to platform.h # VALUE_USE_WEBKIT_HW_BACKEND - USE_WEBKIT_HW_BACKEND # VALUE_USE_EA_SCREEN_READER - USE_EA_SCREEN_READER # VALUE_USE_OSP - USE_OSP # VALUE_USE_WEB_PROVIDER - USE_WEB_PROVIDER # VALUE_USE_CORE_HYBRID_PKG - USE_CORE_HYBRID_PKG SET(VALUE_ENABLE_ONE_UI_PROCESS_MODEL 0) SET(VALUE_ENABLE_WIDGET_INTERFACE_DAO_PERFORMANCE 1) SET(VALUE_USE_CORE_HYBRID_PKG 1) SET(VALUE_USE_DRM 1) SET(VALUE_USE_EA_SCREEN_READER 0) SET(VALUE_USE_EFL_LITE 0) SET(VALUE_USE_WEBKIT_HW_BACKEND 1) SET(VALUE_USE_OSP 0) IF(WEB_PROVIDER_SUPPORT) SET(VALUE_USE_WEB_PROVIDER 1) ELSE(WEB_PROVIDER_SUPPORT) SET(VALUE_USE_WEB_PROVIDER 0) ENDIF(WEB_PROVIDER_SUPPORT) CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/modules/core/include/dpl/platform.h.in ${PROJECT_SOURCE_DIR}/modules/core/include/dpl/platform.h)