123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- # Copyright 2018 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")
- import("//remoting/build/config/remoting_build.gni")
- source_set("file_transfer") {
- sources = [ "get_desktop_directory.h" ]
- public_deps = [ ":common" ]
- deps = [
- "//base",
- "//remoting/protocol",
- "//remoting/resources",
- ]
- if (is_mac) {
- sources += [
- "ensure_user_mac.cc",
- "file_chooser_mac.mm",
- ]
- deps += [ "//ui/base" ]
- frameworks = [ "AppKit.framework" ]
- }
- if (!is_mac && !is_win) {
- sources += [ "ensure_user_no_op.cc" ]
- }
- if (is_win) {
- sources += [
- "ensure_user_win.cc",
- "file_chooser_common_win.h",
- "file_chooser_main_win.cc",
- "file_chooser_win.cc",
- "get_desktop_directory_win.cc",
- ]
- deps += [
- "//ipc:ipc",
- "//remoting/host:common",
- "//remoting/host/base",
- "//remoting/host/mojom",
- "//remoting/host/win",
- ]
- } else {
- sources += [ "get_desktop_directory.cc" ]
- }
- if (is_chromeos_ash) {
- sources += [ "file_chooser_chromeos.cc" ]
- } else if (is_linux) {
- sources += [ "file_chooser_linux.cc" ]
- deps += [
- "//build/config/linux/gtk",
- "//ui/base:base",
- ]
- }
- }
- source_set("common") {
- public = [
- "buffered_file_writer.h",
- "ensure_user.h",
- "file_chooser.h",
- "file_operations.h",
- "file_transfer_message_handler.h",
- "get_desktop_directory.h",
- "ipc_file_operations.h",
- "local_file_operations.h",
- "rtc_log_file_operations.h",
- "session_file_operations_handler.h",
- ]
- sources = [
- "buffered_file_writer.cc",
- "file_transfer_message_handler.cc",
- "ipc_file_operations.cc",
- "local_file_operations.cc",
- "rtc_log_file_operations.cc",
- "session_file_operations_handler.cc",
- ]
- deps = [
- "//base",
- "//net:net",
- "//remoting/base:base",
- "//remoting/host/mojom",
- "//remoting/protocol",
- "//ui/base:base",
- "//url:url",
- ]
- }
- source_set("test_support") {
- testonly = true
- sources = [
- "ensure_user_no_op.cc",
- "fake_file_chooser.cc",
- "fake_file_chooser.h",
- "fake_file_operations.cc",
- "fake_file_operations.h",
- "get_desktop_directory.cc",
- "test_byte_vector_utils.h",
- ]
- deps = [
- ":common",
- "//base:base",
- "//remoting/protocol",
- ]
- }
- source_set("unit_tests") {
- testonly = true
- sources = [
- "buffered_file_writer_unittest.cc",
- "file_transfer_message_handler_unittest.cc",
- "ipc_file_operations_unittest.cc",
- "local_file_operations_unittest.cc",
- "rtc_log_file_operations_unittest.cc",
- ]
- deps = [
- ":common",
- ":test_support",
- "//base:base",
- "//base/test:test_support",
- "//net:net",
- "//remoting/base:base",
- "//remoting/host/mojom",
- "//remoting/protocol",
- "//remoting/protocol:test_support",
- "//testing/gtest",
- ]
- }
|