File: BUILD.gn

package info (click to toggle)
chromium 138.0.7204.183-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,071,908 kB
  • sloc: cpp: 34,937,088; ansic: 7,176,967; javascript: 4,110,704; python: 1,419,953; asm: 946,768; xml: 739,971; pascal: 187,324; sh: 89,623; perl: 88,663; objc: 79,944; sql: 50,304; cs: 41,786; fortran: 24,137; makefile: 21,806; php: 13,980; tcl: 13,166; yacc: 8,925; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (120 lines) | stat: -rw-r--r-- 3,561 bytes parent folder | download | duplicates (5)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# Copyright 2016 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//mojo/public/tools/bindings/mojom.gni")

assert(!is_fuchsia, "Fuchsia shouldn't use anything in //chrome")

mojom("interfaces") {
  sources = [ "profile_import.mojom" ]

  public_deps = [
    "//mojo/public/mojom/base",
    "//sandbox/policy/mojom",
    "//url/mojom:url_mojom_gurl",
  ]

  cpp_typemaps = [
    {
      types = [
        {
          mojom = "chrome.mojom.FaviconUsageDataList"
          cpp = "::favicon_base::FaviconUsageDataList"
        },
        {
          mojom = "chrome.mojom.ImportedBookmarkEntry"
          cpp = "::user_data_importer::ImportedBookmarkEntry"
        },
        {
          mojom = "chrome.mojom.ImporterAutofillFormDataEntry"
          cpp = "::ImporterAutofillFormDataEntry"
        },
        {
          mojom = "chrome.mojom.ImporterIE7PasswordInfo"
          cpp = "::user_data_importer::ImporterIE7PasswordInfo"
        },
        {
          mojom = "chrome.mojom.ImporterURLRow"
          cpp = "::user_data_importer::ImporterURLRow"
        },
        {
          mojom = "chrome.mojom.SearchEngineInfo"
          cpp = "::user_data_importer::SearchEngineInfo"
        },
        {
          mojom = "chrome.mojom.SourceProfile"
          cpp = "::user_data_importer::SourceProfile"
        },
        {
          mojom = "chrome.mojom.ImportItem"
          cpp = "::user_data_importer::ImportItem"
        },
        {
          mojom = "chrome.mojom.ImportedPasswordForm"
          cpp = "::user_data_importer::ImportedPasswordForm"
        },
      ]
      traits_headers = [
        "//chrome/common/importer/importer_autofill_form_data_entry.h",
        "//components/favicon_base/favicon_usage_data.h",
        "//components/user_data_importer/common/imported_bookmark_entry.h",
        "//components/user_data_importer/common/importer_data_types.h",
        "//components/user_data_importer/common/importer_url_row.h",
      ]
      traits_private_headers = [
        "profile_import_process_param_traits.h",
        "profile_import_process_param_traits_macros.h",
      ]
      traits_sources = [ "profile_import_process_param_traits.cc" ]
      traits_public_deps = [
        "//chrome/common",
        "//components/autofill/core/common",
        "//components/favicon_base",
        "//components/user_data_importer/common",
        "//ipc",
      ]
    },
  ]
}

source_set("importer") {
  sources = [
    "firefox_importer_utils.cc",
    "firefox_importer_utils.h",
    "importer_autofill_form_data_entry.cc",
    "importer_autofill_form_data_entry.h",
    "importer_bridge.cc",
    "importer_bridge.h",
    "pstore_declarations.h",
  ]
  if (is_chromeos || is_linux) {
    sources += [ "firefox_importer_utils_linux.cc" ]
  } else if (is_mac) {
    sources += [
      "firefox_importer_utils_mac.mm",
      "safari_importer_utils.h",
      "safari_importer_utils.mm",
    ]
  } else if (is_win) {
    sources += [
      "edge_importer_utils_win.cc",
      "edge_importer_utils_win.h",
      "firefox_importer_utils_win.cc",
      "ie_importer_utils_win.cc",
      "ie_importer_utils_win.h",
      "importer_test_registry_overrider_win.cc",
      "importer_test_registry_overrider_win.h",
    ]
  }
  deps = [
    "//base",
    "//chrome/app:generated_resources",
    "//chrome/common:ini_parser",
    "//components/favicon_base",
    "//components/user_data_importer/common",
    "//content/public/common",
    "//ui/base",
    "//url",
  ]
}