[Tizen][dev] Fix TV build
[platform/framework/web/chromium-efl.git] / tizen_src / impl / chromium-efl.gypi
1 {
2   'variables': {
3     'ewk_bringup%': 1,
4     '__GCC_VERSION%': '<!(gcc -dumpversion)',
5     'conditions': [
6       ['building_for_tizen==1', {
7         'clang': 0,
8       }],
9     ],
10    'chromium_efl_tizen_version%': '2.3',
11   },
12   'target_defaults': {
13     'defines': [
14       'COMPONENT_BUILD=1',
15       'SKIA_DLL=1',
16       'TIZEN_ENGINE_SUPPORT=1',
17       'TIZEN_EDGE_EFFECT=1',
18       'BUILDING_V8_SHARED=1',
19       'V8_SHARED=1',
20       'USE_DL_PREFIX=1',
21 # [M37] TODO:Autofill related code chagned. Need to enable after Fixing.
22       #'TIZEN_AUTOFILL_SUPPORT=1',
23     ],
24     # use_aura is enabled but clipboard_efl.cc implements clipboard.
25     'sources/': [
26       ['exclude', 'browser/renderer_host/native_web_keyboard_event_aura\\.cc$'],
27       ['exclude', 'browser/renderer_host/render_widget_host_view_aura\\.cc$'],
28       ['exclude', 'browser/web_contents/web_contents_view_aura\\.cc$'],
29       ['exclude', 'clipboard/clipboard_aurax11\\.cc$'],
30       ['exclude', 'gl_context_egl\\.cc$'],
31       ['exclude', 'gl_context_glx\\.cc$'],
32       ['exclude', 'x11_event_source_glib\\.cc$'],
33       ['exclude', 'x11_event_source_libevent\\.cc$'],
34       ['exclude', 'x11_types\\.cc$'],
35     ],
36     'conditions': [
37        ['building_for_tizen==1', {
38          'defines': [
39          'OS_TIZEN=1',
40          # For GCC 4.5.3 bundled arm.h has a bug and don't define __ARM_PCS when it should.
41          # Force define this flag for the whole chromium on gbs gcc 4.5.3.
42          # Non-arm builds will ingore it in any case.
43          '__ARM_PCS',
44          ],
45         'conditions': [
46            ['chromium_efl_tizen_version=="2.3"', {
47              'defines': [
48                'TIZEN_V_2_3=1',
49              ],
50            }],
51            ['chromium_efl_tizen_version=="2.2.1"', {
52              'defines': [
53                'TIZEN_LEGACY_V_2_2_1=1',
54              ],
55            }],
56          ],
57          'sources/': [
58            ['exclude', 'browser/device_sensors/data_fetcher_shared_memory_default.cc$'],
59          ],
60          'cflags_cc': [ '-std=gnu++0x', '-fpermissive' ],
61       }, {
62         'sources/': [
63           ['exclude', 'browser/device_sensors/data_fetcher_impl_tizen\\.(cc|h)$'],
64           ['exclude', 'browser/device_sensors/data_fetcher_shared_memory_tizen\\.cc$'],
65           ['exclude', 'browser/geolocation/location_provider_efl\\.(cc|h)$'],
66           ['exclude', 'browser/motion/MotionUI\\.(h|cc)$'],
67           ['exclude', 'browser/motion/wkext_motion\\.(h|cc)$'],
68 #          ['exclude', 'browser/media/tizen/webaudio_decoder_browser_tizen\\.(h|cc)$'],
69   #        ['exclude', 'renderer/media/tizen/audio_decoder_tizen\\.(h|cc)$'],
70         ],
71       }],
72       ['building_for_tizen==1 and building_for_tizen_mobile==1', {
73          'defines': [
74            'OS_TIZEN_MOBILE=1',
75            'TIZEN_CONTENTS_DETECTION=1',
76            'TIZEN_ENABLE_CAPI_SUPPORT=1',
77            ],
78       }],
79       ['building_for_tizen==1 and building_for_tizen_tv==1', {
80        'defines': ['OS_TIZEN_TV=1'],
81       }],
82       ['host_arch=="arm"', {
83         'target_conditions': [
84           ['_toolset=="host"', {
85             'cflags!': [ '-m32' ],
86             'ldflags!': [ '-m32' ],
87             'asflags!': [ '-32' ],
88           }],
89         ],
90       }],
91       ['ewk_bringup==1', {
92         'defines!': [
93           'TIZEN_CONTENTS_DETECTION=1',
94           'TIZEN_ENABLE_CAPI_SUPPORT=1',
95         ],
96       }]
97     ],
98   },
99 }