tizen 2.4 release
[framework/web/wrt-installer.git] / build / Options.cmake
1 # Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
2 #
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
6 #
7 #        http://www.apache.org/licenses/LICENSE-2.0
8 #
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.
14 #
15 #
16 # @file        Options.cmake
17 # @author      Tae-Jeong Lee (taejeong.lee@samsung.com)
18 #
19
20 # Macro declaration
21 #  - WRT_OPTION() : Wrapper omitting description argument from OPTION() command.
22 MACRO(WRT_OPTION feature_name on_off)
23     OPTION(${feature_name} "" ${on_off})
24 ENDMACRO(WRT_OPTION)
25
26 # Use Feature
27 #   Use a particular optional platform service or third-party library
28 #
29 # Description : <text>
30 #               <text>
31 # Author : <text>(<email>) - <date>
32 # WRT_OPTION(<REPOSITORY_NAME>_USE_<FEATURE_NAME> ON/OFF)
33
34
35 # Enable Feature
36 #   Turn on a specific feature of WRT
37 #
38 # Description : <text>
39 #               <text>
40 # Author : <text>(<email>) - <date>
41 # WRT_OPTION(<REPOSITORY_NAME>_ENABLE_<FEATURE_NAME> ON/OFF)
42
43 # Description : Enable web-provider
44 # Author : Jihoon Chung (jihoon.chung@samsung.com) - 05.31.2014
45 IF(WEB_PROVIDER_SUPPORT)
46 WRT_OPTION(WRT_ENABLE_WEB_PROVIDER ON)
47 ELSE(WEB_PROVIDER_SUPPORT)
48 WRT_OPTION(WRT_ENABLE_WEB_PROVIDER OFF)
49 ENDIF(WEB_PROVIDER_SUPPORT)
50
51 # Description : Support pre-launching webapp installation
52 # Author : Tae-Jeong Lee (taejeong.lee@samsung.com) - 11.28.2013
53 WRT_OPTION(WRT_ENABLE_PRE_LAUNCH OFF)
54