OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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("data_pipe_utils") { | 5 source_set("data_pipe_utils") { |
6 sources = [ | 6 sources = [ |
7 "data_pipe_drainer.cc", | 7 "data_pipe_drainer.cc", |
8 "data_pipe_drainer.h", | 8 "data_pipe_drainer.h", |
9 "data_pipe_file_utils.cc", | 9 "data_pipe_file_utils.cc", |
10 "data_pipe_utils.cc", | 10 "data_pipe_utils.cc", |
11 "data_pipe_utils.h", | 11 "data_pipe_utils.h", |
12 "data_pipe_utils_internal.h", | 12 "data_pipe_utils_internal.h", |
13 ] | 13 ] |
14 | 14 |
15 if (is_nacl) { | 15 if (is_nacl) { |
16 sources -= [ "data_pipe_file_utils.cc" ] | 16 sources -= [ "data_pipe_file_utils.cc" ] |
17 } | 17 } |
18 | 18 |
19 deps = [ | 19 deps = [ |
20 "//base", | 20 "//base", |
21 "//mojo/message_pump", | 21 "//mojo/message_pump", |
22 "//third_party/mojo/src/mojo/public/cpp/environment:environment", | 22 "//third_party/mojo/src/mojo/public/cpp/environment:environment", |
| 23 ] |
| 24 |
| 25 public_deps = [ |
23 "//third_party/mojo/src/mojo/public/cpp/system", | 26 "//third_party/mojo/src/mojo/public/cpp/system", |
24 ] | 27 ] |
25 } | 28 } |
26 | 29 |
27 source_set("tests") { | 30 source_set("tests") { |
28 testonly = true | 31 testonly = true |
29 | 32 |
30 sources = [ | 33 sources = [ |
31 "data_pipe_utils_unittest.cc", | 34 "data_pipe_utils_unittest.cc", |
32 ] | 35 ] |
33 | 36 |
34 deps = [ | 37 deps = [ |
35 ":data_pipe_utils", | 38 ":data_pipe_utils", |
36 "//base", | 39 "//base", |
37 "//testing/gtest", | 40 "//testing/gtest", |
38 "//third_party/mojo/src/mojo/public/cpp/system", | |
39 ] | 41 ] |
40 } | 42 } |
OLD | NEW |