Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / remoting / base / BUILD.gn
bloba8f06a25e0e4fe5f1a5bfebb3c2e4ef061c7b457
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//remoting/remoting_srcs.gni")
7 source_set("base") {
8   sources = rebase_path(remoting_srcs_gypi_values.remoting_base_sources,
9                         ".",
10                         "//remoting")
12   configs += [ "//build/config/compiler:wexit_time_destructors" ]
14   public_deps = [
15     "//base",
16     "//net",
17     "//remoting/proto",
18     "//third_party/protobuf:protobuf_lite",
19   ]
20   deps = [
21     "//base/third_party/dynamic_annotations",
22     "//media",
23     "//media:shared_memory_support",
24     "//remoting/resources",
25     "//third_party/libvpx",
26     "//third_party/libyuv",
27     "//third_party/webrtc/modules/desktop_capture",
28     "//ui/base",
29   ]
32 source_set("breakpad") {
33   sources = [
34     "breakpad.h",
35     "breakpad_linux.cc",
36     "breakpad_mac.mm",
37     "breakpad_win.cc",
38   ]
40   configs += [ "//build/config/compiler:wexit_time_destructors" ]
42   deps = [
43     "//base",
44   ]
46   if (is_mac) {
47     deps += [ "//breakpad" ]
48   } else if (is_win) {
49     deps += [ "//breakpad:breakpad_handler" ]
50   }
53 source_set("unit_tests") {
54   testonly = true
56   sources = [
57     "auto_thread_task_runner_unittest.cc",
58     "auto_thread_unittest.cc",
59     "breakpad_win_unittest.cc",
60     "buffered_socket_writer_unittest.cc",
61     "capabilities_unittest.cc",
62     "compound_buffer_unittest.cc",
63     "rate_counter_unittest.cc",
64     "resources_unittest.cc",
65     "rsa_key_pair_unittest.cc",
66     "run_all_unittests.cc",
67     "running_average_unittest.cc",
68     "test_rsa_key_pair.h",
69     "typed_buffer_unittest.cc",
70     "util_unittest.cc",
71   ]
73   deps = [
74     ":base",
75     ":breakpad",
76     "//base",
77     "//net:test_support",
78     "//testing/gmock",
79     "//testing/gtest",
80     "//third_party/libyuv",
81     "//third_party/webrtc/modules/desktop_capture",
82   ]
84   if (is_win || is_mac || is_chromeos) {
85     deps += [ "//breakpad:client" ]
86   }
88   if (is_win) {
89     libs = [ "rpcrt4.lib" ]  # For UuidCreate in breakpad_win_unittest.cc.
90   }