OLD | NEW |
---|---|
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 { | 5 { |
6 'conditions': [ | 6 'conditions': [ |
7 ['OS=="android"', { | 7 ['OS=="android"', { |
8 # TODO(mef): Figure out what needs to be done for gn script. | 8 # TODO(mef): Figure out what needs to be done for gn script. |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
101 { | 101 { |
102 # cronet_static_small target has reduced binary size through using | 102 # cronet_static_small target has reduced binary size through using |
103 # ICU alternatives which requires file and ftp support be disabled. | 103 # ICU alternatives which requires file and ftp support be disabled. |
104 'target_name': 'cronet_static_small', | 104 'target_name': 'cronet_static_small', |
105 'defines': [ | 105 'defines': [ |
106 'USE_ICU_ALTERNATIVES_ON_ANDROID=1', | 106 'USE_ICU_ALTERNATIVES_ON_ANDROID=1', |
107 'DISABLE_FILE_SUPPORT=1', | 107 'DISABLE_FILE_SUPPORT=1', |
108 'DISABLE_FTP_SUPPORT=1', | 108 'DISABLE_FTP_SUPPORT=1', |
109 ], | 109 ], |
110 'dependencies': [ | 110 'dependencies': [ |
111 '../components/components.gyp:data_reduction_proxy_core_browser_smal l', | |
112 '../net/net.gyp:net_small', | 111 '../net/net.gyp:net_small', |
113 ], | 112 ], |
114 'includes': [ 'cronet/cronet_static.gypi' ], | 113 'includes': [ 'cronet/cronet_static.gypi' ], |
114 'variables': { | |
115 'enable_data_reduction_proxy_support%' : 0, | |
116 }, | |
117 'conditions': [ | |
118 # If Data Reduction Proxy support is enabled, add the following | |
119 # defines, sources, and dependencies. | |
120 ['enable_data_reduction_proxy_support==1', | |
121 { | |
122 'defines' : [ | |
123 'DATA_REDUCTION_PROXY_SUPPORT' | |
mef
2015/05/13 18:21:24
would it make sense to have =1?
bengr
2015/05/15 00:54:55
I considered that, but didn't see an advantage.
| |
124 ], | |
125 'sources': [ | |
126 'cronet/android/cronet_data_reduction_proxy.cc', | |
127 'cronet/android/cronet_data_reduction_proxy.h', | |
128 ], | |
129 'dependencies': [ | |
130 '../components/components.gyp:data_reduction_proxy_core_browse r_small', | |
131 ] | |
132 } | |
133 ], | |
134 ], | |
115 }, | 135 }, |
116 { | 136 { |
117 # cronet_static target depends on ICU and includes file and ftp suppor t. | 137 # cronet_static target depends on ICU and includes file and ftp suppor t. |
118 'target_name': 'cronet_static', | 138 'target_name': 'cronet_static', |
119 'dependencies': [ | 139 'dependencies': [ |
120 '../base/base.gyp:base_i18n', | 140 '../base/base.gyp:base_i18n', |
121 '../components/components.gyp:data_reduction_proxy_core_browser', | |
122 '../net/net.gyp:net', | 141 '../net/net.gyp:net', |
123 ], | 142 ], |
124 'includes': [ 'cronet/cronet_static.gypi' ], | 143 'includes': [ 'cronet/cronet_static.gypi' ], |
144 'variables': { | |
mef
2015/05/13 18:21:24
should this whole section (except dependencies) go
bengr
2015/05/15 00:54:55
Done.
| |
145 'enable_data_reduction_proxy_support%' : 0, | |
146 }, | |
147 'conditions': [ | |
148 # If Data Reduction Proxy support is enabled, add the following | |
149 # defines, sources, and dependencies. | |
150 ['enable_data_reduction_proxy_support==1', | |
151 { | |
152 'defines' : [ | |
153 'DATA_REDUCTION_PROXY_SUPPORT' | |
154 ], | |
155 'sources': [ | |
156 'cronet/android/cronet_data_reduction_proxy.cc', | |
157 'cronet/android/cronet_data_reduction_proxy.h', | |
158 ], | |
159 'dependencies': [ | |
160 '../components/components.gyp:data_reduction_proxy_core_browse r', | |
161 ] | |
162 } | |
163 ], | |
164 ], | |
125 }, | 165 }, |
126 { | 166 { |
127 'target_name': 'libcronet', | 167 'target_name': 'libcronet', |
128 'type': 'shared_library', | 168 'type': 'shared_library', |
129 'sources': [ | 169 'sources': [ |
130 'cronet/android/cronet_jni.cc', | 170 'cronet/android/cronet_jni.cc', |
131 ], | 171 ], |
132 'dependencies': [ | 172 'dependencies': [ |
133 'cronet_static_small', | 173 'cronet_static_small', |
134 '../base/base.gyp:base', | 174 '../base/base.gyp:base', |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
486 'files': [ | 526 'files': [ |
487 '<(SHARED_LIB_DIR)/<(native_lib)', | 527 '<(SHARED_LIB_DIR)/<(native_lib)', |
488 ], | 528 ], |
489 }, | 529 }, |
490 ], | 530 ], |
491 }, | 531 }, |
492 ], | 532 ], |
493 }], # OS=="android" | 533 }], # OS=="android" |
494 ], | 534 ], |
495 } | 535 } |
OLD | NEW |