forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.gn
96 lines (85 loc) · 2.04 KB
/
BUILD.gn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# 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",
"iq_sender.cc",
"iq_sender.h",
"jid_util.cc",
"jid_util.h",
"log_to_server.cc",
"log_to_server.h",
"push_notification_subscriber.cc",
"push_notification_subscriber.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",
]
public_deps = [
"//remoting/proto",
"//third_party/libjingle_xmpp",
"//third_party/webrtc_overrides",
]
deps = [
"//base",
"//crypto",
"//jingle:jingle_glue",
"//net",
"//remoting/base",
]
if (is_nacl) {
sources -= [
"log_to_server.cc",
"server_log_entry.cc",
"xmpp_signal_strategy.cc",
]
}
}
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 = [
"iq_sender_unittest.cc",
"jid_util_unittest.cc",
"log_to_server_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",
"//testing/gmock",
"//testing/gtest",
]
}