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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 | 8 |
9 'linux_link_kerberos%': 0, | 9 'linux_link_kerberos%': 0, |
10 'use_tracing_cache_backend%': 0, | 10 'use_tracing_cache_backend%': 0, |
(...skipping 3179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3190 'includes': [ | 3190 'includes': [ |
3191 '../build/isolate.gypi', | 3191 '../build/isolate.gypi', |
3192 'net_unittests.isolate', | 3192 'net_unittests.isolate', |
3193 ], | 3193 ], |
3194 'sources': [ | 3194 'sources': [ |
3195 'net_unittests.isolate', | 3195 'net_unittests.isolate', |
3196 ], | 3196 ], |
3197 }, | 3197 }, |
3198 ], | 3198 ], |
3199 }], | 3199 }], |
| 3200 ['OS=="android"', { |
| 3201 'targets': [ |
| 3202 { |
| 3203 'target_name': 'cronet_jni_headers', |
| 3204 'type': 'none', |
| 3205 'sources': [ |
| 3206 'cronet/android/java/src/org/chromium/net/UrlRequest.java', |
| 3207 'cronet/android/java/src/org/chromium/net/UrlRequestContext.java', |
| 3208 ], |
| 3209 'variables': { |
| 3210 'jni_gen_package': 'cronet', |
| 3211 'jni_generator_ptr_type': 'long', |
| 3212 }, |
| 3213 'includes': [ '../build/jni_generator.gypi' ], |
| 3214 }, |
| 3215 { |
| 3216 'target_name': 'libcronet', |
| 3217 'type': 'shared_library', |
| 3218 'dependencies': [ |
| 3219 '../base/base.gyp:base', |
| 3220 '../base/base.gyp:base_i18n', |
| 3221 '../third_party/icu/icu.gyp:icui18n', |
| 3222 '../third_party/icu/icu.gyp:icuuc', |
| 3223 '../url/url.gyp:url_lib', |
| 3224 'cronet_jni_headers', |
| 3225 'net', |
| 3226 ], |
| 3227 'sources': [ |
| 3228 'cronet/android/org_chromium_net_UrlRequest.cc', |
| 3229 'cronet/android/org_chromium_net_UrlRequest.h', |
| 3230 'cronet/android/org_chromium_net_UrlRequestContext.cc', |
| 3231 'cronet/android/org_chromium_net_UrlRequestContext.h', |
| 3232 'cronet/android/url_request_context_peer.cc', |
| 3233 'cronet/android/url_request_context_peer.h', |
| 3234 'cronet/android/url_request_peer.cc', |
| 3235 'cronet/android/url_request_peer.h', |
| 3236 ], |
| 3237 'cflags': [ |
| 3238 # TODO(mef): Figure out a good way to get version from chrome_versio
n_info_posix.h. |
| 3239 '-DCHROMIUM_VERSION=\\"TBD\\"', |
| 3240 '-DLOGGING=1', |
| 3241 '-fdata-sections', |
| 3242 '-ffunction-sections', |
| 3243 '-fno-rtti', |
| 3244 '-fvisibility=hidden', |
| 3245 '-fvisibility-inlines-hidden', |
| 3246 '-Wno-sign-promo', |
| 3247 '-Wno-missing-field-initializers', |
| 3248 ], |
| 3249 'ldflags': [ |
| 3250 '-llog', |
| 3251 '-landroid', |
| 3252 '-Wl,--gc-sections', |
| 3253 '-Wl,--exclude-libs,ALL' |
| 3254 ] |
| 3255 }, |
| 3256 { |
| 3257 'target_name': 'cronet', |
| 3258 'type': 'none', |
| 3259 'dependencies': [ |
| 3260 '../base/base.gyp:base', |
| 3261 'libcronet', |
| 3262 ], |
| 3263 'variables': { |
| 3264 'java_in_dir': 'cronet/android/java', |
| 3265 }, |
| 3266 'includes': [ '../build/java.gypi' ], |
| 3267 }, |
| 3268 { |
| 3269 'target_name': 'cronet_package', |
| 3270 'type': 'none', |
| 3271 'dependencies': [ |
| 3272 'libcronet', |
| 3273 'cronet', |
| 3274 ], |
| 3275 'variables': { |
| 3276 'native_lib': 'libcronet.>(android_product_extension)', |
| 3277 'java_lib': 'cronet.jar', |
| 3278 'package_dir': '<(PRODUCT_DIR)/cronet', |
| 3279 }, |
| 3280 'actions': [ |
| 3281 { |
| 3282 'action_name': 'strip libcronet', |
| 3283 'inputs': ['<(SHARED_LIB_DIR)/<(native_lib)'], |
| 3284 'outputs': ['<(package_dir)/libs/<(android_app_abi)/<(native_lib)'
], |
| 3285 'action': [ |
| 3286 '<(android_strip)', |
| 3287 '--strip-unneeded', |
| 3288 '<@(_inputs)', |
| 3289 '-o', |
| 3290 '<@(_outputs)', |
| 3291 ], |
| 3292 }, |
| 3293 ], |
| 3294 'copies': [ |
| 3295 { |
| 3296 'destination': '<(package_dir)', |
| 3297 'files': [ |
| 3298 '<(PRODUCT_DIR)/lib.java/<(java_lib)', |
| 3299 ], |
| 3300 }, |
| 3301 ], |
| 3302 }, |
| 3303 { |
| 3304 'target_name': 'cronet_sample_apk', |
| 3305 'type': 'none', |
| 3306 'dependencies': [ |
| 3307 'cronet', |
| 3308 ], |
| 3309 'variables': { |
| 3310 'apk_name': 'CronetSample', |
| 3311 'java_in_dir': 'cronet/android/sample', |
| 3312 'resource_dir': 'cronet/android/sample/res', |
| 3313 'native_lib_target': 'libcronet', |
| 3314 }, |
| 3315 'includes': [ '../build/java_apk.gypi' ], |
| 3316 }, |
| 3317 { |
| 3318 # cronet_sample_apk creates a .jar as a side effect. Any java targets |
| 3319 # that need that .jar in their classpath should depend on this target, |
| 3320 # cronet_sample_apk_java. Dependents of cronet_sample_apk receive its |
| 3321 # jar path in the variable 'apk_output_jar_path'. This target should |
| 3322 # only be used by targets which instrument cronet_sample_apk. |
| 3323 'target_name': 'cronet_sample_apk_java', |
| 3324 'type': 'none', |
| 3325 'dependencies': [ |
| 3326 'cronet_sample_apk', |
| 3327 ], |
| 3328 'includes': [ '../build/apk_fake_jar.gypi' ], |
| 3329 }, |
| 3330 { |
| 3331 'target_name': 'cronet_sample_test_apk', |
| 3332 'type': 'none', |
| 3333 'dependencies': [ |
| 3334 'cronet_sample_apk_java', |
| 3335 '../base/base.gyp:base_java', |
| 3336 '../base/base.gyp:base_javatests', |
| 3337 '../base/base.gyp:base_java_test_support', |
| 3338 # TODO(mef): Figure out why some tests are failing. |
| 3339 #'../net/net.gyp:net_javatests', |
| 3340 #'../net/net.gyp:net_java_test_support', |
| 3341 ], |
| 3342 'variables': { |
| 3343 'apk_name': 'CronetSampleTest', |
| 3344 'java_in_dir': 'cronet/android/sample/javatests', |
| 3345 'resource_dir': 'cronet/android/sample/res', |
| 3346 'is_test_apk': 1, |
| 3347 }, |
| 3348 'includes': [ '../build/java_apk.gypi' ], |
| 3349 }, |
| 3350 ], |
| 3351 }], # OS=="android" |
3200 ], | 3352 ], |
3201 } | 3353 } |
OLD | NEW |