Remove deperacated wrapper ExtensionAdapter
[platform/framework/web/tizen-extensions-crosswalk.git] / common / common.gypi
1 {
2   'variables': {
3     'extension_host_os%': 'desktop',
4     'tizen%': '0',
5     'telephony_sim_available%': '<!(pkg-config --exists capi-telephony-sim; if [ $? = 0 ]; then echo true; else echo false; fi)',
6     'extension_build_type%': '<(extension_build_type)',
7     'extension_build_type%': 'Debug',
8     'display_type%': 'x11',
9   },
10   'target_defaults': {
11     'conditions': [
12       ['extension_host_os != "mobile"', {
13         'sources/': [['exclude', '_mobile\\.cc$|mobile/']],
14         'includes/': [['exclude', '_mobile\\.gypi$|mobile/']],
15       }],
16       ['extension_host_os != "desktop"', {
17         'sources/': [['exclude', '_desktop\\.cc$|desktop/']],
18         'includes/': [['exclude', '_desktop\\.gypi$|desktop/']],
19         'variables': {
20           'packages': [
21             'libtzplatform-config',
22           ],
23         },
24       }],
25       ['tizen == 1', {
26         'defines': ['TIZEN']
27       }, {
28         'sources/': [['exclude', '_tizen\\.cc$|tizen/']],
29         'includes/': [['exclude', '_tizen\\.gypi$|tizen/']],
30       }],
31       ['extension_host_os == "mobile"', { 'defines': ['TIZEN_MOBILE'] } ],
32       ['extension_host_os == "ivi"', { 'defines': ['TIZEN_IVI'] } ],
33       ['extension_host_os == "desktop"', { 'defines': ['GENERIC_DESKTOP'] } ],
34       ['telephony_sim_available == "true"', { 'defines': ['SYSTEMINFO_SIM_ACCESS'] } ],
35       ['extension_build_type== "Debug"', {
36         'defines': ['_DEBUG', ],
37         'cflags': [ '-O0', '-g', ],
38       }],
39       ['extension_build_type == "Release"', {
40         'defines': ['NDEBUG', ],
41         'cflags': [
42           '-O2',
43           # Don't emit the GCC version ident directives, they just end up
44           # in the .comment section taking up binary size.
45           '-fno-ident',
46           # Put data and code in their own sections, so that unused symbols
47           # can be removed at link time with --gc-sections.
48           '-fdata-sections',
49           '-ffunction-sections',
50         ],
51       }],
52       [ 'display_type != "wayland"', {
53         'sources/': [['exclude', '_wayland\\.cc$|wayland/']],
54       }],
55       [ 'display_type != "x11"', {
56         'sources/': [['exclude', '_x11\\.cc$|x11/']],
57       }],
58     ],
59     'includes': [
60       'xwalk_js2c.gypi',
61     ],
62     'include_dirs': [
63       '../',
64       '<(SHARED_INTERMEDIATE_DIR)',
65     ],
66     'sources': [
67       'extension.cc',
68       'extension.h',
69       'picojson.h',
70       'utils.h',
71       'XW_Extension.h',
72       'XW_Extension_EntryPoints.h',
73       'XW_Extension_Permissions.h',
74       'XW_Extension_Runtime.h',
75       'XW_Extension_SyncMessage.h',
76     ],
77     'cflags': [
78       '-std=c++0x',
79       '-fPIC',
80       '-fvisibility=hidden',
81     ],
82   },
83 }