1 # Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
16 # @file platform.cmake
17 # @author Jihoon Chung (jihoon.chung@samsung.com)
19 # @brief Generate "platform.h"
22 # Platform feature macro generator
23 # Gererate a header file, "platform.h", to apply platform feature macro during building
25 # PRODUCT_XXX : Value definition come from "wrt-commons.spec" by "platform feature macro".
26 # VALUE_XXX : Value is used by "platform.h.in" to generate "platform.h".
28 # Definitions of feature by platform
29 # PRODUCT_FEATURE_OSP_DISABLE - sec_product_feature_osp_disable
31 # Definitions of values effect to platform.h
32 # VALUE_USE_WEBKIT_HW_BACKEND - USE_WEBKIT_HW_BACKEND
33 # VALUE_USE_EA_SCREEN_READER - USE_EA_SCREEN_READER
34 # VALUE_USE_OSP - USE_OSP
35 # VALUE_USE_WEB_PROVIDER - USE_WEB_PROVIDER
36 # VALUE_USE_CORE_HYBRID_PKG - USE_CORE_HYBRID_PKG
38 SET(VALUE_ENABLE_ONE_UI_PROCESS_MODEL 0)
39 SET(VALUE_ENABLE_WIDGET_INTERFACE_DAO_PERFORMANCE 1)
40 SET(VALUE_USE_CORE_HYBRID_PKG 1)
42 SET(VALUE_USE_EA_SCREEN_READER 0)
43 SET(VALUE_USE_EFL_LITE 0)
44 SET(VALUE_USE_WEBKIT_HW_BACKEND 1)
47 IF(WEB_PROVIDER_SUPPORT)
48 SET(VALUE_USE_WEB_PROVIDER 1)
49 ELSE(WEB_PROVIDER_SUPPORT)
50 SET(VALUE_USE_WEB_PROVIDER 0)
51 ENDIF(WEB_PROVIDER_SUPPORT)
53 CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/modules/core/include/dpl/platform.h.in ${PROJECT_SOURCE_DIR}/modules/core/include/dpl/platform.h)