File: BUILD.gn

package info (click to toggle)
chromium 139.0.7258.127-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,122,156 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (134 lines) | stat: -rw-r--r-- 4,129 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# Copyright 2024 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//components/compose/features.gni")

static_library("home_modules") {
  sources = [
    "card_selection_info.cc",
    "card_selection_info.h",
    "card_selection_signals.cc",
    "card_selection_signals.h",
    "ephemeral_home_module_backend.cc",
    "ephemeral_home_module_backend.h",
    "ephemeral_module_utils.cc",
    "ephemeral_module_utils.h",
    "home_modules_card_registry.cc",
    "home_modules_card_registry.h",
    "price_tracking_notification_promo.cc",
    "price_tracking_notification_promo.h",
    "rank_fetcher_helper.cc",
    "rank_fetcher_helper.h",
    "send_tab_notification_promo.cc",
    "send_tab_notification_promo.h",
  ]

  if (is_ios) {
    sources += [
      "address_bar_position_ephemeral_module.cc",
      "address_bar_position_ephemeral_module.h",
      "autofill_passwords_ephemeral_module.cc",
      "autofill_passwords_ephemeral_module.h",
      "enhanced_safe_browsing_ephemeral_module.cc",
      "enhanced_safe_browsing_ephemeral_module.h",
      "lens_ephemeral_module.cc",
      "lens_ephemeral_module.h",
      "save_passwords_ephemeral_module.cc",
      "save_passwords_ephemeral_module.h",
    ]
  }

  if (is_android) {
    sources += [
      "auxiliary_search_promo.cc",
      "auxiliary_search_promo.h",
      "default_browser_promo.cc",
      "default_browser_promo.h",
      "history_sync_promo.cc",
      "history_sync_promo.h",
      "quick_delete_promo.cc",
      "quick_delete_promo.h",
      "tab_group_promo.cc",
      "tab_group_promo.h",
      "tab_group_sync_promo.cc",
      "tab_group_sync_promo.h",
    ]
  }

  deps = [
    ":constants",
    "//base",
    "//components/commerce/core:feature_list",
    "//components/prefs",
    "//components/segmentation_platform/embedder/home_modules/tips_manager:constants",
    "//components/segmentation_platform/embedder/home_modules/tips_manager:signal_constants",
    "//components/segmentation_platform/internal",
    "//components/send_tab_to_self",
    "//components/signin/public/base:signin_switches",
  ]
}

source_set("constants") {
  sources = [
    "constants.cc",
    "constants.h",
  ]
  public_deps = [ "//base" ]
  deps = [ "//components/segmentation_platform/embedder/home_modules/tips_manager:constants" ]
}

source_set("unit_tests") {
  testonly = true

  sources = [
    "card_selection_signals_unittest.cc",
    "ephemeral_home_module_backend_unittest.cc",
    "home_modules_card_registry_unittest.cc",
    "price_tracking_notification_promo_unittest.cc",
    "rank_fetcher_helper_unittest.cc",
    "send_tab_notification_promo_unittest.cc",
    "test_utils.cc",
    "test_utils.h",
  ]

  if (is_ios) {
    sources += [
      "address_bar_position_ephemeral_module_unittest.cc",
      "autofill_passwords_ephemeral_module_unittest.cc",
      "enhanced_safe_browsing_ephemeral_module_unittest.cc",
      "lens_ephemeral_module_unittest.cc",
      "save_passwords_ephemeral_module_unittest.cc",
    ]
  }

  if (is_android) {
    sources += [
      "auxiliary_search_promo_unittest.cc",
      "default_browser_promo_unittest.cc",
      "history_sync_promo_unittest.cc",
      "quick_delete_promo_unittest.cc",
      "tab_group_promo_unittest.cc",
      "tab_group_sync_promo_unittest.cc",
    ]
  }

  deps = [
    ":constants",
    ":home_modules",
    "//base",
    "//base/test:test_support",
    "//components/commerce/core:feature_list",
    "//components/prefs:test_support",
    "//components/segmentation_platform/embedder/default_model:default_model_test_base",
    "//components/segmentation_platform/embedder/home_modules/tips_manager:constants",
    "//components/segmentation_platform/embedder/home_modules/tips_manager:signal_constants",
    "//components/segmentation_platform/internal",
    "//components/segmentation_platform/public",
    "//components/segmentation_platform/public:test_support",
    "//components/send_tab_to_self",
    "//components/signin/public/base:signin_switches",
    "//testing/gmock",
    "//testing/gtest",
  ]
}