Upstream version 5.34.97.0
[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         '../../third_party/mesa/src/include',
53       ],
54       'includes': [
55         '../ui/ime/ime.gypi',
56       ],
57       'sources': [
58         'display.cc',
59         'display.h',
60         'display_poll_thread.cc',
61         'display_poll_thread.h',
62         'input_device.cc',
63         'input_device.h',
64         'screen.cc',
65         'screen.h',
66         'surface.h',
67         'surface.cc',
68         'shell_surface.h',
69         'shell_surface.cc',
70         'window.cc',
71         'window.h',
72         'egl/egl_window.cc',
73         'egl/egl_window.h',
74         'input/cursor.cc',
75         'input/cursor.h',
76         'input/keyboard.cc',
77         'input/keyboard.h',
78         'input/pointer.cc',
79         'input/pointer.h',
80       ],
81     },
82   ]
83 }