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