Index: ui/ozone/platform/egltest/BUILD.gn |
diff --git a/ui/ozone/platform/egltest/BUILD.gn b/ui/ozone/platform/egltest/BUILD.gn |
index 8acf85b31ef7107051af80657615a66288bcff93..7a536754240699c90f4a42638b280a1a46e60ab1 100644 |
--- a/ui/ozone/platform/egltest/BUILD.gn |
+++ b/ui/ozone/platform/egltest/BUILD.gn |
@@ -3,6 +3,7 @@ |
# found in the LICENSE file. |
import("//tools/generate_library_loader/generate_library_loader.gni") |
+import("//ui/ozone/ozone.gni") |
source_set("egltest") { |
sources = [ |
@@ -39,4 +40,21 @@ generate_library_loader("eglplatform_shim") { |
"ShimReleaseNativeWindow", |
] |
} |
-# TODO(spang): eglplatform_shim_x11 once support lands: http://crbug.com/380327 |
+ |
+# TODO(spang): eglplatform_shim_x11 should become a loadable_module once |
+# support lands: http://crbug.com/380327. Until then, it is not valid on |
+# platforms other than Linux. |
+if (is_linux && ozone_platform_ozonex) { |
+ shared_library("eglplatform_shim_x11") { |
+ output_name = "libeglplatform_shim" |
+ |
+ output_extension = "so.1" |
+ |
+ sources = [ |
+ "eglplatform_shim.h", |
+ "eglplatform_shim_xeleven.cc", |
+ ] |
+ |
+ configs += [ "//build/config/linux:x11" ] |
+ } |
+} |