Move VISUAL_STATE promise to activation
[chromium-blink-merge.git] / ui / ozone / platform / egltest / egltest.gypi
blob2143c092840d5c2e11852a7a05b4e66c325d8c57
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.
6   'variables': {
7     'internal_ozone_platform_deps': [
8       'ozone_platform_egltest',
9     ],
10     'internal_ozone_platforms': [
11       'egltest'
12     ],
13   },
14   'targets': [
15     {
16       'target_name': 'ozone_platform_egltest',
17       'type': 'static_library',
18       'defines': [
19         'OZONE_IMPLEMENTATION',
20       ],
21       'dependencies': [
22         '../../base/base.gyp:base',
23         '../../third_party/khronos/khronos.gyp:khronos_headers',
24         '../events/devices/events_devices.gyp:events_devices',
25         '../events/events.gyp:events',
26         '../events/ozone/events_ozone.gyp:events_ozone_evdev',
27         '../events/ozone/events_ozone.gyp:events_ozone_layout',
28         '../events/platform/events_platform.gyp:events_platform',
29         '../gfx/gfx.gyp:gfx',
30         'eglplatform_shim',
31       ],
32       'sources': [
33         'ozone_platform_egltest.cc',
34         'ozone_platform_egltest.h',
35       ],
36     },
37     {
38       'target_name': 'eglplatform_shim',
39       'type': 'static_library',
40       'dependencies': [
41         '../../third_party/khronos/khronos.gyp:khronos_headers',
42       ],
43       'direct_dependent_settings': {
44         'include_dirs': [
45           '<(SHARED_INTERMEDIATE_DIR)',
46         ],
47       },
48       'include_dirs': [
49         '../../../..',
50       ],
51       'hard_dependency': 1,
52       'actions': [
53         {
54           'variables': {
55             'output_cc': '<(INTERMEDIATE_DIR)/libeglplatform_shim_loader.cc',
56             'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libeglplatform_shim.h',
57             'generator': '../../tools/generate_library_loader/generate_library_loader.py',
58           },
59           'action_name': 'generate_libeglplatform_shim_loader',
60           'inputs': [
61             '<(generator)',
62           ],
63           'outputs': [
64             '<(output_h)',
65             '<(output_cc)',
66           ],
67           'action': ['python',
68                      '<(generator)',
69                      '--name', 'LibeglplatformShimLoader',
70                      '--output-h', '<(output_h)',
71                      '--output-cc', '<(output_cc)',
72                      '--header', '"ui/ozone/platform/egltest/eglplatform_shim.h"',
73                      'ShimQueryString',
74                      'ShimInitialize',
75                      'ShimTerminate',
76                      'ShimCreateWindow',
77                      'ShimQueryWindow',
78                      'ShimDestroyWindow',
79                      'ShimGetNativeDisplay',
80                      'ShimGetNativeWindow',
81                      'ShimReleaseNativeWindow',
82           ],
83           'message': 'Generating libeglplatform_shim library loader',
84           'process_outputs_as_sources': 1,
85         },
86       ],
87     },
88   ],
89   'conditions': [
90     ['ozone_platform_ozonex == 1', {
91       'targets': [
92         {
93           'target_name': 'eglplatform_shim_x11',
94           'type': 'loadable_module',
95           'product_name': 'eglplatform_shim',
96           'product_extension': 'so.1',
97           'include_dirs': [
98             '../../../..',
99           ],
100           'dependencies': [
101             '../../build/linux/system.gyp:x11',
102           ],
103           'sources': [
104             'eglplatform_shim.h',
105             'eglplatform_shim_xeleven.cc',
106           ],
107         },
108       ],
109     }],
110   ],