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.
15 'wayland_bringup%': 0,
17 'building_for_tizen%': 0,
18 'building_for_tizen_mobile%': 0,
19 'building_for_tizen_tv%': 0,
21 'building_strategy%': 'ewk', # 'ewk', 'libs' and 'crosswalk-bin'
23 'xwalk_link_against_chromium_ewk%': 0,
25 'tizen_multimedia_support%': 1,
26 'tizen_multimedia_eme_support%': 1,
27 # [M44_2403] Temporary disabling the tizen_disable_gpu_thread for switching to new chromium
28 # FIXME: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=14046
29 'tizen_disable_gpu_thread%': 0,
31 'data_dir%' : '/usr/share/chromium-efl/',
32 'exe_dir%' : '/usr/lib/chromium-efl/',
33 'edje_dir%' : '/usr/share/chromium-efl/themes/',
34 'locale_dir%': '/usr/share/chromium-efl/locale/',
36 'edje_compiler%': 'edje_cc',
38 'prebuilt_ld_gold_dir%': '',
40 'chromium_efl_tizen_version%': '2.4',
42 'grit_additional_defines': [ '-D', 'use_aura' ],
46 'build/efl_filename_rules.gypi',
47 'chromium_impl/chromium_impl.gypi',
54 'external_ozone_platforms': [
60 ['xwalk_link_against_chromium_ewk==1', {
62 'ewk/efl_integration/link_xwalk_against_chromium_efl.gypi',
64 }], # xwalk_link_against_chromium_ewk==1
71 '<(DEPTH)/tizen_src/ecore_wrapper',
75 # TODO: Check if those defines are still necessary. If they are add an explanation why.
78 'BUILDING_V8_SHARED=1',
89 '<(DEPTH)/tizen_src/chromium_impl',
94 'defines': [ 'EWK_BRINGUP=1' ],
97 ['prebuilt_ld_gold_dir!=""', {
99 '-B<(prebuilt_ld_gold_dir)',
103 ['gcc_version >= 49', {
105 # In GCC 4.9, the linker (either bfd or gold) is called with the -plugin argument
106 # which our current bundled gold linker (in build/prebuild) does not accept.
107 # Since our gold a x64 64bit statically linked binary, even if we rebuild it
108 # with plugin support enabled, the plugin being loaded would be a 32bit ARM binary.
109 # and load would fail. So we disable linker's plugin loadeir (specifically
110 # gcc's liblto_plugin).
111 '-fno-use-linker-plugin',
117 ['tizen_multimedia_support==1', {
119 'TIZEN_MULTIMEDIA_SUPPORT=1',
123 ['tizen_disable_gpu_thread==1', {
125 'TIZEN_DISABLE_GPU_THREAD=1',
129 ['building_for_tizen==1', {
135 ['chromium_efl_tizen_version=="3.0"', {
137 'TIZEN_MAJOR_VERSION=3',
138 'TIZEN_MINOR_VERSION=0',
139 'TIZEN_PATCH_VERSION=0',
142 ['chromium_efl_tizen_version=="2.4"', {
144 'TIZEN_MAJOR_VERSION=2',
145 'TIZEN_MINOR_VERSION=4',
146 'TIZEN_PATCH_VERSION=0',
149 ['chromium_efl_tizen_version=="2.3"', {
151 'TIZEN_MAJOR_VERSION=2',
152 'TIZEN_MINOR_VERSION=3',
153 'TIZEN_PATCH_VERSION=0',
161 # TODO: There are X11 dependencies in following condition.
162 # The files need to be implemented based on Wayland.
163 ['wayland_bringup==1', {
171 ['building_for_tizen_mobile==1', {
174 'WTF_OS_TIZEN_MOBILE=1',
175 'TIZEN_CONTENTS_DETECTION=1',
176 'TIZEN_ENABLE_CAPI_SUPPORT=1',
180 ['building_for_tizen_tv==1', {
186 ['chromium_efl_tizen_version=="2.4"', {
187 # The tizen v2.4 tv build gets its cpu-specific flags from the Tizen build system.
190 '-mtune=generic-armv7-a',