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