| 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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 'stripped_libraries_dir%': '<(stripped_libraries_dir)', | 335 'stripped_libraries_dir%': '<(stripped_libraries_dir)', |
| 336 'input_paths': [ | 336 'input_paths': [ |
| 337 '<@(native_libs_paths)', | 337 '<@(native_libs_paths)', |
| 338 '<@(extra_native_libs)', | 338 '<@(extra_native_libs)', |
| 339 ], | 339 ], |
| 340 'stamp': '<(strip_stamp)' | 340 'stamp': '<(strip_stamp)' |
| 341 }, | 341 }, |
| 342 'includes': ['../build/android/strip_native_libraries.gypi'], | 342 'includes': ['../build/android/strip_native_libraries.gypi'], |
| 343 }, | 343 }, |
| 344 { | 344 { |
| 345 'action_name': 'insert_chromium_version', |
| 346 'variables': { |
| 347 'ordered_libraries_file%': '<(ordered_libraries_file)', |
| 348 'stripped_libraries_dir%': '<(stripped_libraries_dir)', |
| 349 'version_string': '<(native_lib_version_name)', |
| 350 'input_paths': [ |
| 351 '<(strip_stamp)', |
| 352 ], |
| 353 'stamp': '<(version_stamp)' |
| 354 }, |
| 355 'includes': ['../build/android/insert_chromium_version.gypi'], |
| 356 }, |
| 357 { |
| 345 'action_name': 'pack_arm_relocations', | 358 'action_name': 'pack_arm_relocations', |
| 346 'variables': { | 359 'variables': { |
| 347 'conditions': [ | 360 'conditions': [ |
| 348 ['use_chromium_linker == 1 and use_relocation_packer == 1', { | 361 ['use_chromium_linker == 1 and use_relocation_packer == 1', { |
| 349 'enable_packing': 1, | 362 'enable_packing': 1, |
| 350 }, { | 363 }, { |
| 351 'enable_packing': 0, | 364 'enable_packing': 0, |
| 352 }], | 365 }], |
| 353 ], | 366 ], |
| 354 'exclude_packing_list': [ | 367 'exclude_packing_list': [ |
| 355 '<(libchromium_android_linker)', | 368 '<(libchromium_android_linker)', |
| 356 ], | 369 ], |
| 357 'ordered_libraries_file%': '<(ordered_libraries_file)', | 370 'ordered_libraries_file%': '<(ordered_libraries_file)', |
| 358 'stripped_libraries_dir%': '<(stripped_libraries_dir)', | 371 'stripped_libraries_dir%': '<(stripped_libraries_dir)', |
| 359 'packed_libraries_dir': '<(libraries_source_dir)', | 372 'packed_libraries_dir': '<(libraries_source_dir)', |
| 360 'input_paths': [ | 373 'input_paths': [ |
| 361 '<(strip_stamp)', | 374 '<(version_stamp)' |
| 362 ], | 375 ], |
| 363 'stamp': '<(pack_arm_relocations_stamp)', | 376 'stamp': '<(pack_arm_relocations_stamp)', |
| 364 }, | 377 }, |
| 365 'includes': ['../build/android/pack_arm_relocations.gypi'], | 378 'includes': ['../build/android/pack_arm_relocations.gypi'], |
| 366 }, | 379 }, |
| 367 { | 380 { |
| 368 'action_name': 'insert_chromium_version', | |
| 369 'variables': { | |
| 370 'ordered_libraries_file%': '<(ordered_libraries_file)', | |
| 371 'libraries_source_dir%': '<(libraries_source_dir)', | |
| 372 'version_string': '<(native_lib_version_name)', | |
| 373 'input_paths': [ | |
| 374 '<(pack_arm_relocations_stamp)', | |
| 375 ], | |
| 376 'stamp': '<(version_stamp)' | |
| 377 }, | |
| 378 'includes': ['../build/android/insert_chromium_version.gypi'], | |
| 379 }, | |
| 380 { | |
| 381 'variables': { | 381 'variables': { |
| 382 'input_libraries': [ | 382 'input_libraries': [ |
| 383 '<@(additional_bundled_libs)', | 383 '<@(additional_bundled_libs)', |
| 384 ], | 384 ], |
| 385 'ordered_libraries_file': '<(additional_ordered_libraries_file)', | 385 'ordered_libraries_file': '<(additional_ordered_libraries_file)', |
| 386 'subtarget': '_additional_libraries', | 386 'subtarget': '_additional_libraries', |
| 387 }, | 387 }, |
| 388 'includes': ['../build/android/write_ordered_libraries.gypi'], | 388 'includes': ['../build/android/write_ordered_libraries.gypi'], |
| 389 }, | 389 }, |
| 390 { | 390 { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 ], | 469 ], |
| 470 'conditions': [ | 470 'conditions': [ |
| 471 ['create_standalone_apk == 1', { | 471 ['create_standalone_apk == 1', { |
| 472 'actions': [ | 472 'actions': [ |
| 473 { | 473 { |
| 474 'action_name': 'create standalone APK', | 474 'action_name': 'create standalone APK', |
| 475 'variables': { | 475 'variables': { |
| 476 'inputs': [ | 476 'inputs': [ |
| 477 '<(ordered_libraries_file)', | 477 '<(ordered_libraries_file)', |
| 478 '<(strip_additional_stamp)', | 478 '<(strip_additional_stamp)', |
| 479 '<(version_stamp)', | 479 '<(pack_arm_relocations_stamp)', |
| 480 ], | 480 ], |
| 481 'input_apk_path': '<(unsigned_apk_path)', | 481 'input_apk_path': '<(unsigned_apk_path)', |
| 482 'output_apk_path': '<(unsigned_standalone_apk_path)', | 482 'output_apk_path': '<(unsigned_standalone_apk_path)', |
| 483 'libraries_top_dir%': '<(libraries_top_dir)', | 483 'libraries_top_dir%': '<(libraries_top_dir)', |
| 484 }, | 484 }, |
| 485 'includes': [ 'android/create_standalone_apk_action.gypi' ], | 485 'includes': [ 'android/create_standalone_apk_action.gypi' ], |
| 486 }, | 486 }, |
| 487 ], | 487 ], |
| 488 }], | 488 }], |
| 489 ], | 489 ], |
| 490 }, { | 490 }, { |
| 491 # gyp_managed_install != 1 | 491 # gyp_managed_install != 1 |
| 492 'variables': { | 492 'variables': { |
| 493 'libraries_source_dir': '<(apk_package_native_libs_dir)/<(android_ap
p_abi)', | 493 'libraries_source_dir': '<(apk_package_native_libs_dir)/<(android_ap
p_abi)', |
| 494 'package_input_paths': [ | 494 'package_input_paths': [ |
| 495 '<(strip_additional_stamp)', | 495 '<(strip_additional_stamp)', |
| 496 '<(version_stamp)', | 496 '<(pack_arm_relocations_stamp)', |
| 497 ], | 497 ], |
| 498 }, | 498 }, |
| 499 }], | 499 }], |
| 500 ], | 500 ], |
| 501 }], # native_lib_target != '' | 501 }], # native_lib_target != '' |
| 502 ['gyp_managed_install == 0 or create_standalone_apk == 1', { | 502 ['gyp_managed_install == 0 or create_standalone_apk == 1', { |
| 503 'actions': [ | 503 'actions': [ |
| 504 { | 504 { |
| 505 'action_name': 'finalize standalone apk', | 505 'action_name': 'finalize standalone apk', |
| 506 'variables': { | 506 'variables': { |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 '-DEMMA_INSTRUMENT=<(emma_instrument)', | 911 '-DEMMA_INSTRUMENT=<(emma_instrument)', |
| 912 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', | 912 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', |
| 913 | 913 |
| 914 '-Dbasedir=.', | 914 '-Dbasedir=.', |
| 915 '-buildfile', | 915 '-buildfile', |
| 916 '<(DEPTH)/build/android/ant/apk-package.xml', | 916 '<(DEPTH)/build/android/ant/apk-package.xml', |
| 917 ] | 917 ] |
| 918 }, | 918 }, |
| 919 ], | 919 ], |
| 920 } | 920 } |
| OLD | NEW |