| # Copyright 2017 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/chromeos/ui_mode.gni") |
| |
| source_set("ui") { |
| sources = [ |
| "fling_animation.cc", |
| "fling_animation.h", |
| "fling_tracker.cc", |
| "fling_tracker.h", |
| ] |
| |
| deps = [ |
| ":ui_manipulation", |
| "//base", |
| ] |
| |
| public_deps = [ |
| "//remoting/proto", |
| "//third_party/webrtc_overrides:webrtc_component", |
| ] |
| |
| if (!is_chromeos_ash && !is_chromeos_lacros) { |
| deps += [ "//remoting/client/display" ] |
| } |
| } |
| |
| source_set("ui_manipulation") { |
| sources = [ |
| "desktop_viewport.cc", |
| "desktop_viewport.h", |
| "view_matrix.cc", |
| "view_matrix.h", |
| ] |
| |
| deps = [ "//base" ] |
| |
| public_deps = [ |
| "//remoting/proto", |
| "//third_party/webrtc_overrides:webrtc_component", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| |
| sources = [ |
| "desktop_viewport_unittest.cc", |
| "fling_animation_unittest.cc", |
| ] |
| |
| configs += [ "//remoting/build/config:version" ] |
| |
| deps = [ |
| ":ui", |
| "//base", |
| "//base/test:test_support", |
| "//remoting/client/ui:ui_manipulation", |
| "//testing/gmock", |
| "//testing/gtest", |
| ] |
| } |