| # Copyright 2014 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//services/service_manager/public/cpp/service_executable.gni") |
| import("//testing/test.gni") |
| |
| static_library("lib") { |
| sources = [ |
| "directory_impl.cc", |
| "directory_impl.h", |
| "file_impl.cc", |
| "file_impl.h", |
| "file_system_impl.cc", |
| "file_system_impl.h", |
| "lock_table.cc", |
| "lock_table.h", |
| "shared_temp_dir.cc", |
| "shared_temp_dir.h", |
| "util.cc", |
| "util.h", |
| ] |
| |
| deps = [ |
| "//base", |
| "//components/services/filesystem/public/interfaces", |
| "//mojo/public/cpp/system", |
| "//services/service_manager/public/cpp", |
| "//services/service_manager/public/mojom", |
| "//url", |
| ] |
| } |
| |
| if (!is_ios) { |
| # service binaries are not supported on iOS. |
| service_executable("filesystem") { |
| sources = [ |
| "file_system_app.cc", |
| "file_system_app.h", |
| "main.cc", |
| ] |
| |
| deps = [ |
| ":lib", |
| "//base", |
| "//components/services/filesystem/public/interfaces", |
| "//mojo/public/cpp/bindings", |
| "//mojo/public/cpp/system", |
| "//services/service_manager/public/cpp", |
| ] |
| } |
| |
| test("filesystem_service_unittests") { |
| sources = [ |
| "directory_impl_unittest.cc", |
| "file_impl_unittest.cc", |
| "files_test_base.cc", |
| "files_test_base.h", |
| ] |
| |
| deps = [ |
| "//base", |
| "//base/test:test_support", |
| "//components/services/filesystem/public/cpp:manifest", |
| "//components/services/filesystem/public/interfaces", |
| "//mojo/core/test:run_all_unittests", |
| "//mojo/public/cpp/bindings", |
| "//mojo/public/cpp/system", |
| "//services/service_manager/public/cpp", |
| "//services/service_manager/public/cpp/test:test_support", |
| "//testing/gtest", |
| ] |
| |
| data_deps = [ |
| ":filesystem", |
| ] |
| } |
| } |