| # Copyright 2017 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. |
| |
| source_set("lib") { |
| sources = [ |
| "file_patcher_impl.cc", |
| "file_patcher_impl.h", |
| ] |
| |
| deps = [ |
| "//base", |
| "//components/services/filesystem/public/mojom", |
| "//courgette:courgette_lib", |
| "//mojo/public/cpp/bindings", |
| ] |
| |
| public_deps = [ "//components/services/patch/public/mojom" ] |
| } |
| |
| source_set("in_process") { |
| # NOTE: In-process file patching is unsafe! Unfortunately on iOS we have no |
| # other choice. On all other platforms, this target is restricted to tests. |
| testonly = !is_ios |
| |
| sources = [ |
| "in_process_file_patcher.cc", |
| "in_process_file_patcher.h", |
| ] |
| |
| deps = [ ":lib" ] |
| |
| public_deps = [ |
| "//components/services/patch/public/mojom", |
| "//mojo/public/cpp/bindings", |
| ] |
| } |