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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 'compile_stamp': '<(intermediate_dir)/compile.stamp', | 96 'compile_stamp': '<(intermediate_dir)/compile.stamp', |
97 'lint_stamp': '<(intermediate_dir)/lint.stamp', | 97 'lint_stamp': '<(intermediate_dir)/lint.stamp', |
98 'lint_result': '<(intermediate_dir)/lint_result.xml', | 98 'lint_result': '<(intermediate_dir)/lint_result.xml', |
99 'lint_config': '<(intermediate_dir)/lint_config.xml', | 99 'lint_config': '<(intermediate_dir)/lint_config.xml', |
100 'never_lint%': 0, | 100 'never_lint%': 0, |
101 'instr_stamp': '<(intermediate_dir)/instr.stamp', | 101 'instr_stamp': '<(intermediate_dir)/instr.stamp', |
102 'jar_stamp': '<(intermediate_dir)/jar.stamp', | 102 'jar_stamp': '<(intermediate_dir)/jar.stamp', |
103 'obfuscate_stamp': '<(intermediate_dir)/obfuscate.stamp', | 103 'obfuscate_stamp': '<(intermediate_dir)/obfuscate.stamp', |
104 'pack_arm_relocations_stamp': '<(intermediate_dir)/pack_arm_relocations.stam
p', | 104 'pack_arm_relocations_stamp': '<(intermediate_dir)/pack_arm_relocations.stam
p', |
105 'strip_stamp': '<(intermediate_dir)/strip.stamp', | 105 'strip_stamp': '<(intermediate_dir)/strip.stamp', |
106 'stripped_libraries_dir': '<(SHARED_INTERMEDIATE_DIR)/stripped_libraries', | 106 'stripped_libraries_dir': '<(intermediate_dir)/stripped_libraries', |
107 'strip_additional_stamp': '<(intermediate_dir)/strip_additional.stamp', | 107 'strip_additional_stamp': '<(intermediate_dir)/strip_additional.stamp', |
108 'classes_dir': '<(intermediate_dir)/classes/2', | 108 'classes_dir': '<(intermediate_dir)/classes/2', |
109 'javac_includes': [], | 109 'javac_includes': [], |
110 'jar_excluded_classes': [], | 110 'jar_excluded_classes': [], |
111 'javac_jar_path': '<(intermediate_dir)/<(_target_name).javac.jar', | 111 'javac_jar_path': '<(intermediate_dir)/<(_target_name).javac.jar', |
112 'jar_path': '<(PRODUCT_DIR)/lib.java/<(jar_name)', | 112 'jar_path': '<(PRODUCT_DIR)/lib.java/<(jar_name)', |
113 'obfuscated_jar_path': '<(intermediate_dir)/obfuscated.jar', | 113 'obfuscated_jar_path': '<(intermediate_dir)/obfuscated.jar', |
114 'test_jar_path': '<(PRODUCT_DIR)/test.lib.java/<(apk_name).jar', | 114 'test_jar_path': '<(PRODUCT_DIR)/test.lib.java/<(apk_name).jar', |
115 'dex_path': '<(intermediate_dir)/classes.dex', | 115 'dex_path': '<(intermediate_dir)/classes.dex', |
116 'emma_device_jar': '<(android_sdk_root)/tools/lib/emma_device.jar', | 116 'emma_device_jar': '<(android_sdk_root)/tools/lib/emma_device.jar', |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 '<(libchromium_android_linker)', | 367 '<(libchromium_android_linker)', |
368 ], | 368 ], |
369 'ordered_libraries_file%': '<(ordered_libraries_file)', | 369 'ordered_libraries_file%': '<(ordered_libraries_file)', |
370 'stripped_libraries_dir%': '<(stripped_libraries_dir)', | 370 'stripped_libraries_dir%': '<(stripped_libraries_dir)', |
371 'packed_libraries_dir': '<(libraries_source_dir)', | 371 'packed_libraries_dir': '<(libraries_source_dir)', |
372 'input_paths': [ | 372 'input_paths': [ |
373 '<(strip_stamp)', | 373 '<(strip_stamp)', |
374 ], | 374 ], |
375 'stamp': '<(pack_arm_relocations_stamp)', | 375 'stamp': '<(pack_arm_relocations_stamp)', |
376 }, | 376 }, |
377 'dependencies': [ | |
378 'strip_native_libraries', | |
379 ], | |
380 'includes': ['../build/android/pack_arm_relocations.gypi'], | 377 'includes': ['../build/android/pack_arm_relocations.gypi'], |
381 }, | 378 }, |
382 { | 379 { |
383 'variables': { | 380 'variables': { |
384 'input_libraries': [ | 381 'input_libraries': [ |
385 '<@(additional_bundled_libs)', | 382 '<@(additional_bundled_libs)', |
386 ], | 383 ], |
387 'ordered_libraries_file': '<(additional_ordered_libraries_file)', | 384 'ordered_libraries_file': '<(additional_ordered_libraries_file)', |
388 'subtarget': '_additional_libraries', | 385 'subtarget': '_additional_libraries', |
389 }, | 386 }, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 }, | 442 }, |
446 ], | 443 ], |
447 'conditions': [ | 444 'conditions': [ |
448 ['create_standalone_apk == 1', { | 445 ['create_standalone_apk == 1', { |
449 'actions': [ | 446 'actions': [ |
450 { | 447 { |
451 'action_name': 'create standalone APK', | 448 'action_name': 'create standalone APK', |
452 'variables': { | 449 'variables': { |
453 'inputs': [ | 450 'inputs': [ |
454 '<(ordered_libraries_file)', | 451 '<(ordered_libraries_file)', |
455 '<(strip_stamp)', | 452 '<(pack_arm_relocations_stamp)', |
456 '<(strip_additional_stamp)', | 453 '<(strip_additional_stamp)', |
457 ], | 454 ], |
458 'input_apk_path': '<(unsigned_apk_path)', | 455 'input_apk_path': '<(unsigned_apk_path)', |
459 'output_apk_path': '<(unsigned_standalone_apk_path)', | 456 'output_apk_path': '<(unsigned_standalone_apk_path)', |
460 'libraries_top_dir%': '<(libraries_top_dir)', | 457 'libraries_top_dir%': '<(libraries_top_dir)', |
461 }, | 458 }, |
462 'includes': [ 'android/create_standalone_apk_action.gypi' ], | 459 'includes': [ 'android/create_standalone_apk_action.gypi' ], |
463 }, | 460 }, |
464 ], | 461 ], |
465 }], | 462 }], |
466 ], | 463 ], |
467 }, { | 464 }, { |
468 # gyp_managed_install != 1 | 465 # gyp_managed_install != 1 |
469 'variables': { | 466 'variables': { |
470 'libraries_source_dir': '<(apk_package_native_libs_dir)/<(android_ap
p_abi)', | 467 'libraries_source_dir': '<(apk_package_native_libs_dir)/<(android_ap
p_abi)', |
471 'package_input_paths': [ | 468 'package_input_paths': [ |
472 '<(strip_stamp)', | 469 '<(pack_arm_relocations_stamp)', |
473 '<(strip_additional_stamp)', | 470 '<(strip_additional_stamp)', |
474 ], | 471 ], |
475 }, | 472 }, |
476 }], | 473 }], |
477 ], | 474 ], |
478 }], # native_lib_target != '' | 475 }], # native_lib_target != '' |
479 ['gyp_managed_install == 0 or create_standalone_apk == 1', { | 476 ['gyp_managed_install == 0 or create_standalone_apk == 1', { |
480 'actions': [ | 477 'actions': [ |
481 { | 478 { |
482 'action_name': 'finalize standalone apk', | 479 'action_name': 'finalize standalone apk', |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
880 '-DEMMA_INSTRUMENT=<(emma_instrument)', | 877 '-DEMMA_INSTRUMENT=<(emma_instrument)', |
881 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', | 878 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', |
882 | 879 |
883 '-Dbasedir=.', | 880 '-Dbasedir=.', |
884 '-buildfile', | 881 '-buildfile', |
885 '<(DEPTH)/build/android/ant/apk-package.xml', | 882 '<(DEPTH)/build/android/ant/apk-package.xml', |
886 ] | 883 ] |
887 }, | 884 }, |
888 ], | 885 ], |
889 } | 886 } |
OLD | NEW |