| 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 mojo_sdk_source_set("mojio") { | |
| 10 # TODO(vtl): This is needed because mojo_sdk.gni doesn't understand relative | |
| 11 # dependencies (so without this we can't depend on our interfaces!). | |
| 12 restrict_external_deps = false | |
| 13 | |
| 14 public_configs = [ "../../../public/build/config:mojo_services" ] | |
| 15 | |
| 16 sources = [ | |
| 17 "lib/directory_wrapper.cc", | |
| 18 "lib/directory_wrapper.h", | |
| 19 "lib/errno_impl.h", | |
| 20 "lib/fd_impl.h", | |
| 21 "lib/fd_table.cc", | |
| 22 "lib/fd_table.h", | |
| 23 "lib/file_fd_impl.cc", | |
| 24 "lib/file_fd_impl.h", | |
| 25 "lib/mojio_fcntl.cc", | |
| 26 "lib/mojio_sys_stat.cc", | |
| 27 "lib/mojio_unistd.cc", | |
| 28 "lib/real_errno_impl.cc", | |
| 29 "lib/real_errno_impl.h", | |
| 30 "lib/singletons.cc", | |
| 31 "lib/singletons.h", | |
| 32 "lib/template_util.h", | |
| 33 "lib/util.cc", | |
| 34 "lib/util.h", | |
| 35 "mojio_config.h", | |
| 36 "mojio_fcntl.h", | |
| 37 "mojio_stdio.h", | |
| 38 "mojio_sys_stat.h", | |
| 39 "mojio_sys_types.h", | |
| 40 "mojio_time.h", | |
| 41 "mojio_unistd.h", | |
| 42 ] | |
| 43 | |
| 44 deps = [ | |
| 45 "../interfaces", | |
| 46 ] | |
| 47 | |
| 48 mojo_sdk_deps = [ | |
| 49 "mojo/public/cpp/bindings", | |
| 50 "mojo/public/cpp/environment", | |
| 51 "mojo/public/cpp/system", | |
| 52 ] | |
| 53 } | |
| 54 | |
| 55 # NOTE(vtl): Some of the tests actually depend on a reasonable implementation of | |
| 56 # the files service (e.g., //services/files). | |
| 57 mojo_native_application("apptests") { | |
| 58 output_name = "mojio_apptests" | |
| 59 | |
| 60 testonly = true | |
| 61 | |
| 62 sources = [ | |
| 63 "tests/directory_wrapper_unittest.cc", | |
| 64 "tests/errno_impl_unittest.cc", | |
| 65 "tests/fd_table_unittest.cc", | |
| 66 "tests/file_fd_impl_unittest.cc", | |
| 67 "tests/mock_errno_impl.cc", | |
| 68 "tests/mock_errno_impl.h", | |
| 69 "tests/mojio_impl_test_base.cc", | |
| 70 "tests/mojio_impl_test_base.h", | |
| 71 "tests/mojio_sys_stat_unittest.cc", | |
| 72 "tests/mojio_test_base.cc", | |
| 73 "tests/mojio_test_base.h", | |
| 74 "tests/mojio_unistd_unittest.cc", | |
| 75 "tests/real_errno_impl_unittest.cc", | |
| 76 "tests/test_utils.cc", | |
| 77 "tests/test_utils.h", | |
| 78 "tests/test_utils_unittest.cc", | |
| 79 "tests/util_unittest.cc", | |
| 80 ] | |
| 81 | |
| 82 deps = [ | |
| 83 ":mojio", | |
| 84 "../interfaces", | |
| 85 "$mojo_sdk_root/mojo/public/cpp/application:standalone", | |
| 86 "$mojo_sdk_root/mojo/public/cpp/application:test_support_standalone", | |
| 87 "$mojo_sdk_root/mojo/public/cpp/bindings", | |
| 88 "$mojo_sdk_root/mojo/public/cpp/environment", | |
| 89 "$mojo_sdk_root/mojo/public/cpp/system", | |
| 90 "//testing/gtest", | |
| 91 ] | |
| 92 } | |
| OLD | NEW |