blob: e13f899419254734f5ed8c964e5aef8ee95eb9a5 [file] [log] [blame]
# Copyright 2016 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.
{
'variables': {
'internal_ozone_platform_deps': [
'ozone_platform_wayland',
],
'internal_ozone_platform_unittest_deps': [
'ozone_platform_wayland_unittests',
],
'internal_ozone_platforms': [
'wayland'
],
'use_wayland_egl%': 0,
},
'targets': [
{
'target_name': 'ozone_platform_wayland',
'type': 'static_library',
'defines': [
'OZONE_IMPLEMENTATION',
],
'dependencies': [
'ozone.gyp:ozone_base',
'ozone.gyp:ozone_common',
'../../base/base.gyp:base',
'../../skia/skia.gyp:skia',
'../../third_party/wayland-protocols/wayland-protocols.gyp:xdg_shell_protocol',
'../../third_party/wayland/wayland.gyp:wayland_client',
'../events/events.gyp:events',
'../events/platform/events_platform.gyp:events_platform',
],
'sources': [
'client_native_pixmap_factory_wayland.cc',
'client_native_pixmap_factory_wayland.h',
'ozone_platform_wayland.cc',
'ozone_platform_wayland.h',
'wayland_connection.cc',
'wayland_connection.h',
'wayland_object.cc',
'wayland_object.h',
'wayland_pointer.cc',
'wayland_pointer.h',
'wayland_surface_factory.cc',
'wayland_surface_factory.h',
'wayland_window.cc',
'wayland_window.h',
],
'conditions': [
['use_wayland_egl==1', {
'defines': [
'USE_WAYLAND_EGL',
],
'dependencies': [
'../../build/linux/system.gyp:wayland-egl',
'../../third_party/khronos/khronos.gyp:khronos_headers',
],
'sources': [
'gl_surface_wayland.cc',
'gl_surface_wayland.h',
],
}],
],
},
{
'target_name': 'ozone_platform_wayland_unittests',
'type': 'none',
'dependencies': [
'ozone.gyp:ozone_platform',
'../../skia/skia.gyp:skia',
'../../testing/gmock.gyp:gmock',
'../../third_party/wayland-protocols/wayland-protocols.gyp:xdg_shell_protocol',
'../../third_party/wayland/wayland.gyp:wayland_server',
'../gfx/gfx.gyp:gfx_test_support',
],
'export_dependent_settings': [
'../../skia/skia.gyp:skia',
'../../testing/gmock.gyp:gmock',
'../../third_party/wayland-protocols/wayland-protocols.gyp:xdg_shell_protocol',
'../../third_party/wayland/wayland.gyp:wayland_server',
'../gfx/gfx.gyp:gfx_test_support',
],
'direct_dependent_settings': {
'defines': [
'WL_HIDE_DEPRECATED',
],
'sources': [
'fake_server.cc',
'fake_server.h',
'mock_platform_window_delegate.cc',
'wayland_connection_unittest.cc',
'wayland_pointer_unittest.cc',
'wayland_surface_factory_unittest.cc',
'wayland_test.cc',
'wayland_test.h',
'wayland_window_unittest.cc',
],
},
},
],
}