| 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 import("//mojo/public/mojo_application.gni") |
| 6 |
| 5 source_set("data_pipe_utils") { | 7 source_set("data_pipe_utils") { |
| 6 sources = [ | 8 sources = [ |
| 7 "data_pipe_drainer.cc", | 9 "data_pipe_drainer.cc", |
| 8 "data_pipe_drainer.h", | 10 "data_pipe_drainer.h", |
| 9 "data_pipe_file_utils.cc", | 11 "data_pipe_file_utils.cc", |
| 10 "data_pipe_utils.cc", | 12 "data_pipe_utils.cc", |
| 11 "data_pipe_utils.h", | 13 "data_pipe_utils.h", |
| 12 "data_pipe_utils_internal.h", | 14 "data_pipe_utils_internal.h", |
| 13 ] | 15 ] |
| 14 | 16 |
| 15 if (is_nacl) { | 17 if (is_nacl) { |
| 16 sources -= [ "data_pipe_file_utils.cc" ] | 18 sources -= [ "data_pipe_file_utils.cc" ] |
| 17 } | 19 } |
| 18 | 20 |
| 19 deps = [ | 21 deps = [ |
| 20 "//base", | 22 "//base", |
| 21 "//mojo/message_pump", | 23 "//mojo/message_pump", |
| 22 "//mojo/public/cpp/environment:environment", | 24 "//mojo/public/cpp/environment:environment", |
| 23 ] | 25 ] |
| 24 | 26 |
| 25 public_deps = [ | 27 public_deps = [ |
| 26 "//mojo/public/cpp/system", | 28 "//mojo/public/cpp/system", |
| 27 ] | 29 ] |
| 28 } | 30 } |
| 29 | 31 |
| 30 source_set("tests") { | 32 mojo_native_application("mojo_data_pipe_utils_apptests") { |
| 31 testonly = true | 33 testonly = true |
| 32 | 34 |
| 33 sources = [ | 35 sources = [ |
| 34 "data_pipe_utils_unittest.cc", | 36 "data_pipe_utils_unittest.cc", |
| 35 ] | 37 ] |
| 36 | 38 |
| 37 deps = [ | 39 deps = [ |
| 38 ":data_pipe_utils", | 40 ":data_pipe_utils", |
| 39 "//base", | 41 "//base", |
| 42 "//mojo/application", |
| 43 "//mojo/application:test_support", |
| 40 "//testing/gtest", | 44 "//testing/gtest", |
| 41 ] | 45 ] |
| 42 } | 46 } |
| OLD | NEW |