summaryrefslogtreecommitdiffstats
path: root/components/startup_metric_utils.gypi
blob: 83ccd89c5f05cd56a7addc7b2680eaa1b8c451e8 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Copyright 2013 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.

# We have 2 separate browser targets because //components/html_viewer requires
# startup_metric_utils_browser, but has symbols that conflict with mojo symbols
# that startup_metric_utils_browser_message_filter indirectly depends on.

{
  'targets': [
    {
      # GN version: //components/startup_metric_utils/browser:lib
      'target_name': 'startup_metric_utils_browser',
      'type': 'static_library',
      'dependencies': [
        '../base/base.gyp:base',
        'components.gyp:version_info',
        'prefs/prefs.gyp:prefs',
      ],
      'include_dirs': [
        '..',
      ],
      'sources': [
        'startup_metric_utils/browser/pref_names.cc',
        'startup_metric_utils/browser/pref_names.h',
        'startup_metric_utils/browser/startup_metric_utils.cc',
        'startup_metric_utils/browser/startup_metric_utils.h',
      ],
    },
    {
      # GN version: //components/startup_metric_utils/browser:message_filter_lib
      'target_name': 'startup_metric_utils_browser_message_filter',
      'type': 'static_library',
      'dependencies': [
        '../base/base.gyp:base',
        '../content/content.gyp:content_browser',
        'startup_metric_utils_browser',
        'startup_metric_utils_common',
      ],
      'include_dirs': [
        '..',
      ],
      'sources': [
        'startup_metric_utils/browser/startup_metric_message_filter.cc',
        'startup_metric_utils/browser/startup_metric_message_filter.h',
      ],
    },
    {
      # GN version: //components/startup_metric_utils/common
      'target_name': 'startup_metric_utils_common',
      'type': 'static_library',
      'dependencies': [
        '../base/base.gyp:base',
        '../ipc/ipc.gyp:ipc',
        'components.gyp:variations',
      ],
      'include_dirs': [
        '..',
      ],
      'sources': [
        'startup_metric_utils/common/pre_read_field_trial_utils_win.cc',
        'startup_metric_utils/common/pre_read_field_trial_utils_win.h',
        'startup_metric_utils/common/startup_metric_message_generator.cc',
        'startup_metric_utils/common/startup_metric_message_generator.h',
        'startup_metric_utils/common/startup_metric_messages.h',
      ],
    },
  ],
}