| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//remoting/remoting_srcs.gni") | 5 static_library("base") { |
| 6 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 7 [ rebase_path("../remoting_srcs.gypi") ], |
| 8 "scope", |
| 9 [ "../remoting_srcs.gypi" ]) |
| 6 | 10 |
| 7 source_set("base") { | 11 sources = rebase_path(gypi_values.remoting_base_sources, ".", "//remoting") |
| 8 sources = rebase_path(remoting_srcs_gypi_values.remoting_base_sources, | |
| 9 ".", | |
| 10 "//remoting") | |
| 11 | 12 |
| 12 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 13 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 13 | 14 |
| 14 public_deps = [ | 15 public_deps = [ |
| 15 "//base", | 16 "//base", |
| 16 "//net", | 17 "//net", |
| 17 "//remoting/proto", | 18 "//remoting/proto", |
| 18 "//third_party/protobuf:protobuf_lite", | 19 "//third_party/protobuf:protobuf_lite", |
| 19 ] | 20 ] |
| 20 deps = [ | 21 deps = [ |
| 21 "//base/third_party/dynamic_annotations", | 22 "//base/third_party/dynamic_annotations", |
| 22 "//media", | 23 "//media", |
| 23 "//media:shared_memory_support", | 24 "//media:shared_memory_support", |
| 24 "//remoting/resources", | 25 "//remoting/resources", |
| 25 "//third_party/libvpx", | 26 "//third_party/libvpx", |
| 26 "//third_party/libyuv", | 27 "//third_party/libyuv", |
| 28 "//third_party/opus", |
| 27 "//third_party/webrtc/modules/desktop_capture", | 29 "//third_party/webrtc/modules/desktop_capture", |
| 28 "//ui/base", | 30 "//ui/base", |
| 31 "//ui/gfx", |
| 32 "//ui/gfx/geometry", |
| 29 ] | 33 ] |
| 30 } | 34 } |
| 31 | |
| 32 source_set("unit_tests") { | |
| 33 testonly = true | |
| 34 | |
| 35 sources = [ | |
| 36 "auto_thread_task_runner_unittest.cc", | |
| 37 "auto_thread_unittest.cc", | |
| 38 "breakpad_win_unittest.cc", | |
| 39 "buffered_socket_writer_unittest.cc", | |
| 40 "capabilities_unittest.cc", | |
| 41 "compound_buffer_unittest.cc", | |
| 42 "rate_counter_unittest.cc", | |
| 43 "rsa_key_pair_unittest.cc", | |
| 44 "run_all_unittests.cc", | |
| 45 "running_average_unittest.cc", | |
| 46 "test_rsa_key_pair.h", | |
| 47 "typed_buffer_unittest.cc", | |
| 48 "util_unittest.cc", | |
| 49 ] | |
| 50 | |
| 51 if (is_win || is_mac || is_chromeos) { | |
| 52 sources += [ "resources_unittest.cc" ] | |
| 53 } | |
| 54 | |
| 55 deps = [ | |
| 56 ":base", | |
| 57 "//base", | |
| 58 "//net:test_support", | |
| 59 "//testing/gmock", | |
| 60 "//testing/gtest", | |
| 61 "//third_party/libyuv", | |
| 62 "//third_party/webrtc/modules/desktop_capture", | |
| 63 ] | |
| 64 } | |
| OLD | NEW |