Linux: Depend on liberation-fonts package for RPMs.
[chromium-blink-merge.git] / remoting / protocol / BUILD.gn
blob722bd77161f28036aa127c3f9143cf37c6e59ee0
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("protocol") {
8   sources = rebase_path(remoting_srcs_gypi_values.remoting_protocol_sources,
9                         ".",
10                         "//remoting")
12   configs += [
13     "//build/config:precompiled_headers",
14     "//build/config/compiler:no_size_t_to_int_warning",
15     "//build/config/compiler:wexit_time_destructors",
16   ]
18   public_deps = [
19     "//remoting/proto",
20     "//third_party/libjingle",
21   ]
22   deps = [
23     "//base",
24     "//crypto",
25     "//jingle:jingle_glue",
26     "//net",
27     "//remoting/base",
28     "//remoting/codec",
29     "//remoting/signaling",
30   ]
32   if (is_nacl) {
33     sources -= [
34       "chromium_port_allocator.cc",
35       "chromium_socket_factory.cc",
36     ]
37   }
40 source_set("test_support") {
41   testonly = true
43   sources = [
44     "fake_authenticator.cc",
45     "fake_authenticator.h",
46     "fake_connection_to_host.cc",
47     "fake_connection_to_host.h",
48     "fake_datagram_socket.cc",
49     "fake_datagram_socket.h",
50     "fake_session.cc",
51     "fake_session.h",
52     "fake_stream_socket.cc",
53     "fake_stream_socket.h",
54     "protocol_mock_objects.cc",
55     "protocol_mock_objects.h",
56   ]
58   public_deps = [
59     ":protocol",
60     "//testing/gmock",
61   ]
64 source_set("unit_tests") {
65   testonly = true
67   sources = [
68     "authenticator_test_base.cc",
69     "authenticator_test_base.h",
70     "channel_multiplexer_unittest.cc",
71     "channel_socket_adapter_unittest.cc",
72     "chromium_socket_factory_unittest.cc",
73     "client_video_dispatcher_unittest.cc",
74     "clipboard_echo_filter_unittest.cc",
75     "clipboard_filter_unittest.cc",
76     "connection_tester.cc",
77     "connection_tester.h",
78     "connection_to_client_unittest.cc",
79     "content_description_unittest.cc",
80     "input_event_tracker_unittest.cc",
81     "input_filter_unittest.cc",
82     "jingle_messages_unittest.cc",
83     "jingle_session_unittest.cc",
84     "message_decoder_unittest.cc",
85     "message_reader_unittest.cc",
86     "monitored_video_stub_unittest.cc",
87     "mouse_input_filter_unittest.cc",
88     "negotiating_authenticator_unittest.cc",
89     "pairing_registry_unittest.cc",
90     "port_range_unittest.cc",
91     "ppapi_module_stub.cc",
92     "pseudotcp_adapter_unittest.cc",
93     "quic_channel_factory_unittest.cc",
94     "ssl_hmac_channel_authenticator_unittest.cc",
95     "third_party_authenticator_unittest.cc",
96     "v2_authenticator_unittest.cc",
97   ]
99   deps = [
100     ":test_support",
101     "//testing/gmock",
102     "//testing/gtest",
103   ]