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 "ozone_platform_egltest.cc",
11 "ozone_platform_egltest.h",
17 "//ui/events/devices",
18 "//ui/events/ozone:events_ozone_evdev",
19 "//ui/events/ozone:events_ozone_layout",
20 "//ui/events/platform",
25 generate_library_loader("eglplatform_shim") {
26 name = "LibeglplatformShimLoader"
27 output_h = "libeglplatform_shim.h"
28 output_cc = "libeglplatform_shim_loader.cc"
29 header = "\"ui/ozone/platform/egltest/eglplatform_shim.h\""
38 "ShimGetNativeDisplay",
39 "ShimGetNativeWindow",
40 "ShimReleaseNativeWindow",
44 # TODO(spang): eglplatform_shim_x11 should become a loadable_module once
45 # support lands: http://crbug.com/380327. Until then, it is not valid on
46 # platforms other than Linux.
48 # GYP version: "ui/ozone/platform/egltest/egltest.gypi:eglplatform_shim_x11"
49 if (is_linux && ozone_platform_ozonex) {
50 shared_library("eglplatform_shim_x11") {
51 output_name = "libeglplatform_shim"
53 output_extension = "so.1"
57 "eglplatform_shim_xeleven.cc",
60 configs += [ "//build/config/linux:x11" ]