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 import("//tools/generate_library_loader/generate_library_loader.gni") | |
6 import("//ui/ozone/ozone.gni") | |
7 | |
8 visibility = [ "//ui/ozone/*" ] | |
9 | |
10 source_set("egltest") { | |
11 sources = [ | |
12 "client_native_pixmap_factory_egltest.cc", | |
13 "client_native_pixmap_factory_egltest.h", | |
14 "ozone_platform_egltest.cc", | |
15 "ozone_platform_egltest.h", | |
16 ] | |
17 | |
18 configs += [ "//third_party/khronos:khronos_headers" ] | |
19 | |
20 deps = [ | |
21 ":eglplatform_shim", | |
22 "//base", | |
23 "//ui/events", | |
24 "//ui/events/devices", | |
25 "//ui/events/ozone:events_ozone", | |
26 "//ui/events/ozone:events_ozone_evdev", | |
27 "//ui/events/ozone:events_ozone_layout", | |
28 "//ui/events/platform", | |
29 "//ui/gfx", | |
30 "//ui/ozone:ozone_base", | |
31 "//ui/ozone/common", | |
32 "//ui/platform_window", | |
33 ] | |
34 } | |
35 | |
36 generate_library_loader("eglplatform_shim") { | |
37 name = "LibeglplatformShimLoader" | |
38 output_h = "libeglplatform_shim.h" | |
39 output_cc = "libeglplatform_shim_loader.cc" | |
40 header = "\"ui/ozone/platform/egltest/eglplatform_shim.h\"" | |
41 | |
42 functions = [ | |
43 "ShimQueryString", | |
44 "ShimInitialize", | |
45 "ShimTerminate", | |
46 "ShimCreateWindow", | |
47 "ShimQueryWindow", | |
48 "ShimDestroyWindow", | |
49 "ShimGetNativeDisplay", | |
50 "ShimGetNativeWindow", | |
51 "ShimReleaseNativeWindow", | |
52 ] | |
53 } | |
54 | |
55 # TODO(spang): eglplatform_shim_x11 should become a loadable_module once | |
56 # support lands: http://crbug.com/380327. Until then, it is not valid on | |
57 # platforms other than Linux. | |
58 | |
59 # GYP version: "ui/ozone/platform/egltest/egltest.gypi:eglplatform_shim_x11" | |
60 if (is_linux && ozone_platform_ozonex) { | |
61 shared_library("eglplatform_shim_x11") { | |
62 output_name = "libeglplatform_shim" | |
63 | |
64 output_extension = "so.1" | |
65 | |
66 sources = [ | |
67 "eglplatform_shim.h", | |
68 "eglplatform_shim_xeleven.cc", | |
69 ] | |
70 | |
71 configs += [ "//build/config/linux:x11" ] | |
72 | |
73 deps = [ | |
74 "//build/config/sanitizers:deps", | |
75 ] | |
76 | |
77 visibility += [ "//chromecast/*" ] | |
78 } | |
79 } | |
OLD | NEW |