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