Merge pull request #136 from JongHeonChoi/fx_appdb_runtime
[platform/framework/web/crosswalk-tizen.git] / runtime / runtime.gyp
1 {
2   'includes':[
3     '../build/common.gypi',
4   ],
5   'targets': [
6     {
7       'target_name': 'xwalk_runtime',
8       'type': 'executable',
9       'dependencies': [
10         '../common/common.gyp:xwalk_tizen_common',
11         '../extensions/extensions.gyp:xwalk_extension_shared',
12         'resources/resources.gyp:xwalk_runtime_resources',
13       ],
14       'sources': [
15         'common/constants.h',
16         'common/constants.cc',
17         'browser/runtime_process.cc',
18         'browser/runtime.h',
19         'browser/runtime.cc',
20         'browser/ui_runtime.h',
21         'browser/ui_runtime.cc',
22         'browser/native_window.h',
23         'browser/native_window.cc',
24         'browser/native_app_window.h',
25         'browser/native_app_window.cc',
26         'browser/notification_window.h',
27         'browser/notification_window.cc',
28         'browser/web_application.h',
29         'browser/web_application.cc',
30         'browser/web_view.h',
31         'browser/web_view.cc',
32         'browser/web_view_impl.h',
33         'browser/web_view_impl.cc',
34         'browser/popup.h',
35         'browser/popup.cc',
36         'browser/splash_screen.h',
37         'browser/splash_screen.cc',
38         'browser/popup_string.h',
39         'browser/popup_string.cc',
40         'browser/vibration_manager.h',
41         'browser/vibration_manager.cc',
42         'browser/notification_manager.h',
43         'browser/notification_manager.cc',
44         'browser/prelauncher.h',
45         'browser/prelauncher.cc',
46         'browser/preload_manager.h',
47         'browser/preload_manager.cc',
48       ],
49       'ldflags': [
50         '-pie',
51       ],
52       'variables': {
53         'packages': [
54           'capi-appfw-application',
55           'capi-ui-efl-util',
56           'chromium-efl',
57           'ecore',
58           'ecore-wayland',
59           'elementary',
60           'efl-extension',
61           'deviced',
62           'manifest-parser',
63           'wgt-manifest-handlers',
64           'notification',
65           'launchpad',
66         ],
67       },
68       'conditions': [
69         ['profile == "mobile"', {
70           'defines': ['PROFILE_MOBILE'],
71         }],
72         ['profile == "wearable"', {
73           'defines': ['PROFILE_WEARABLE'],
74         }],
75         ['profile == "tv"', {
76           'defines': ['PROFILE_TV'],
77         }],
78         ['tizen_model_formfactor == "circle"', {
79           'defines': ['MODEL_FORMFACTOR_CIRCLE'],
80         }],
81         ['tizen_feature_rotary_event_support == 1', {
82           'defines': ['ROTARY_EVENT_FEATURE_SUPPORT'],
83         }],
84         ['tizen_feature_web_ime_support == 1', {
85           'defines': ['IME_FEATURE_SUPPORT'],
86           'sources': [
87             'browser/ime_runtime.h',
88             'browser/ime_runtime.cc',
89             'browser/ime_application.h',
90             'browser/ime_application.cc',
91             'browser/native_ime_window.h',
92             'browser/native_ime_window.cc',
93           ],
94           'variables': {
95             'packages': [
96               'capi-ui-inputmethod',
97             ],
98           },
99         }],
100         ['tizen_feature_watch_face_support == 1', {
101           'defines': ['WATCH_FACE_FEATURE_SUPPORT'],
102           'sources': [
103             'browser/watch_runtime.h',
104             'browser/watch_runtime.cc',
105             'browser/native_watch_window.h',
106             'browser/native_watch_window.cc',
107           ],
108           'variables': {
109             'packages': [
110               'capi-appfw-watch-application',
111               'appcore-watch',
112             ],
113           },
114         }],
115         ['tizen_feature_manual_rotate_support == 1', {
116           'defines': ['MANUAL_ROTATE_FEATURE_SUPPORT'],
117         }],
118       ],
119     }, # end of target 'xwalk_runtime'
120     {
121       'target_name': 'xwalk_injected_bundle',
122       'type': 'shared_library',
123       'dependencies': [
124         '../common/common.gyp:xwalk_tizen_common',
125         '../extensions/extensions.gyp:xwalk_extension_shared',
126       ],
127       'sources': [
128         'renderer/injected_bundle.cc',
129       ],
130       'cflags': [
131         '-fvisibility=default',
132       ],
133       'variables': {
134         'packages': [
135           'chromium-efl',
136           'elementary',
137         ],
138       },
139     }, # end of target 'xwalk_injected_bundle'
140   ],
141 }