[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / chrome / chrome_debugger.gypi
blob76942a3a0a71a82fb5cf4edae08fd86c62ab54a5
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6   'targets': [
7     {
8       'target_name': 'debugger',
9       'type': 'static_library',
10       'variables': { 'enable_wexit_time_destructors': 1, },
11       'dependencies': [
12         '../base/base.gyp:base',
13         '../content/content.gyp:content_browser',
14         '../net/net.gyp:http_server',
15         '../net/net.gyp:net',
16         '../skia/skia.gyp:skia',
17         '../third_party/icu/icu.gyp:icui18n',
18         '../third_party/icu/icu.gyp:icuuc',
19         '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
20         '../third_party/libusb/libusb.gyp:libusb',
21         'chrome_resources.gyp:chrome_extra_resources',
22         'chrome_resources.gyp:chrome_resources',
23         'chrome_resources.gyp:chrome_strings',
24         'chrome_resources.gyp:theme_resources',
25         'common/extensions/api/api.gyp:chrome_api',
26       ],
27       'include_dirs': [
28         '..',
29       ],
30       'sources': [
31         'browser/devtools/device/adb/adb_client_socket.cc',
32         'browser/devtools/device/adb/adb_client_socket.h',
33         'browser/devtools/device/adb/adb_device_info_query.cc',
34         'browser/devtools/device/adb/adb_device_info_query.h',
35         'browser/devtools/device/adb/adb_device_provider.cc',
36         'browser/devtools/device/adb/adb_device_provider.h',
37         'browser/devtools/device/android_device_manager.cc',
38         'browser/devtools/device/android_device_manager.h',
39         'browser/devtools/device/android_web_socket.cc',
40         'browser/devtools/device/devtools_android_bridge.cc',
41         'browser/devtools/device/devtools_android_bridge.h',
42         'browser/devtools/device/port_forwarding_controller.cc',
43         'browser/devtools/device/port_forwarding_controller.h',
44         'browser/devtools/device/self_device_provider.cc',
45         'browser/devtools/device/self_device_provider.h',
46         'browser/devtools/device/usb/android_rsa.cc',
47         'browser/devtools/device/usb/android_rsa.h',
48         'browser/devtools/device/usb/android_usb_device.cc',
49         'browser/devtools/device/usb/android_usb_device.h',
50         'browser/devtools/device/usb/android_usb_socket.cc',
51         'browser/devtools/device/usb/android_usb_socket.h',
52         'browser/devtools/device/usb/usb_device_provider.cc',
53         'browser/devtools/device/usb/usb_device_provider.h',
54         'browser/devtools/browser_list_tabcontents_provider.cc',
55         'browser/devtools/browser_list_tabcontents_provider.h',
56         'browser/devtools/chrome_devtools_manager_delegate.cc',
57         'browser/devtools/chrome_devtools_manager_delegate.h',
58         'browser/devtools/devtools_contents_resizing_strategy.cc',
59         'browser/devtools/devtools_contents_resizing_strategy.h',
60         'browser/devtools/devtools_embedder_message_dispatcher.cc',
61         'browser/devtools/devtools_embedder_message_dispatcher.h',
62         'browser/devtools/devtools_file_helper.cc',
63         'browser/devtools/devtools_file_helper.h',
64         'browser/devtools/devtools_file_system_indexer.cc',
65         'browser/devtools/devtools_file_system_indexer.h',
66         'browser/devtools/devtools_protocol.cc',
67         'browser/devtools/devtools_protocol.h',
68         'browser/devtools/devtools_target_impl.cc',
69         'browser/devtools/devtools_target_impl.h',
70         'browser/devtools/devtools_targets_ui.cc',
71         'browser/devtools/devtools_targets_ui.h',
72         'browser/devtools/devtools_toggle_action.cc',
73         'browser/devtools/devtools_toggle_action.h',
74         'browser/devtools/devtools_ui_bindings.cc',
75         'browser/devtools/devtools_ui_bindings.h',
76         'browser/devtools/devtools_window.cc',
77         'browser/devtools/devtools_window.h',
78         'browser/devtools/remote_debugging_server.cc',
79         'browser/devtools/remote_debugging_server.h',
80       ],
81       'conditions': [
82         ['OS=="android"', {
83           'dependencies!': [
84             '../third_party/libusb/libusb.gyp:libusb',
85           ],
86           'sources!': [
87             'browser/devtools/device/usb/android_rsa.cc',
88             'browser/devtools/browser_list_tabcontents_provider.cc',
89             'browser/devtools/devtools_file_system_indexer.cc',
90             'browser/devtools/devtools_target_impl.cc',
91             'browser/devtools/devtools_window.cc',
92             'browser/devtools/devtools_window_base.cc',
93             'browser/devtools/remote_debugging_server.cc',
94           ],
95         }],
96         ['debug_devtools==1', {
97           'defines': [
98             'DEBUG_DEVTOOLS=1',
99            ],
100         }],
101       ],
102       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
103       'msvs_disabled_warnings': [ 4267, ],
104     },
105   ],