blob: d0ac6b57295f2380bfbcc88d70d136c30601392b [file] [log] [blame]
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/linux/pkg_config.gni")
import("//build/config/ui.gni")
if (use_xkbcommon) {
pkg_config("xkbcommon") {
packages = [ "xkbcommon" ]
}
}
source_set("wayland") {
sources = [
"scoped_wl.cc",
"scoped_wl.h",
"server.cc",
"server.h",
]
defines = [ "EXO_IMPLEMENTATION" ]
deps = [
"//ash",
"//base",
"//components/exo",
"//skia",
"//third_party/wayland:wayland_server",
"//third_party/wayland-protocols:xdg_shell_protocol",
"//ui/events:dom_keycode_converter",
"//ui/events:events_base",
]
if (use_ozone) {
deps += [ "//third_party/mesa:wayland_drm_protocol" ]
}
if (use_xkbcommon) {
configs += [ ":xkbcommon" ]
defines += [ "USE_XKBCOMMON" ]
}
}
source_set("unit_tests") {
testonly = true
sources = [
"server_unittest.cc",
]
deps = [
":wayland",
"//base",
"//components/exo",
"//testing/gtest",
"//third_party/wayland:wayland_client",
]
}