Chromium Code Reviews| 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 'targets': [ | 8 'targets': [ |
| 9 { | 9 { |
| 10 'target_name': 'cronet_jni_headers', | 10 'target_name': 'cronet_jni_headers', |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 374 ], | 374 ], |
| 375 ], | 375 ], |
| 376 'includes': [ 'cronet/cronet_static.gypi' ], | 376 'includes': [ 'cronet/cronet_static.gypi' ], |
| 377 }, | 377 }, |
| 378 { | 378 { |
| 379 'target_name': 'cronet_test_apk', | 379 'target_name': 'cronet_test_apk', |
| 380 'type': 'none', | 380 'type': 'none', |
| 381 'dependencies': [ | 381 'dependencies': [ |
| 382 'cronet_java', | 382 'cronet_java', |
| 383 '../net/net.gyp:net_java_test_support', | 383 '../net/net.gyp:net_java_test_support', |
| 384 '../third_party/netty-tcnative/netty-tcnative.gyp:netty-tcnative', | |
| 385 '../third_party/netty4/netty.gyp:netty_all', | |
| 384 ], | 386 ], |
| 385 'variables': { | 387 'variables': { |
| 386 'apk_name': 'CronetTest', | 388 'apk_name': 'CronetTest', |
| 387 'java_in_dir': 'cronet/android/test', | 389 'java_in_dir': 'cronet/android/test', |
| 388 'resource_dir': 'cronet/android/test/res', | 390 'resource_dir': 'cronet/android/test/res', |
| 389 'asset_location': 'cronet/android/test/assets', | 391 'asset_location': 'cronet/android/test/assets', |
| 390 'native_lib_target': 'libcronet_tests', | 392 'native_lib_target': 'libcronet_tests', |
| 391 'run_findbugs': 1, | 393 'run_findbugs': 1, |
| 394 'additional_bundled_libs': [ | |
| 395 '<(PRODUCT_DIR)/lib/<(target_netty_tcnative_so_file_name)', | |
| 396 ], | |
| 392 }, | 397 }, |
| 393 'includes': [ '../build/java_apk.gypi' ], | 398 'includes': [ '../build/java_apk.gypi' ], |
| 394 }, | 399 }, |
| 395 { | 400 { |
| 401 # libnetty-tcnative shared library should have a specific name when it is copied to | |
|
mef
2016/01/26 22:36:48
is it possible to have this target in netty-tcnati
kapishnikov
2016/01/27 00:46:06
Done.
| |
| 402 # the test APK. This target renames (actually makes a copy of) the 'so ' file if it has | |
| 403 # a different name. | |
| 404 'target_name': 'rename_netty_tcnative_so_file', | |
| 405 'type': 'none', | |
| 406 'target_conditions': [ | |
| 407 ['">(netty_tcnative_so_file_name)"!="<(target_netty_tcnative_so_file _name)"', { | |
| 408 'actions': [ | |
| 409 { | |
| 410 'action_name': 'rename', | |
| 411 'inputs': ['<(PRODUCT_DIR)/lib/>(netty_tcnative_so_file_name)'], | |
| 412 'outputs': ['<(PRODUCT_DIR)/lib/<(target_netty_tcnative_so_file_ name)'], | |
| 413 'action': [ | |
| 414 'cp', | |
| 415 '<@(_inputs)', | |
| 416 '<@(_outputs)', | |
| 417 ], | |
| 418 }], | |
| 419 }], | |
| 420 ], | |
| 421 'dependencies': [ | |
| 422 '../third_party/netty-tcnative/netty-tcnative.gyp:netty-tcnative-so' , | |
| 423 ], | |
| 424 }, | |
| 425 { | |
| 396 # cronet_test_apk creates a .jar as a side effect. Any java targets | 426 # cronet_test_apk creates a .jar as a side effect. Any java targets |
| 397 # that need that .jar in their classpath should depend on this target, | 427 # that need that .jar in their classpath should depend on this target, |
| 398 # cronet_test_apk_java. Dependents of cronet_test_apk receive its | 428 # cronet_test_apk_java. Dependents of cronet_test_apk receive its |
| 399 # jar path in the variable 'apk_output_jar_path'. This target should | 429 # jar path in the variable 'apk_output_jar_path'. This target should |
| 400 # only be used by targets which instrument cronet_test_apk. | 430 # only be used by targets which instrument cronet_test_apk. |
| 401 'target_name': 'cronet_test_apk_java', | 431 'target_name': 'cronet_test_apk_java', |
| 402 'type': 'none', | 432 'type': 'none', |
| 403 'dependencies': [ | 433 'dependencies': [ |
| 404 'cronet_test_apk', | 434 'cronet_test_apk', |
| 405 ], | 435 ], |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 620 'destination': '<(package_dir)/symbols/<(android_app_abi)', | 650 'destination': '<(package_dir)/symbols/<(android_app_abi)', |
| 621 'files': [ | 651 'files': [ |
| 622 '<(SHARED_LIB_DIR)/<(native_lib)', | 652 '<(SHARED_LIB_DIR)/<(native_lib)', |
| 623 ], | 653 ], |
| 624 }, | 654 }, |
| 625 ], | 655 ], |
| 626 }, | 656 }, |
| 627 ], | 657 ], |
| 628 'variables': { | 658 'variables': { |
| 629 'enable_data_reduction_proxy_support%': 0, | 659 'enable_data_reduction_proxy_support%': 0, |
| 660 'target_netty_tcnative_so_file_name': "libnetty-tcnative.so", | |
| 630 }, | 661 }, |
| 631 }], # OS=="android" | 662 }], # OS=="android" |
| 632 ], | 663 ], |
| 633 } | 664 } |
| OLD | NEW |