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 "lib/output_stream_file.cc", |
| 21 "output_stream_file.h", |
| 22 ] |
| 23 |
| 24 deps = [ |
| 25 "../interfaces", |
| 26 ] |
| 27 |
| 28 mojo_sdk_deps = [ |
| 29 "mojo/public/cpp/bindings", |
| 30 "mojo/public/cpp/environment", |
| 31 "mojo/public/cpp/system", |
| 32 ] |
| 33 } |
| 34 |
| 35 mojo_native_application("files_impl_apptests") { |
| 36 output_name = "files_impl_apptests" |
| 37 |
| 38 testonly = true |
| 39 |
| 40 sources = [ |
| 41 "tests/output_stream_file_unittest.cc", |
| 42 ] |
| 43 |
| 44 deps = [ |
| 45 ":files_impl", |
| 46 "../interfaces", |
| 47 "$mojo_sdk_root/mojo/public/cpp/application:standalone", |
| 48 "$mojo_sdk_root/mojo/public/cpp/application:test_support_standalone", |
| 49 "$mojo_sdk_root/mojo/public/cpp/bindings", |
| 50 "$mojo_sdk_root/mojo/public/cpp/environment", |
| 51 "$mojo_sdk_root/mojo/public/cpp/system", |
| 52 "$mojo_sdk_root/mojo/public/cpp/utility", |
| 53 "//testing/gtest", |
| 54 ] |
| 55 } |
OLD | NEW |