Upstream version 7.36.149.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         '../../../extensions/extensions.gyp:xwalk_extensions',
56       ],
57       'sources': [
58         'dbus_connection.cc',
59         'dbus_connection.h',
60         'xwalk_extension_process_launcher.cc',
61         'xwalk_extension_process_launcher.h',
62         'xwalk_launcher_main.cc',
63       ],
64       'conditions' : [
65         ['OS=="linux"', {
66           'dependencies': [
67             'gio',
68           ],
69         }],
70         ['tizen==1', {
71           'dependencies': [
72             'gio',
73             '../../../build/system.gyp:tizen',
74             '../../../build/system.gyp:tizen_appcore_common'
75           ],
76           'sources': [
77             'xwalk_launcher_tizen.cc',
78             'xwalk_launcher_tizen.h',
79             'xwalk_tizen_user.cc',
80             'xwalk_tizen_user.h',
81           ],
82         }],
83       ],
84     },
85   ],
86 }