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.
5 import("//tools/generate_library_loader/generate_library_loader.gni")
6 import("//ui/ozone/ozone.gni")
8 source_set("egltest") {
10 "client_native_pixmap_factory_egltest.cc",
11 "client_native_pixmap_factory_egltest.h",
12 "ozone_platform_egltest.cc",
13 "ozone_platform_egltest.h",
19 "//ui/events/devices",
20 "//ui/events/ozone:events_ozone_evdev",
21 "//ui/events/ozone:events_ozone_layout",
22 "//ui/events/platform",
27 generate_library_loader("eglplatform_shim") {
28 name = "LibeglplatformShimLoader"
29 output_h = "libeglplatform_shim.h"
30 output_cc = "libeglplatform_shim_loader.cc"
31 header = "\"ui/ozone/platform/egltest/eglplatform_shim.h\""
40 "ShimGetNativeDisplay",
41 "ShimGetNativeWindow",
42 "ShimReleaseNativeWindow",
46 # TODO(spang): eglplatform_shim_x11 should become a loadable_module once
47 # support lands: http://crbug.com/380327. Until then, it is not valid on
48 # platforms other than Linux.
50 # GYP version: "ui/ozone/platform/egltest/egltest.gypi:eglplatform_shim_x11"
51 if (is_linux && ozone_platform_ozonex) {
52 shared_library("eglplatform_shim_x11") {
53 output_name = "libeglplatform_shim"
55 output_extension = "so.1"
59 "eglplatform_shim_xeleven.cc",
62 configs += [ "//build/config/linux:x11" ]
65 "//build/config/sanitizers:deps",