Upstream version 8.36.169.0
[platform/framework/web/crosswalk.git] / src / xwalk / application / tools / linux / xwalk_application_tools.gyp
1 {
2   'targets': [
3     {
4       'target_name': 'gio',
5       'type': 'none',
6       'variables': {
7         'glib_packages': 'glib-2.0 gio-unix-2.0',
8       },
9       'direct_dependent_settings': {
10         'cflags': [
11           '<!@(pkg-config --cflags <(glib_packages))',
12         ],
13       },
14       'link_settings': {
15         'ldflags': [
16           '<!@(pkg-config --libs-only-L --libs-only-other <(glib_packages))',
17         ],
18         'libraries': [
19           '<!@(pkg-config --libs-only-l <(glib_packages))',
20         ],
21       },
22     },
23     {
24       'target_name': 'xwalkctl',
25       'type': 'executable',
26       'product_name': 'xwalkctl',
27       'dependencies': [
28         'gio',
29         '../../../application/common/xwalk_application_common.gypi:xwalk_application_common_lib',
30         '../../../../build/linux/system.gyp:dbus',
31         '../../../../dbus/dbus.gyp:dbus',
32       ],
33       'include_dirs': [
34         '../../../..',
35       ],
36       'sources': [
37         'dbus_connection.cc',
38         'dbus_connection.h',
39         'xwalkctl_main.cc',
40         '../../../runtime/common/xwalk_paths.cc',
41         '../../../runtime/common/xwalk_paths.h',
42         '../../../runtime/common/xwalk_system_locale.cc',
43         '../../../runtime/common/xwalk_system_locale.h',
44       ],
45       'conditions' : [
46         ['tizen==1', {
47           'dependencies': [
48             '../../../build/system.gyp:tizen',
49           ],
50           'sources': [
51             'xwalk_tizen_user.cc',
52             'xwalk_tizen_user.h',
53           ],
54         }],
55       ],
56     },
57     {
58       'target_name': 'xwalk_launcher',
59       'type': 'executable',
60       'product_name': 'xwalk-launcher',
61       'include_dirs': [
62         '../../../..',
63       ],
64       'dependencies': [
65         '../../../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
66         '../../../extensions/extensions.gyp:xwalk_extensions',
67         '../../../application/common/xwalk_application_common.gypi:xwalk_application_common_lib',
68       ],
69       'sources': [
70         'dbus_connection.cc',
71         'dbus_connection.h',
72         'xwalk_extension_process_launcher.cc',
73         'xwalk_extension_process_launcher.h',
74         'xwalk_launcher_main.cc',
75       ],
76       'conditions' : [
77         ['OS=="linux"', {
78           'dependencies': [
79             'gio',
80           ],
81         }],
82         ['tizen==1', {
83           'dependencies': [
84             'gio',
85             '../../../build/system.gyp:tizen',
86             '../../../build/system.gyp:tizen_appcore_common'
87           ],
88           'sources': [
89             'xwalk_launcher_tizen.cc',
90             'xwalk_launcher_tizen.h',
91             'xwalk_tizen_user.cc',
92             'xwalk_tizen_user.h',
93           ],
94         }],
95       ],
96     },
97   ],
98 }