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