| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 import("//build/module_args/mojo.gni") | |
| 6 import("$mojo_sdk_root/mojo/public/mojo_application.gni") | |
| 7 import("$mojo_sdk_root/mojo/public/mojo_sdk.gni") | |
| 8 | |
| 9 # files_impl is a helper library for *implementing* various interfaces in | |
| 10 # |mojo.files|. | |
| 11 mojo_sdk_source_set("files_impl") { | |
| 12 # TODO(vtl): This is needed because mojo_sdk.gni doesn't understand relative | |
| 13 # dependencies (so without this we can't depend on our interfaces!). Should | |
| 14 # this target even be a mojo_sdk_source_set? | |
| 15 restrict_external_deps = false | |
| 16 | |
| 17 public_configs = [ "../../../public/build/config:mojo_services" ] | |
| 18 | |
| 19 sources = [ | |
| 20 "input_stream_file.h", | |
| 21 "lib/input_stream_file.cc", | |
| 22 "lib/output_stream_file.cc", | |
| 23 "output_stream_file.h", | |
| 24 ] | |
| 25 | |
| 26 deps = [ | |
| 27 "../interfaces", | |
| 28 ] | |
| 29 | |
| 30 mojo_sdk_deps = [ | |
| 31 "mojo/public/cpp/bindings", | |
| 32 "mojo/public/cpp/bindings:callback", | |
| 33 "mojo/public/cpp/environment", | |
| 34 "mojo/public/cpp/system", | |
| 35 ] | |
| 36 } | |
| 37 | |
| 38 mojo_native_application("files_impl_apptests") { | |
| 39 output_name = "files_impl_apptests" | |
| 40 | |
| 41 testonly = true | |
| 42 | |
| 43 sources = [ | |
| 44 "tests/input_stream_file_unittest.cc", | |
| 45 "tests/output_stream_file_unittest.cc", | |
| 46 ] | |
| 47 | |
| 48 deps = [ | |
| 49 ":files_impl", | |
| 50 "../interfaces", | |
| 51 "$mojo_sdk_root/mojo/public/cpp/application:standalone", | |
| 52 "$mojo_sdk_root/mojo/public/cpp/application:test_support_standalone", | |
| 53 "$mojo_sdk_root/mojo/public/cpp/bindings", | |
| 54 "$mojo_sdk_root/mojo/public/cpp/environment", | |
| 55 "$mojo_sdk_root/mojo/public/cpp/system", | |
| 56 "$mojo_sdk_root/mojo/public/cpp/utility", | |
| 57 "//testing/gtest", | |
| 58 ] | |
| 59 } | |
| OLD | NEW |