OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # We have 2 separate browser targets because //components/html_viewer requires | 5 # We have 2 separate browser targets because //components/html_viewer requires |
6 # startup_metric_utils_browser, but has symbols that conflict with mojo symbols | 6 # startup_metric_utils_browser, but has symbols that conflict with mojo symbols |
7 # that startup_metric_utils_browser_message_filter indirectly depends on. | 7 # that startup_metric_utils_browser_host indirectly depends on. |
8 | 8 |
9 { | 9 { |
10 'targets': [ | 10 'targets': [ |
11 { | 11 { |
12 # GN version: //components/startup_metric_utils/browser:lib | 12 # GN version: //components/startup_metric_utils/browser:lib |
13 'target_name': 'startup_metric_utils_browser', | 13 'target_name': 'startup_metric_utils_browser', |
14 'type': 'static_library', | 14 'type': 'static_library', |
15 'dependencies': [ | 15 'dependencies': [ |
16 '../base/base.gyp:base', | 16 '../base/base.gyp:base', |
17 'components.gyp:version_info', | 17 'components.gyp:version_info', |
18 'prefs/prefs.gyp:prefs', | 18 'prefs/prefs.gyp:prefs', |
19 ], | 19 ], |
20 'include_dirs': [ | 20 'include_dirs': [ |
21 '..', | 21 '..', |
22 ], | 22 ], |
23 'sources': [ | 23 'sources': [ |
24 'startup_metric_utils/browser/pref_names.cc', | 24 'startup_metric_utils/browser/pref_names.cc', |
25 'startup_metric_utils/browser/pref_names.h', | 25 'startup_metric_utils/browser/pref_names.h', |
26 'startup_metric_utils/browser/startup_metric_utils.cc', | 26 'startup_metric_utils/browser/startup_metric_utils.cc', |
27 'startup_metric_utils/browser/startup_metric_utils.h', | 27 'startup_metric_utils/browser/startup_metric_utils.h', |
28 ], | 28 ], |
29 }, | 29 }, |
30 { | 30 { |
31 # GN version: //components/startup_metric_utils/browser:message_filter_lib | 31 # GN version: //components/startup_metric_utils/browser:host |
32 'target_name': 'startup_metric_utils_browser_message_filter', | 32 'target_name': 'startup_metric_utils_browser_host', |
33 'type': 'static_library', | 33 'type': 'static_library', |
34 'dependencies': [ | 34 'dependencies': [ |
35 '../base/base.gyp:base', | 35 '../base/base.gyp:base', |
36 '../content/content.gyp:content_browser', | 36 '../content/content.gyp:content_browser', |
37 'startup_metric_utils_browser', | 37 'startup_metric_utils_browser', |
38 'startup_metric_utils_common', | 38 'startup_metric_utils_interfaces' |
39 ], | 39 ], |
40 'include_dirs': [ | 40 'include_dirs': [ |
41 '..', | 41 '..', |
42 ], | 42 ], |
43 'sources': [ | 43 'sources': [ |
44 'startup_metric_utils/browser/startup_metric_message_filter.cc', | 44 'startup_metric_utils/browser/startup_metric_host_impl.cc', |
45 'startup_metric_utils/browser/startup_metric_message_filter.h', | 45 'startup_metric_utils/browser/startup_metric_host_impl.h', |
46 ], | 46 ], |
47 }, | 47 }, |
48 { | 48 { |
49 # GN version: //components/startup_metric_utils/common | 49 # GN version: //components/startup_metric_utils/common:interfaces |
50 'target_name': 'startup_metric_utils_common', | 50 'target_name': 'startup_metric_utils_interfaces', |
51 'type': 'static_library', | 51 'type': 'static_library', |
| 52 'sources': [ |
| 53 'startup_metric_utils/common/startup_metric.mojom', |
| 54 ], |
52 'dependencies': [ | 55 'dependencies': [ |
53 '../base/base.gyp:base', | 56 '<(DEPTH)/mojo/mojo_base.gyp:mojo_common_custom_types_mojom', |
54 '../ipc/ipc.gyp:ipc', | |
55 'components.gyp:variations', | |
56 ], | 57 ], |
57 'include_dirs': [ | 58 'variables': { |
58 '..', | 59 'mojom_typemaps': [ |
59 ], | 60 '<(DEPTH)/mojo/common/common_custom_types.typemap', |
60 'sources': [ | 61 ], |
61 'startup_metric_utils/common/pre_read_field_trial_utils_win.cc', | 62 }, |
62 'startup_metric_utils/common/pre_read_field_trial_utils_win.h', | 63 'includes': [ |
63 'startup_metric_utils/common/startup_metric_message_generator.cc', | 64 '../mojo/mojom_bindings_generator.gypi', |
64 'startup_metric_utils/common/startup_metric_message_generator.h', | |
65 'startup_metric_utils/common/startup_metric_messages.h', | |
66 ], | 65 ], |
67 }, | 66 }, |
68 ], | 67 ], |
| 68 'conditions': [ |
| 69 ['OS == "win"', { |
| 70 'targets': [ |
| 71 { |
| 72 # GN version: //components/startup_metric_utils/common |
| 73 'target_name': 'startup_metric_utils_win', |
| 74 'type': 'static_library', |
| 75 'dependencies': [ |
| 76 '../base/base.gyp:base', |
| 77 'components.gyp:variations', |
| 78 ], |
| 79 'include_dirs': [ |
| 80 '..', |
| 81 ], |
| 82 'sources': [ |
| 83 'startup_metric_utils/common/pre_read_field_trial_utils_win.cc', |
| 84 'startup_metric_utils/common/pre_read_field_trial_utils_win.h', |
| 85 ], |
| 86 }, |
| 87 ], |
| 88 }], |
| 89 ], |
69 } | 90 } |
OLD | NEW |