Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: remoting/base/BUILD.gn

Issue 2661153003: Moving oauth code from host to base to allow code sharing between host and client. (Closed)
Patch Set: Merge branch 'master' into auth_token Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/BUILD.gn ('k') | remoting/base/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 source_set("base") { 5 source_set("base") {
6 sources = [ 6 sources = [
7 "auto_thread.cc", 7 "auto_thread.cc",
8 "auto_thread.h", 8 "auto_thread.h",
9 "auto_thread_task_runner.cc", 9 "auto_thread_task_runner.cc",
10 "auto_thread_task_runner.h", 10 "auto_thread_task_runner.h",
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 if (is_nacl) { 64 if (is_nacl) {
65 sources -= [ 65 sources -= [
66 "chromium_url_request.cc", 66 "chromium_url_request.cc",
67 "chromoting_event.cc", 67 "chromoting_event.cc",
68 "telemetry_log_writer.cc", 68 "telemetry_log_writer.cc",
69 "url_request_context_getter.cc", 69 "url_request_context_getter.cc",
70 ] 70 ]
71 } 71 }
72 } 72 }
73 73
74 source_set("authorization") {
75 sources = [
76 "gaia_oauth_client.cc",
77 "gaia_oauth_client.h",
78 "oauth_client.h",
79 "oauth_helper.cc",
80 "oauth_helper.h",
81 "oauth_token_getter.cc",
82 "oauth_token_getter.h",
83 "oauth_token_getter_impl.cc",
84 "oauth_token_getter_impl.h",
85 ]
86
87 configs += [
88 "//build/config/compiler:wexit_time_destructors",
89 "//remoting/build/config:version",
90 ]
91
92 public_deps = [
93 "//base",
94 "//google_apis",
95 "//net",
96 ]
97 }
98
74 source_set("breakpad") { 99 source_set("breakpad") {
75 sources = [ 100 sources = [
76 "breakpad.h", 101 "breakpad.h",
77 "breakpad_linux.cc", 102 "breakpad_linux.cc",
78 "breakpad_mac.mm", 103 "breakpad_mac.mm",
79 "breakpad_win.cc", 104 "breakpad_win.cc",
80 ] 105 ]
81 106
82 configs += [ "//build/config/compiler:wexit_time_destructors" ] 107 configs += [ "//build/config/compiler:wexit_time_destructors" ]
83 108
84 deps = [ 109 deps = [
85 "//base", 110 "//base",
86 ] 111 ]
87 112
88 if (is_mac) { 113 if (is_mac) {
89 deps += [ "//breakpad" ] 114 deps += [ "//breakpad" ]
90 } else if (is_win) { 115 } else if (is_win) {
91 deps += [ "//breakpad:breakpad_handler" ] 116 deps += [ "//breakpad:breakpad_handler" ]
92 } 117 }
93 } 118 }
94 119
120 static_library("test_support") {
121 testonly = true
122
123 sources = [
124 "fake_oauth_token_getter.cc",
125 "fake_oauth_token_getter.h",
126 "mock_oauth_client.cc",
127 "mock_oauth_client.h",
128 "test_rsa_key_pair.h",
129 ]
130
131 deps = [
132 "//remoting/proto",
133 ]
134 public_deps = [
135 ":authorization",
136 ":base",
137 ":breakpad",
138 "//base",
139 "//testing/gmock",
140 "//testing/gtest",
141 "//third_party/protobuf:protobuf_lite",
142 ]
143 }
144
95 source_set("unit_tests") { 145 source_set("unit_tests") {
96 testonly = true 146 testonly = true
97 147
98 sources = [ 148 sources = [
99 "auto_thread_task_runner_unittest.cc", 149 "auto_thread_task_runner_unittest.cc",
100 "auto_thread_unittest.cc", 150 "auto_thread_unittest.cc",
101 "breakpad_win_unittest.cc", 151 "breakpad_win_unittest.cc",
102 "buffered_socket_writer_unittest.cc", 152 "buffered_socket_writer_unittest.cc",
103 "capabilities_unittest.cc", 153 "capabilities_unittest.cc",
104 "compound_buffer_unittest.cc", 154 "compound_buffer_unittest.cc",
155 "oauth_helper_unittest.cc",
105 "rate_counter_unittest.cc", 156 "rate_counter_unittest.cc",
106 "rsa_key_pair_unittest.cc", 157 "rsa_key_pair_unittest.cc",
107 "run_all_unittests.cc", 158 "run_all_unittests.cc",
108 "running_samples_unittest.cc", 159 "running_samples_unittest.cc",
109 "telemetry_log_writer_unittest.cc", 160 "telemetry_log_writer_unittest.cc",
110 "test_rsa_key_pair.h",
111 "typed_buffer_unittest.cc", 161 "typed_buffer_unittest.cc",
112 "util_unittest.cc", 162 "util_unittest.cc",
113 ] 163 ]
114 164
115 deps = [ 165 deps = [
116 ":base", 166 ":test_support",
117 ":breakpad",
118 "//base",
119 "//mojo/edk/system", 167 "//mojo/edk/system",
120 "//net:test_support", 168 "//net:test_support",
121 "//testing/gmock",
122 "//testing/gtest",
123 "//third_party/libyuv", 169 "//third_party/libyuv",
124 "//third_party/webrtc/modules/desktop_capture:primitives", 170 "//third_party/webrtc/modules/desktop_capture:primitives",
125 ] 171 ]
126 172
127 if (is_win || is_mac || is_chromeos) { 173 if (is_win || is_mac || is_chromeos) {
128 deps += [ "//breakpad:client" ] 174 deps += [ "//breakpad:client" ]
129 } 175 }
130 176
131 if (is_win) { 177 if (is_win) {
132 libs = [ "rpcrt4.lib" ] # For UuidCreate in breakpad_win_unittest.cc. 178 libs = [ "rpcrt4.lib" ] # For UuidCreate in breakpad_win_unittest.cc.
133 } 179 }
134 } 180 }
OLDNEW
« no previous file with comments | « remoting/BUILD.gn ('k') | remoting/base/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698