6a163d28ab8c61234e02ca659984c421fbfce1f0
[platform/framework/web/chromium-efl.git] / tizen_src / build / config / tizen_features.gni
1 # Copyright (c) 2015 Samsung Electronics. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import("//build/config/ui.gni")
6
7 declare_args() {
8   gcc_version = 49
9
10   use_wayland = false
11
12   gcc_ver = ""
13   python_ver = "2.5"  # no use of this variable, if removing then revome from
14                       # gn_chromiumefl.sh also
15
16   depth = ""  # no use of this variable, if removing then revome from
17               # gn_chromiumefl.sh also
18   outdir = ""
19
20   lto_level = ""
21
22   use_cairo = false
23   use_lto = false
24   use_pango = false
25
26   use_ttrace = false
27   use_ttrace_chrome_trace = false
28
29   werror = false
30
31   tizen_clang_base_path = "//tizen_src/buildtools/llvm"
32
33   tizen_product_tv = false
34   tizen_product_da = false
35   tizen_vd_lfd = false
36   tizen_vd_iwb = false
37
38   exe_dir = "/usr/lib/chromium-efl/"
39   lib_ro_root_dir = "/usr/share/chromium-efl"
40   lib_upgrade_root_dir = "/usr/share/chromium-efl/upgrade"
41   app_ro_root_dir = "/usr/apps/org.tizen.chromium-efl"
42   app_rw_root_dir = "/opt/usr/globalapps/org.tizen.chromium-efl"
43   app_upgrade_root_dir = "/opt/usr/globalapps/org.tizen.chromium-efl-upgrade"
44   edje_dir = "/usr/share/chromium-efl/themes/"
45   locale_dir = "/usr/share/chromium-efl/locale/"
46   image_dir = "/usr/share/chromium-efl/images/"
47   chromium_impl_lib_name = "libchromium-ewk.so"
48
49   tizen_version = 0
50   tizen_version_major = 0
51   tizen_version_minor = 0
52   tizen_version_patch = 0
53
54   build_chrome = false
55   enable_ewk_interface = false
56
57   enable_wrt_js = false
58   tizen_atmos_decoder_enable = false
59   tizen_pepper_extensions = false
60
61   # Tizen multimedia related
62   tizen_multimedia = false
63   tizen_tbm_support = false
64   enable_trace_event = false
65   use_plugin_placeholder_hole = false
66   tizen_video_hole = false
67   tizen_audio_io = false
68   tizen_web_speech_recognition = false
69
70   tizen_autofill = false
71   tizen_autofill_fw = false
72   tizen_vd_accessory = false
73
74   tizen_resource_manager = false
75   enable_network_camera = false
76   enable_gamepad_latency_test = false
77   tizen_thread_booster_service = false
78
79   drm_mapi_aarch_64 = false
80 }
81
82 if (use_efl && !build_chrome) {
83   tizen_autofill = true
84   if (tizen_product_tv) {
85     tizen_autofill_fw = true
86   }
87 }
88
89 if (use_ttrace) {
90   use_ttrace_chrome_trace = true
91 }
92
93 if (enable_ewk_interface) {
94   chromium_impl_lib_name = "libchromium-impl.so"
95 }
96
97 # Enable ttrace except chrome trace log for TV profile by default
98 if (tizen_product_tv) {
99   use_ttrace = true
100 }
101
102 if (use_atk) {
103   tizen_atk_support = true
104   if (tizen_product_tv) {
105     tizen_atk_feature_vd = true
106   } else {
107     tizen_atk_feature_vd = false
108   }
109 } else {
110   tizen_atk_support = false
111   tizen_atk_feature_vd = false
112 }
113
114 werror = false
115
116 # This file should contain gn code that is supposed to be common
117 # for all build targets we have in chromium-ewk. Things specific only to one
118 # component should go to appropriate gni file included below.
119
120 use_gstreamer_fft = false
121
122 ewk_bringup = true
123 wayland_bringup = use_wayland
124
125 compile_suid_client = true
126 compile_credentials = true
127
128 edje_compiler = "edje_cc"
129
130 if (use_ozone) {
131   # Declared from the //build/config/ui.gni
132   #use_glib = true
133   external_ozone_platforms = [ "efl" ]
134 }