summaryrefslogtreecommitdiff
path: root/chromium/chrome/services/file_util/BUILD.gn
blob: eefe37870f8454e8abfebdd072cb8429a05c45f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 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.

import("//build/config/features.gni")
import("//services/service_manager/public/service_manifest.gni")

source_set("lib") {
  sources = [
    "file_util_service.cc",
    "file_util_service.h",
  ]

  deps = [
    "//base",
    "//mojo/public/cpp/bindings",
  ]

  public_deps = [
    "//chrome/services/file_util/public/mojom",
    "//mojo/public/mojom/base",
    "//services/service_manager/public/cpp",
  ]

  if (is_chromeos) {
    sources += [
      "zip_file_creator.cc",
      "zip_file_creator.h",
    ]

    deps += [ "//components/services/filesystem/public/interfaces" ]
  }

  if (safe_browsing_mode == 1) {
    sources += [
      "safe_archive_analyzer.cc",
      "safe_archive_analyzer.h",
    ]
  }
}

service_manifest("manifest") {
  name = "file_util"
  source = "manifest.json"
}