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.
5 # This file should contain contain gyp code that is supposed to be common
6 # for all build targets we have in chromium-ewk. Thigs specific only to one
7 # component should go to appropriate gypi file included below.
13 'use_default_render_theme%': 1,
16 'wayland_bringup%': 0,
18 'building_for_tizen%': 0,
19 'building_for_tizen_mobile%': 0,
20 'building_for_tizen_tv%': 0,
22 'building_strategy%': 'ewk', # 'ewk', 'libs' and 'crosswalk-bin'
24 'xwalk_link_against_chromium_ewk%': 0,
26 'tizen_multimedia_support%': 1,
27 'tizen_multimedia_eme_support%': 1,
28 # [M44_2403] Temporary disabling the tizen_disable_gpu_thread for switching to new chromium
29 # FIXME: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=14046
30 'tizen_disable_gpu_thread%': 0,
32 'data_dir%' : '/usr/share/chromium-efl/',
33 'exe_dir%' : '/usr/lib/chromium-efl/',
34 'edje_dir%' : '/usr/share/chromium-efl/themes/',
35 'locale_dir%': '/usr/share/chromium-efl/locale/',
37 'edje_compiler%': 'edje_cc',
39 'prebuilt_ld_gold_dir%': '',
41 'chromium_efl_tizen_version%': '2.4',
43 'grit_additional_defines': [ '-D', 'use_aura' ],
47 'build/efl_filename_rules.gypi',
48 'chromium_impl/chromium_impl.gypi',
55 'external_ozone_platforms': [
61 ['xwalk_link_against_chromium_ewk==1', {
63 'ewk/efl_integration/link_xwalk_against_chromium_efl.gypi',
65 }], # xwalk_link_against_chromium_ewk==1
72 '<(DEPTH)/tizen_src/ecore_wrapper',
76 # TODO: Check if those defines are still necessary. If they are add an explanation why.
79 'BUILDING_V8_SHARED=1',
90 '<(DEPTH)/tizen_src/chromium_impl',
95 'defines': [ 'EWK_BRINGUP=1' ],
98 ['prebuilt_ld_gold_dir!=""', {
100 '-B<(prebuilt_ld_gold_dir)',
104 ['gcc_version >= 49', {
106 # In GCC 4.9, the linker (either bfd or gold) is called with the -plugin argument
107 # which our current bundled gold linker (in build/prebuild) does not accept.
108 # Since our gold a x64 64bit statically linked binary, even if we rebuild it
109 # with plugin support enabled, the plugin being loaded would be a 32bit ARM binary.
110 # and load would fail. So we disable linker's plugin loadeir (specifically
111 # gcc's liblto_plugin).
112 '-fno-use-linker-plugin',
118 ['tizen_multimedia_support==1', {
120 'TIZEN_MULTIMEDIA_SUPPORT=1',
124 ['tizen_disable_gpu_thread==1', {
126 'TIZEN_DISABLE_GPU_THREAD=1',
130 ['building_for_tizen==1', {
136 ['chromium_efl_tizen_version=="3.0"', {
138 'TIZEN_MAJOR_VERSION=3',
139 'TIZEN_MINOR_VERSION=0',
140 'TIZEN_PATCH_VERSION=0',
143 ['chromium_efl_tizen_version=="2.4"', {
145 'TIZEN_MAJOR_VERSION=2',
146 'TIZEN_MINOR_VERSION=4',
147 'TIZEN_PATCH_VERSION=0',
150 ['chromium_efl_tizen_version=="2.3"', {
152 'TIZEN_MAJOR_VERSION=2',
153 'TIZEN_MINOR_VERSION=3',
154 'TIZEN_PATCH_VERSION=0',
162 # TODO: There are X11 dependencies in following condition.
163 # The files need to be implemented based on Wayland.
164 ['wayland_bringup==1', {
172 ['building_for_tizen_mobile==1', {
175 'WTF_OS_TIZEN_MOBILE=1',
176 'TIZEN_CONTENTS_DETECTION=1',
177 'TIZEN_ENABLE_CAPI_SUPPORT=1',
181 ['building_for_tizen_tv==1', {
187 ['chromium_efl_tizen_version=="2.4"', {
188 # The tizen v2.4 tv build gets its cpu-specific flags from the Tizen build system.
191 '-mtune=generic-armv7-a',