Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ui / ozone / platform / egltest / egltest.gypi
blob4f79c56c4c78cc1fcda5f352e5839ad4b38ddbd3
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         'client_native_pixmap_factory_egltest.cc',
34         'client_native_pixmap_factory_egltest.h',
35         'ozone_platform_egltest.cc',
36         'ozone_platform_egltest.h',
37       ],
38     },
39     {
40       'target_name': 'eglplatform_shim',
41       'type': 'static_library',
42       'dependencies': [
43         '../../third_party/khronos/khronos.gyp:khronos_headers',
44       ],
45       'direct_dependent_settings': {
46         'include_dirs': [
47           '<(SHARED_INTERMEDIATE_DIR)',
48         ],
49       },
50       'include_dirs': [
51         '../../../..',
52       ],
53       'hard_dependency': 1,
54       'actions': [
55         {
56           'variables': {
57             'output_cc': '<(INTERMEDIATE_DIR)/libeglplatform_shim_loader.cc',
58             'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libeglplatform_shim.h',
59             'generator': '../../tools/generate_library_loader/generate_library_loader.py',
60           },
61           'action_name': 'generate_libeglplatform_shim_loader',
62           'inputs': [
63             '<(generator)',
64           ],
65           'outputs': [
66             '<(output_h)',
67             '<(output_cc)',
68           ],
69           'action': ['python',
70                      '<(generator)',
71                      '--name', 'LibeglplatformShimLoader',
72                      '--output-h', '<(output_h)',
73                      '--output-cc', '<(output_cc)',
74                      '--header', '"ui/ozone/platform/egltest/eglplatform_shim.h"',
75                      'ShimQueryString',
76                      'ShimInitialize',
77                      'ShimTerminate',
78                      'ShimCreateWindow',
79                      'ShimQueryWindow',
80                      'ShimDestroyWindow',
81                      'ShimGetNativeDisplay',
82                      'ShimGetNativeWindow',
83                      'ShimReleaseNativeWindow',
84           ],
85           'message': 'Generating libeglplatform_shim library loader',
86           'process_outputs_as_sources': 1,
87         },
88       ],
89     },
90   ],
91   'conditions': [
92     ['ozone_platform_ozonex == 1', {
93       'targets': [
94         {
95           'target_name': 'eglplatform_shim_x11',
96           'type': 'loadable_module',
97           'product_name': 'eglplatform_shim',
98           'product_extension': 'so.1',
99           'include_dirs': [
100             '../../../..',
101           ],
102           'dependencies': [
103             '../../build/linux/system.gyp:x11',
104           ],
105           'sources': [
106             'eglplatform_shim.h',
107             'eglplatform_shim_xeleven.cc',
108           ],
109         },
110       ],
111     }],
112   ],