Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / ui / display / display.gyp
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 {
6   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       'target_name': 'display_types',
12       'type': '<(component)',
13       'dependencies': [
14         '../../base/base.gyp:base',
15         '../../ui/gfx/gfx.gyp:gfx_geometry',
16       ],
17       'defines': [
18         'DISPLAY_TYPES_IMPLEMENTATION',
19       ],
20       'sources': [
21         'types/chromeos/display_mode.cc',
22         'types/chromeos/display_mode.h',
23         'types/chromeos/display_snapshot.cc',
24         'types/chromeos/display_snapshot.h',
25         'types/chromeos/native_display_delegate.h',
26         'types/chromeos/native_display_observer.h',
27         'types/display_constants.h',
28         'types/display_types_export.h',
29       ],
30     },
31     {
32       'target_name': 'display',
33       'type': '<(component)',
34       'dependencies': [
35         '../../base/base.gyp:base',
36         '../../ui/gfx/gfx.gyp:gfx',
37         '../../ui/gfx/gfx.gyp:gfx_geometry',
38         'display_util',
39       ],
40       'defines': [
41         'DISPLAY_IMPLEMENTATION',
42       ],
43       'sources': [
44         'chromeos/display_configurator.cc',
45         'chromeos/display_configurator.h',
46         'chromeos/ozone/display_configurator_ozone.cc',
47         'chromeos/ozone/touchscreen_delegate_ozone.cc',
48         'chromeos/ozone/touchscreen_delegate_ozone.h',
49         'chromeos/x11/display_configurator_x11.cc',
50         'chromeos/x11/display_mode_x11.cc',
51         'chromeos/x11/display_mode_x11.h',
52         'chromeos/x11/display_snapshot_x11.cc',
53         'chromeos/x11/display_snapshot_x11.h',
54         'chromeos/x11/display_util_x11.cc',
55         'chromeos/x11/display_util_x11.h',
56         'chromeos/x11/native_display_delegate_x11.cc',
57         'chromeos/x11/native_display_delegate_x11.h',
58         'chromeos/x11/native_display_event_dispatcher_x11.cc',
59         'chromeos/x11/native_display_event_dispatcher_x11.h',
60         'chromeos/x11/touchscreen_delegate_x11.cc',
61         'chromeos/x11/touchscreen_delegate_x11.h',
62         'display_export.h',
63         'display_switches.cc',
64         'display_switches.h',
65       ],
66       'conditions': [
67         ['use_x11 == 1', {
68           'dependencies': [
69             '../../build/linux/system.gyp:x11',
70             '../../build/linux/system.gyp:xext',
71             '../../build/linux/system.gyp:xi',
72             '../../build/linux/system.gyp:xrandr',
73           ],
74         }],
75         ['chromeos == 1', {
76           'dependencies': [
77             'display_types',
78           ],
79         }],
80         ['use_ozone == 1', {
81           'dependencies': [
82             '../../ui/ozone/ozone.gyp:ozone',
83           ],
84         }],
85       ],
86     },
87     {
88       'target_name': 'display_util',
89       'type': '<(component)',
90       'dependencies': [
91         '../../base/base.gyp:base',
92         '../../ui/gfx/gfx.gyp:gfx_geometry',
93       ],
94       'defines': [
95         'DISPLAY_UTIL_IMPLEMENTATION',
96       ],
97       'sources': [
98         'util/display_util.cc',
99         'util/display_util.h',
100         'util/display_util_export.h',
101         'util/edid_parser.cc',
102         'util/edid_parser.h',
103         'util/x11/edid_parser_x11.cc',
104         'util/x11/edid_parser_x11.h',
105       ],
106       'conditions': [
107         ['use_x11 == 1', {
108           'dependencies': [
109             '../../build/linux/system.gyp:xrandr',
110             '../../ui/gfx/gfx.gyp:gfx',
111           ],
112         }],
113         ['chromeos == 1', {
114           'dependencies': [
115             'display_types',
116           ],
117         }],
118       ],
119     },
120     {
121       'target_name': 'display_test_util',
122       'type': '<(component)',
123       'dependencies': [
124         '../../base/base.gyp:base',
125         '../../ui/gfx/gfx.gyp:gfx',
126         '../../ui/gfx/gfx.gyp:gfx_geometry',
127       ],
128       'defines': [
129         'DISPLAY_IMPLEMENTATION',
130       ],
131       'sources': [
132         'chromeos/test/test_display_snapshot.cc',
133         'chromeos/test/test_display_snapshot.h',
134       ],
135       'conditions': [
136         ['chromeos == 1', {
137           'dependencies': [
138             'display_types',
139           ],
140         }],
141       ],
142     },
143   ],
144 }