160935c24ea0f0512d954888c1107dc923a14355
[platform/framework/web/crosswalk.git] / src / ozone / wayland / wayland.gyp
1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Copyright 2013 Intel Corporation. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 {
7   'variables': {
8     'conditions': [
9       ['sysroot!=""', {
10         'pkg-config': '../../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)"',
11       }, {
12         'pkg-config': 'pkg-config'
13       }],
14     ],
15   },
16
17   'targets': [
18     {
19       'target_name': 'wayland_toolkit',
20       'type': 'static_library',
21       'variables': {
22         'WAYLAND_VERSION': '1.4.0',
23         'MESA_VERSION': '9.1.3',
24         'wayland_packages': [
25           'egl >= <(MESA_VERSION)',
26           'wayland-client >= <(WAYLAND_VERSION)',
27           'wayland-cursor >= <(WAYLAND_VERSION)',
28           'wayland-egl >= <(MESA_VERSION)',
29           'xkbcommon',
30         ],
31       },
32       'cflags': [
33         '<!@(<(pkg-config) --cflags <(wayland_packages))',
34       ],
35       'direct_dependent_settings': {
36         'cflags': [
37           '<!@(<(pkg-config) --cflags <(wayland_packages))',
38         ],
39       },
40       'link_settings': {
41         'ldflags': [
42           '<!@(<(pkg-config) --libs-only-L --libs-only-other <(wayland_packages))',
43         ],
44         'libraries': [
45           '<!@(<(pkg-config) --libs-only-l <(wayland_packages))',
46         ],
47       },
48       'dependencies': [
49         '../../base/base.gyp:base',
50       ],
51       'include_dirs': [
52         '../..',
53         '<(DEPTH)/third_party/khronos',
54       ],
55       'sources': [
56         'display.cc',
57         'display.h',
58         'display_poll_thread.cc',
59         'display_poll_thread.h',
60         'input_device.cc',
61         'input_device.h',
62         'screen.cc',
63         'screen.h',
64         'window.cc',
65         'window.h',
66         'egl/egl_window.cc',
67         'egl/egl_window.h',
68         'egl/surface_ozone_wayland.cc',
69         'egl/surface_ozone_wayland.h',
70         'input/cursor.cc',
71         'input/cursor.h',
72         'input/keyboard.cc',
73         'input/keyboard.h',
74         'input/keyboard_engine_xkb.h',
75         'input/keyboard_engine_xkb.cc',
76         'input/pointer.cc',
77         'input/pointer.h',
78         'input/text_input.h',
79         'input/text_input.cc',
80         'input/text-protocol.c',
81         'input/text-client-protocol.h',
82         'input/touchscreen.cc',
83         'input/touchscreen.h',
84         'shell/shell.cc',
85         'shell/shell.h',
86         'shell/shell_surface.h',
87         'shell/shell_surface.cc',
88         'shell/wl_shell_surface.cc',
89         'shell/wl_shell_surface.h',
90         'shell/xdg_shell_surface.cc',
91         'shell/xdg_shell_surface.h',
92         'shell/xdg-shell-protocol.c',
93         'shell/xdg-shell-client-protocol.h',
94         'shell/ivi_shell_surface.cc',
95         'shell/ivi_shell_surface.h',
96         'shell/ivi-application-protocol.c',
97         'shell/ivi-application-client-protocol.h',
98       ],
99     },
100   ]
101 }