Upstream version 8.36.161.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       ],
30       'include_dirs': [
31         '../../../..',
32       ],
33       'sources': [
34         'dbus_connection.cc',
35         'dbus_connection.h',
36         'xwalkctl_main.cc',
37       ],
38       'conditions' : [
39         ['tizen==1', {
40           'sources': [
41             'xwalk_tizen_user.cc',
42             'xwalk_tizen_user.h',
43           ],
44         }],
45       ],
46     },
47     {
48       'target_name': 'xwalk_launcher',
49       'type': 'executable',
50       'product_name': 'xwalk-launcher',
51       'include_dirs': [
52         '../../../..',
53       ],
54       'dependencies': [
55         '../../../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
56         '../../../extensions/extensions.gyp:xwalk_extensions',
57       ],
58       'sources': [
59         'dbus_connection.cc',
60         'dbus_connection.h',
61         'xwalk_extension_process_launcher.cc',
62         'xwalk_extension_process_launcher.h',
63         'xwalk_launcher_main.cc',
64       ],
65       'conditions' : [
66         ['OS=="linux"', {
67           'dependencies': [
68             'gio',
69           ],
70         }],
71         ['tizen==1', {
72           'dependencies': [
73             'gio',
74             '../../../build/system.gyp:tizen',
75             '../../../build/system.gyp:tizen_appcore_common'
76           ],
77           'sources': [
78             'xwalk_launcher_tizen.cc',
79             'xwalk_launcher_tizen.h',
80             'xwalk_tizen_user.cc',
81             'xwalk_tizen_user.h',
82           ],
83         }],
84       ],
85     },
86   ],
87 }