Add the -export-dynamic flags to the link options for the main executable
[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         '-export-dynamic',
52       ],
53       'variables': {
54         'packages': [
55           'capi-appfw-application',
56           'capi-ui-efl-util',
57           'chromium-efl',
58           'ecore',
59           'ecore-wayland',
60           'elementary',
61           'efl-extension',
62           'deviced',
63           'manifest-parser',
64           'wgt-manifest-handlers',
65           'notification',
66           'launchpad',
67         ],
68       },
69       'conditions': [
70         ['profile == "mobile"', {
71           'defines': ['PROFILE_MOBILE'],
72         }],
73         ['profile == "wearable"', {
74           'defines': ['PROFILE_WEARABLE'],
75         }],
76         ['profile == "tv"', {
77           'defines': ['PROFILE_TV'],
78         }],
79         ['tizen_model_formfactor == "circle"', {
80           'defines': ['MODEL_FORMFACTOR_CIRCLE'],
81         }],
82         ['tizen_feature_rotary_event_support == 1', {
83           'defines': ['ROTARY_EVENT_FEATURE_SUPPORT'],
84         }],
85         ['tizen_feature_web_ime_support == 1', {
86           'defines': ['IME_FEATURE_SUPPORT'],
87           'sources': [
88             'browser/ime_runtime.h',
89             'browser/ime_runtime.cc',
90             'browser/ime_application.h',
91             'browser/ime_application.cc',
92             'browser/native_ime_window.h',
93             'browser/native_ime_window.cc',
94           ],
95           'variables': {
96             'packages': [
97               'capi-ui-inputmethod',
98             ],
99           },
100         }],
101         ['tizen_feature_watch_face_support == 1', {
102           'defines': ['WATCH_FACE_FEATURE_SUPPORT'],
103           'sources': [
104             'browser/watch_runtime.h',
105             'browser/watch_runtime.cc',
106             'browser/native_watch_window.h',
107             'browser/native_watch_window.cc',
108           ],
109           'variables': {
110             'packages': [
111               'capi-appfw-watch-application',
112               'appcore-watch',
113             ],
114           },
115         }],
116         ['tizen_feature_manual_rotate_support == 1', {
117           'defines': ['MANUAL_ROTATE_FEATURE_SUPPORT'],
118         }],
119       ],
120     }, # end of target 'xwalk_runtime'
121     {
122       'target_name': 'xwalk_injected_bundle',
123       'type': 'shared_library',
124       'dependencies': [
125         '../common/common.gyp:xwalk_tizen_common',
126         '../extensions/extensions.gyp:xwalk_extension_shared',
127       ],
128       'sources': [
129         'renderer/injected_bundle.cc',
130       ],
131       'cflags': [
132         '-fvisibility=default',
133       ],
134       'variables': {
135         'packages': [
136           'chromium-efl',
137           'elementary',
138         ],
139       },
140     }, # end of target 'xwalk_injected_bundle'
141   ],
142 }