Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / cronet / cronet_static.gypi
blob08601cef579a7f2cc938f9872b321f215b7069ae
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   'dependencies': [
8     '../base/base.gyp:base',
9     '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
10     'cronet_jni_headers',
11     'cronet_url_request_context_config_list',
12     'cronet_url_request_java',
13     'cronet_version',
14     'cronet_version_header',
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_in_memory_pref_store.cc',
27     'android/cronet_in_memory_pref_store.h',
28     'android/cronet_library_loader.cc',
29     'android/cronet_library_loader.h',
30     'android/cronet_upload_data_stream.cc',
31     'android/cronet_upload_data_stream.h',
32     'android/cronet_upload_data_stream_adapter.cc',
33     'android/cronet_upload_data_stream_adapter.h',
34     'android/cronet_url_request_adapter.cc',
35     'android/cronet_url_request_adapter.h',
36     'android/cronet_url_request_context_adapter.cc',
37     'android/cronet_url_request_context_adapter.h',
38     'android/url_request_adapter.cc',
39     'android/url_request_adapter.h',
40     'android/url_request_context_adapter.cc',
41     'android/url_request_context_adapter.h',
42     'android/wrapped_channel_upload_element_reader.cc',
43     'android/wrapped_channel_upload_element_reader.h',
44     'histogram_manager.cc',
45     'histogram_manager.h',
46     'url_request_context_config.cc',
47     'url_request_context_config.h',
48     'url_request_context_config_list.h',
49   ],
50   'cflags': [
51     '-DLOGGING=1',
52     '-fdata-sections',
53     '-ffunction-sections',
54     '-fno-rtti',
55     '-fvisibility=hidden',
56     '-fvisibility-inlines-hidden',
57     '-Wno-sign-promo',
58     '-Wno-missing-field-initializers',
59   ],
60   'ldflags': [
61     '-llog',
62     '-landroid',
63     '-Wl,--gc-sections',
64     '-Wl,--exclude-libs,ALL'
65   ],
66   'conditions': [
67     # If Data Reduction Proxy support is enabled, add the following
68     # defines and sources. Dependencies are target-specific and are
69     # not included here.
70     ['enable_data_reduction_proxy_support==1',
71       {
72         'defines' : [
73           'DATA_REDUCTION_PROXY_SUPPORT'
74         ],
75         'sources': [
76           'android/cronet_data_reduction_proxy.cc',
77           'android/cronet_data_reduction_proxy.h',
78         ],
79       }
80     ],
81   ],