File: BUILD.gn

package info (click to toggle)
chromium 138.0.7204.183-1~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 6,080,960 kB
  • sloc: cpp: 34,937,079; ansic: 7,176,967; javascript: 4,110,704; python: 1,419,954; 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,811; 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 (104 lines) | stat: -rw-r--r-- 3,131 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
# Copyright 2015 The Chromium Authors
# 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")

static_library("sync_bookmarks") {
  sources = [
    "bookmark_data_type_controller.cc",
    "bookmark_data_type_controller.h",
    "bookmark_data_type_processor.cc",
    "bookmark_data_type_processor.h",
    "bookmark_local_changes_builder.cc",
    "bookmark_local_changes_builder.h",
    "bookmark_local_data_batch_uploader.cc",
    "bookmark_local_data_batch_uploader.h",
    "bookmark_model_merger.cc",
    "bookmark_model_merger.h",
    "bookmark_model_observer_impl.cc",
    "bookmark_model_observer_impl.h",
    "bookmark_model_view.cc",
    "bookmark_model_view.h",
    "bookmark_remote_updates_handler.cc",
    "bookmark_remote_updates_handler.h",
    "bookmark_specifics_conversions.cc",
    "bookmark_specifics_conversions.h",
    "bookmark_sync_service.cc",
    "bookmark_sync_service.h",
    "local_bookmark_to_account_merger.cc",
    "local_bookmark_to_account_merger.h",
    "parent_guid_preprocessing.cc",
    "parent_guid_preprocessing.h",
    "switches.cc",
    "switches.h",
    "synced_bookmark_tracker.cc",
    "synced_bookmark_tracker.h",
    "synced_bookmark_tracker_entity.cc",
    "synced_bookmark_tracker_entity.h",
  ]

  if (!is_android && !is_ios && !is_chromeos) {
    sources += [
      "bookmark_model_merger_comparison_metrics.cc",
      "bookmark_model_merger_comparison_metrics.h",
    ]
  }

  deps = [
    "//base",
    "//components/bookmarks/browser",
    "//components/favicon/core",
    "//components/keyed_service/core:core",
    "//components/strings:components_strings_grit",
    "//components/sync",
    "//components/undo",
    "//components/version_info",
    "//ui/base",
    "//ui/gfx",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [
    "bookmark_data_type_processor_unittest.cc",
    "bookmark_local_data_batch_uploader_unittest.cc",
    "bookmark_model_merger_unittest.cc",
    "bookmark_model_observer_impl_unittest.cc",
    "bookmark_model_view_unittest.cc",
    "bookmark_remote_updates_handler_unittest.cc",
    "bookmark_specifics_conversions_unittest.cc",
    "local_bookmark_to_account_merger_unittest.cc",
    "parent_guid_preprocessing_unittest.cc",
    "synced_bookmark_tracker_unittest.cc",
    "test_bookmark_model_view.cc",
    "test_bookmark_model_view.h",
  ]

  if (!is_android && !is_ios && !is_chromeos) {
    sources += [ "bookmark_model_merger_comparison_metrics_unittest.cc" ]
  }

  deps = [
    ":sync_bookmarks",
    "//base",
    "//base/test:test_support",
    "//components/bookmarks/browser",
    "//components/bookmarks/browser:test_support",
    "//components/bookmarks/test",
    "//components/favicon/core/test:test_support",
    "//components/prefs:test_support",
    "//components/strings:components_strings_grit",
    "//components/sync:test_support",
    "//components/sync/base:features",
    "//components/undo",
    "//skia",
    "//testing/gmock",
    "//testing/gtest",
    "//ui/base",
    "//ui/gfx",
    "//ui/gfx:test_support",
  ]
}