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