| 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("//build/module_args/mojo.gni") | 5 import("//build/module_args/mojo.gni") |
| 6 import("$mojo_sdk_root/mojo/public/mojo_application.gni") | 6 import("$mojo_sdk_root/mojo/public/mojo_application.gni") |
| 7 import("$mojo_sdk_root/mojo/public/mojo_sdk.gni") | 7 import("$mojo_sdk_root/mojo/public/mojo_sdk.gni") |
| 8 | 8 |
| 9 # files_impl is a helper library for *implementing* various interfaces in | 9 # log_client is a helper library for talking to the mojo log service (see |
| 10 # |mojo.files|. | 10 # log.mojo). |
| 11 mojo_sdk_source_set("files_impl") { | 11 # TODO(vardhan): should this be an SDK source set? |
| 12 # TODO(vtl): This is needed because mojo_sdk.gni doesn't understand relative | 12 mojo_sdk_source_set("log_client") { |
| 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 | 13 restrict_external_deps = false |
| 16 | 14 |
| 17 public_configs = [ "../../public/build/config:mojo_services" ] | 15 public_configs = [ "../../public/build/config:mojo_services" ] |
| 18 | 16 |
| 19 sources = [ | 17 sources = [ |
| 20 "input_stream_file.h", | 18 "lib/log_client.cc", |
| 21 "lib/input_stream_file.cc", | 19 "log_client.h", |
| 22 "lib/output_stream_file.cc", | |
| 23 "output_stream_file.h", | |
| 24 ] | 20 ] |
| 25 | 21 |
| 26 deps = [ | 22 deps = [ |
| 27 "../interfaces", | 23 "../interfaces", |
| 28 ] | 24 ] |
| 29 | 25 |
| 30 mojo_sdk_deps = [ | 26 mojo_sdk_deps = [ |
| 31 "mojo/public/cpp/bindings", | 27 "mojo/public/cpp/bindings", |
| 32 "mojo/public/cpp/bindings:callback", | |
| 33 "mojo/public/cpp/environment", | 28 "mojo/public/cpp/environment", |
| 34 "mojo/public/cpp/system", | 29 "mojo/public/cpp/system", |
| 35 ] | 30 ] |
| 36 } | 31 } |
| 37 | 32 |
| 38 mojo_native_application("files_impl_apptests") { | 33 mojo_native_application("log_client_apptests") { |
| 39 output_name = "files_impl_apptests" | 34 output_name = "log_client_apptests" |
| 40 | 35 |
| 41 testonly = true | 36 testonly = true |
| 42 | 37 |
| 43 sources = [ | 38 sources = [ |
| 44 "tests/input_stream_file_unittest.cc", | 39 "tests/log_client_unittest.cc", |
| 45 "tests/output_stream_file_unittest.cc", | |
| 46 ] | 40 ] |
| 47 | 41 |
| 48 deps = [ | 42 deps = [ |
| 49 ":files_impl", | 43 ":log_client", |
| 50 "../interfaces", | 44 "$mojo_sdk_root/mojo/public/cpp/bindings", |
| 45 "$mojo_sdk_root/mojo/public/cpp/environment", |
| 51 "$mojo_sdk_root/mojo/public/cpp/application:standalone", | 46 "$mojo_sdk_root/mojo/public/cpp/application:standalone", |
| 52 "$mojo_sdk_root/mojo/public/cpp/application:test_support_standalone", | 47 "$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", | 48 "$mojo_sdk_root/mojo/public/cpp/utility", |
| 49 "$mojo_sdk_root/mojo/services/log/interfaces", |
| 57 "//testing/gtest", | 50 "//testing/gtest", |
| 58 ] | 51 ] |
| 59 } | 52 } |
| OLD | NEW |