OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 # This file is meant to be included into a target to provide a rule | 5 # This file is meant to be included into a target to provide a rule |
6 # to build Android APKs in a consistent manner. | 6 # to build Android APKs in a consistent manner. |
7 # | 7 # |
8 # To use this, create a gyp target with the following form: | 8 # To use this, create a gyp target with the following form: |
9 # { | 9 # { |
10 # 'target_name': 'my_package_apk', | 10 # 'target_name': 'my_package_apk', |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 '<(strip_stamp)', | 396 '<(strip_stamp)', |
397 ], | 397 ], |
398 'stamp': '<(strip_additional_stamp)' | 398 'stamp': '<(strip_additional_stamp)' |
399 }, | 399 }, |
400 'includes': ['../build/android/strip_native_libraries.gypi'], | 400 'includes': ['../build/android/strip_native_libraries.gypi'], |
401 }, | 401 }, |
402 ], | 402 ], |
403 'conditions': [ | 403 'conditions': [ |
404 ['gyp_managed_install == 1', { | 404 ['gyp_managed_install == 1', { |
405 'variables': { | 405 'variables': { |
| 406 # This "library" just needs to be put in the .apk. It is not loaded |
| 407 # at runtime. |
| 408 'placeholder_native_library_path': |
| 409 '<(apk_package_native_libs_dir)/<(android_app_abi)/libfix.crbug.38
4638.so', |
| 410 'package_input_paths': [ '<(placeholder_native_library_path)' ], |
406 'libraries_top_dir': '<(intermediate_dir)/lib.stripped', | 411 'libraries_top_dir': '<(intermediate_dir)/lib.stripped', |
407 'libraries_source_dir': '<(libraries_top_dir)/lib/<(android_app_abi)
', | 412 'libraries_source_dir': '<(libraries_top_dir)/lib/<(android_app_abi)
', |
408 'device_library_dir': '<(device_intermediate_dir)/lib.stripped', | 413 'device_library_dir': '<(device_intermediate_dir)/lib.stripped', |
409 'configuration_name': '<(CONFIGURATION_NAME)', | 414 'configuration_name': '<(CONFIGURATION_NAME)', |
410 }, | 415 }, |
411 'dependencies': [ | 416 'dependencies': [ |
412 '<(DEPTH)/build/android/setup.gyp:get_build_device_configurations', | 417 '<(DEPTH)/build/android/setup.gyp:get_build_device_configurations', |
413 ], | 418 ], |
414 'actions': [ | 419 'actions': [ |
415 { | 420 { |
416 'includes': ['../build/android/push_libraries.gypi'], | 421 'includes': ['../build/android/push_libraries.gypi'], |
417 }, | 422 }, |
418 { | 423 { |
| 424 'action_name': 'create placeholder lib', |
| 425 'inputs': [ |
| 426 '<(DEPTH)/build/android/gyp/touch.py', |
| 427 ], |
| 428 'outputs': [ |
| 429 '<(placeholder_native_library_path)', |
| 430 ], |
| 431 'action' : [ |
| 432 'python', '<(DEPTH)/build/android/gyp/touch.py', |
| 433 '<@(_outputs)', |
| 434 ], |
| 435 }, |
| 436 { |
419 'action_name': 'create device library symlinks', | 437 'action_name': 'create device library symlinks', |
420 'message': 'Creating links on device for <(_target_name)', | 438 'message': 'Creating links on device for <(_target_name)', |
421 'inputs': [ | 439 'inputs': [ |
422 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 440 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
423 '<(DEPTH)/build/android/gyp/create_device_library_links.py', | 441 '<(DEPTH)/build/android/gyp/create_device_library_links.py', |
424 '<(apk_install_record)', | 442 '<(apk_install_record)', |
425 '<(build_device_config_path)', | 443 '<(build_device_config_path)', |
426 '<(ordered_libraries_file)', | 444 '<(ordered_libraries_file)', |
427 ], | 445 ], |
428 'outputs': [ | 446 'outputs': [ |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
879 '-DEMMA_INSTRUMENT=<(emma_instrument)', | 897 '-DEMMA_INSTRUMENT=<(emma_instrument)', |
880 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', | 898 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', |
881 | 899 |
882 '-Dbasedir=.', | 900 '-Dbasedir=.', |
883 '-buildfile', | 901 '-buildfile', |
884 '<(DEPTH)/build/android/ant/apk-package.xml', | 902 '<(DEPTH)/build/android/ant/apk-package.xml', |
885 ] | 903 ] |
886 }, | 904 }, |
887 ], | 905 ], |
888 } | 906 } |
OLD | NEW |