| 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_version.gni") | 5 import("//remoting/remoting_srcs.gni") | 
| 6 | 6 | 
| 7 static_library("client") { | 7 source_set("client") { | 
| 8   gypi_values = exec_script("//build/gypi_to_gn.py", | 8   sources = rebase_path(remoting_srcs_gypi_values.remoting_client_sources, | 
| 9                             [ rebase_path("../remoting_srcs.gypi") ], | 9                         ".", | 
| 10                             "scope", | 10                         "//remoting") | 
| 11                             [ "../remoting_srcs.gypi" ]) |  | 
| 12 | 11 | 
| 13   sources = rebase_path(gypi_values.remoting_client_sources, ".", "//remoting") | 12   configs += [ | 
| 14 | 13     "//build/config/compiler:wexit_time_destructors", | 
| 15   configs += [ "//build/config/compiler:wexit_time_destructors" ] | 14     "//remoting:version", | 
| 16 | 15   ] | 
| 17   defines = [ "VERSION=$version_full" ] |  | 
| 18 | 16 | 
| 19   deps = [ | 17   deps = [ | 
| 20     "//remoting/base", | 18     "//remoting/base", | 
|  | 19     "//remoting/codec", | 
| 21     "//remoting/protocol", | 20     "//remoting/protocol", | 
| 22     "//third_party/libyuv", | 21     "//third_party/libyuv", | 
| 23     "//third_party/webrtc/modules/desktop_capture", | 22     "//third_party/webrtc/modules/desktop_capture", | 
| 24   ] | 23   ] | 
| 25 } | 24 } | 
|  | 25 | 
|  | 26 source_set("unit_tests") { | 
|  | 27   testonly = true | 
|  | 28 | 
|  | 29   sources = [ | 
|  | 30     "audio_player_unittest.cc", | 
|  | 31     "client_status_logger_unittest.cc", | 
|  | 32     "key_event_mapper_unittest.cc", | 
|  | 33     "plugin/empty_cursor_filter_unittest.cc", | 
|  | 34     "plugin/normalizing_input_filter_mac_unittest.cc", | 
|  | 35     "server_log_entry_client_unittest.cc", | 
|  | 36   ] | 
|  | 37 | 
|  | 38   if (is_chromeos) { | 
|  | 39     sources += [ "plugin/normalizing_input_filter_cros_unittest.cc" ] | 
|  | 40   } | 
|  | 41 | 
|  | 42   deps = [ | 
|  | 43     ":client", | 
|  | 44     "//remoting/proto", | 
|  | 45     "//testing/gmock", | 
|  | 46     "//testing/gtest", | 
|  | 47     "//third_party/webrtc", | 
|  | 48   ] | 
|  | 49 } | 
| OLD | NEW | 
|---|