Make castv2 performance test work.
[chromium-blink-merge.git] / components / cronet / cronet_static.gypi
blobe4d688a89ca093569a1ec393b7cd911030040295
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   # This target is included into both 'cronet_static' and 'cronet_static_small'.
7   'type': 'static_library',
8   'dependencies': [
9     '../base/base.gyp:base',
10     '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
11     'cronet_jni_headers',
12     'cronet_url_request_context_config_list',
13     'cronet_url_request_java',
14     'cronet_version',
15     'metrics',
16   ],
17   'sources': [
18     'android/chromium_url_request.cc',
19     'android/chromium_url_request.h',
20     'android/chromium_url_request_context.cc',
21     'android/chromium_url_request_context.h',
22     'android/chromium_url_request_error_list.h',
23     'android/chromium_url_request_priority_list.h',
24     'android/cronet_histogram_manager.cc',
25     'android/cronet_histogram_manager.h',
26     'android/cronet_library_loader.cc',
27     'android/cronet_library_loader.h',
28     'android/cronet_upload_data_stream_adapter.cc',
29     'android/cronet_upload_data_stream_adapter.h',
30     'android/cronet_upload_data_stream_delegate.cc',
31     'android/cronet_upload_data_stream_delegate.h',
32     'android/cronet_url_request_adapter.cc',
33     'android/cronet_url_request_adapter.h',
34     'android/cronet_url_request_context_adapter.cc',
35     'android/cronet_url_request_context_adapter.h',
36     'android/url_request_adapter.cc',
37     'android/url_request_adapter.h',
38     'android/url_request_context_adapter.cc',
39     'android/url_request_context_adapter.h',
40     'android/wrapped_channel_upload_element_reader.cc',
41     'android/wrapped_channel_upload_element_reader.h',
42     'url_request_context_config.cc',
43     'url_request_context_config.h',
44     'url_request_context_config_list.h',
45   ],
46   'cflags': [
47     '-DLOGGING=1',
48     '-fdata-sections',
49     '-ffunction-sections',
50     '-fno-rtti',
51     '-fvisibility=hidden',
52     '-fvisibility-inlines-hidden',
53     '-Wno-sign-promo',
54     '-Wno-missing-field-initializers',
55   ],
56   'ldflags': [
57     '-llog',
58     '-landroid',
59     '-Wl,--gc-sections',
60     '-Wl,--exclude-libs,ALL'
61   ],