- add sources.
[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': './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.2.0',
23         'MESA_VERSION': '9.1.3',
24         'wayland_packages': [
25           'wayland-client >= <(WAYLAND_VERSION)',
26           'wayland-cursor >= <(WAYLAND_VERSION)',
27           'wayland-egl >= <(MESA_VERSION)',
28           'xkbcommon',
29         ],
30       },
31       'cflags': [
32         '<!@(<(pkg-config) --cflags <(wayland_packages))',
33       ],
34       'direct_dependent_settings': {
35         'cflags': [
36           '<!@(<(pkg-config) --cflags <(wayland_packages))',
37         ],
38       },
39       'link_settings': {
40         'ldflags': [
41           '<!@(<(pkg-config) --libs-only-L --libs-only-other <(wayland_packages))',
42         ],
43         'libraries': [
44           '<!@(<(pkg-config) --libs-only-l <(wayland_packages))',
45         ],
46       },
47       'dependencies': [
48         '../../base/base.gyp:base',
49       ],
50       'include_dirs': [
51         '../..',
52       ],
53       'sources': [
54         'display.cc',
55         'display.h',
56         'dispatcher.cc',
57         'dispatcher.h',
58         'dispatcher_delegate.cc',
59         'dispatcher_delegate.h',
60         'global.h',
61         'input_device.cc',
62         'input_device.h',
63         'screen.cc',
64         'screen.h',
65         'surface.h',
66         'surface.cc',
67         'shell_surface.h',
68         'shell_surface.cc',
69         'window.cc',
70         'window.h',
71         'window_change_observer.h',
72         'egl/egl_window.cc',
73         'egl/egl_window.h',
74         'input/cursor.cc',
75         'input/cursor.h',
76         'input/kbd_conversion.cc',
77         'input/kbd_conversion.h',
78         'input/keyboard.cc',
79         'input/keyboard.h',
80         'input/pointer.cc',
81         'input/pointer.h',
82       ],
83     },
84   ]
85 }