blob: 3b126b4a6d900f733dfa90d6c88c9171d0f1faeb [file] [log] [blame]
# Copyright 2015 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.
static_library("signaling") {
sources = [
"delegating_signal_strategy.cc",
"delegating_signal_strategy.h",
"ftl_client_uuid_device_id_provider.cc",
"ftl_client_uuid_device_id_provider.h",
"ftl_device_id_provider.h",
"ftl_grpc_context.cc",
"ftl_grpc_context.h",
"ftl_host_device_id_provider.cc",
"ftl_host_device_id_provider.h",
"ftl_message_reception_channel.cc",
"ftl_message_reception_channel.h",
"ftl_messaging_client.cc",
"ftl_messaging_client.h",
"ftl_registration_manager.cc",
"ftl_registration_manager.h",
"ftl_signal_strategy.cc",
"ftl_signal_strategy.h",
"iq_sender.cc",
"iq_sender.h",
"jid_util.cc",
"jid_util.h",
"log_to_server.cc",
"log_to_server.h",
"message_reception_channel.h",
"message_tracker.cc",
"message_tracker.h",
"muxing_signal_strategy.cc",
"muxing_signal_strategy.h",
"push_notification_subscriber.cc",
"push_notification_subscriber.h",
"registration_manager.h",
"server_log_entry.cc",
"server_log_entry.h",
"signal_strategy.h",
"signaling_address.cc",
"signaling_address.h",
"xmpp_login_handler.cc",
"xmpp_login_handler.h",
"xmpp_signal_strategy.cc",
"xmpp_signal_strategy.h",
"xmpp_stream_parser.cc",
"xmpp_stream_parser.h",
]
configs += [
"//build/config/compiler:no_size_t_to_int_warning",
"//build/config/compiler:wexit_time_destructors",
"//remoting/build/config:version",
]
public_deps = [
"//remoting/proto",
"//remoting/proto/ftl/v1:ftl_grpc_library",
"//third_party/libjingle_xmpp",
"//third_party/webrtc_overrides",
]
deps = [
"//base",
"//crypto",
"//google_apis",
"//jingle:webrtc_glue",
"//net",
"//remoting/base",
"//remoting/base/grpc_support",
"//third_party/grpc:grpcpp",
]
if (is_nacl) {
sources -= [
"ftl_client_uuid_device_id_provider.cc",
"ftl_client_uuid_device_id_provider.h",
"ftl_grpc_context.cc",
"ftl_grpc_context.h",
"ftl_host_device_id_provider.cc",
"ftl_host_device_id_provider.h",
"ftl_message_reception_channel.cc",
"ftl_message_reception_channel.h",
"ftl_messaging_client.cc",
"ftl_messaging_client.h",
"ftl_registration_manager.cc",
"ftl_registration_manager.h",
"ftl_signal_strategy.cc",
"ftl_signal_strategy.h",
"log_to_server.cc",
"server_log_entry.cc",
"xmpp_signal_strategy.cc",
]
deps -= [
"//google_apis",
"//remoting/base/grpc_support",
"//third_party/grpc:grpcpp",
]
public_deps -= [ "//remoting/proto/ftl/v1:ftl_grpc_library" ]
}
}
static_library("test_support") {
testonly = true
sources = [
"fake_signal_strategy.cc",
"fake_signal_strategy.h",
"mock_signal_strategy.cc",
"mock_signal_strategy.h",
]
public_deps = [
":signaling",
"//testing/gmock",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"ftl_message_reception_channel_unittest.cc",
"ftl_messaging_client_unittest.cc",
"iq_sender_unittest.cc",
"jid_util_unittest.cc",
"log_to_server_unittest.cc",
"message_tracker_unittest.cc",
"push_notification_subscriber_unittest.cc",
"server_log_entry_unittest.cc",
"server_log_entry_unittest.h",
"signaling_address_unittest.cc",
"xmpp_login_handler_unittest.cc",
"xmpp_signal_strategy_unittest.cc",
"xmpp_stream_parser_unittest.cc",
]
deps = [
":test_support",
"//net:test_support",
"//remoting/base/grpc_support:unit_tests",
"//testing/gmock",
"//testing/gtest",
]
}