naiveproxy/ui/accelerated_widget_mac/BUILD.gn

75 lines
1.7 KiB
Plaintext
Raw Permalink Normal View History

2018-08-11 08:35:24 +03:00
# Copyright 2014 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("//testing/test.gni")
component("accelerated_widget_mac") {
sources = [
"accelerated_widget_mac.h",
"accelerated_widget_mac.mm",
"accelerated_widget_mac_export.h",
"availability_macros.h",
"ca_layer_frame_sink.h",
"ca_layer_frame_sink.mm",
"ca_layer_tree_coordinator.h",
"ca_layer_tree_coordinator.mm",
"ca_renderer_layer_tree.h",
"ca_renderer_layer_tree.mm",
"display_ca_layer_tree.h",
"display_ca_layer_tree.mm",
"display_link_mac.cc",
"display_link_mac.h",
"io_surface_context.h",
"io_surface_context.mm",
"window_resize_helper_mac.cc",
"window_resize_helper_mac.h",
]
defines = [ "ACCELERATED_WIDGET_MAC_IMPLEMENTATION" ]
deps = [
"//base",
"//skia",
"//ui/base",
"//ui/events",
"//ui/events:events_base",
"//ui/gfx",
"//ui/gfx/geometry",
"//ui/gl",
]
libs = [
"AVFoundation.framework",
"CoreGraphics.framework",
"Foundation.framework",
"CoreFoundation.framework",
"CoreMedia.framework",
"IOSurface.framework",
"OpenGL.framework",
"QuartzCore.framework",
]
}
test("accelerated_widget_mac_unittests") {
configs += [ "//build/config:precompiled_headers" ]
sources = [
"ca_layer_tree_unittest_mac.mm",
]
deps = [
":accelerated_widget_mac",
"//base",
"//base/test:run_all_unittests",
"//base/test:test_support",
"//skia",
"//testing/gmock",
"//testing/gtest",
"//ui/gfx:test_support",
"//ui/gl",
]
libs = [
"AVFoundation.framework",
"QuartzCore.framework",
]
}