Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: build/android/gyp/write_build_config.py

Issue 2974163002: Fix the stack script issue when symbolizing tombstones. (Closed)
Patch Set: add todo and crbug; revert changes for intentional crash test case Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2014 The Chromium Authors. All rights reserved. 3 # Copyright 2014 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Writes a build_config file. 7 """Writes a build_config file.
8 8
9 The build_config file for a target is a json file containing information about 9 The build_config file for a target is a json file containing information about
10 how to build that target based on the target's dependencies. This includes 10 how to build that target based on the target's dependencies. This includes
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 # android library options 298 # android library options
299 parser.add_option('--dex-path', help='Path to target\'s dex output.') 299 parser.add_option('--dex-path', help='Path to target\'s dex output.')
300 300
301 # native library options 301 # native library options
302 parser.add_option('--shared-libraries-runtime-deps', 302 parser.add_option('--shared-libraries-runtime-deps',
303 help='Path to file containing runtime deps for shared ' 303 help='Path to file containing runtime deps for shared '
304 'libraries.') 304 'libraries.')
305 parser.add_option('--secondary-abi-shared-libraries-runtime-deps', 305 parser.add_option('--secondary-abi-shared-libraries-runtime-deps',
306 help='Path to file containing runtime deps for secondary ' 306 help='Path to file containing runtime deps for secondary '
307 'abi shared libraries.') 307 'abi shared libraries.')
308 parser.add_option('--enable-relocation-packing',
309 help='Whether relocation packing is enabled.')
308 310
309 # apk options 311 # apk options
310 parser.add_option('--apk-path', help='Path to the target\'s apk output.') 312 parser.add_option('--apk-path', help='Path to the target\'s apk output.')
311 parser.add_option('--incremental-apk-path', 313 parser.add_option('--incremental-apk-path',
312 help="Path to the target's incremental apk output.") 314 help="Path to the target's incremental apk output.")
313 parser.add_option('--incremental-install-script-path', 315 parser.add_option('--incremental-install-script-path',
314 help="Path to the target's generated incremental install " 316 help="Path to the target's generated incremental install "
315 "script.") 317 "script.")
316 318
317 parser.add_option('--tested-apk-config', 319 parser.add_option('--tested-apk-config',
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 467
466 if options.type in ('java_binary', 'java_library', 'android_apk'): 468 if options.type in ('java_binary', 'java_library', 'android_apk'):
467 deps_info['jar_path'] = options.jar_path 469 deps_info['jar_path'] = options.jar_path
468 if options.type == 'android_apk' or options.supports_android: 470 if options.type == 'android_apk' or options.supports_android:
469 deps_info['dex_path'] = options.dex_path 471 deps_info['dex_path'] = options.dex_path
470 if options.type == 'android_apk': 472 if options.type == 'android_apk':
471 deps_info['apk_path'] = options.apk_path 473 deps_info['apk_path'] = options.apk_path
472 deps_info['incremental_apk_path'] = options.incremental_apk_path 474 deps_info['incremental_apk_path'] = options.incremental_apk_path
473 deps_info['incremental_install_script_path'] = ( 475 deps_info['incremental_install_script_path'] = (
474 options.incremental_install_script_path) 476 options.incremental_install_script_path)
477 deps_info['enable_relocation_packing'] = options.enable_relocation_packing
475 478
476 if options.type in ('java_binary', 'java_library', 'android_apk', 'dist_jar'): 479 if options.type in ('java_binary', 'java_library', 'android_apk', 'dist_jar'):
477 # Classpath values filled in below (after applying tested_apk_config). 480 # Classpath values filled in below (after applying tested_apk_config).
478 config['javac'] = {} 481 config['javac'] = {}
479 482
480 if options.type in ('java_binary', 'java_library'): 483 if options.type in ('java_binary', 'java_library'):
481 # Only resources might have srcjars (normal srcjar targets are listed in 484 # Only resources might have srcjars (normal srcjar targets are listed in
482 # srcjar_deps). A resource's srcjar contains the R.java file for those 485 # srcjar_deps). A resource's srcjar contains the R.java file for those
483 # resources, and (like Android's default build system) we allow a library to 486 # resources, and (like Android's default build system) we allow a library to
484 # refer to the resources in any of its dependents. 487 # refer to the resources in any of its dependents.
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 deps_info['java_resources_jar'] = options.java_resources_jar_path 728 deps_info['java_resources_jar'] = options.java_resources_jar_path
726 729
727 build_utils.WriteJson(config, options.build_config, only_if_changed=True) 730 build_utils.WriteJson(config, options.build_config, only_if_changed=True)
728 731
729 if options.depfile: 732 if options.depfile:
730 build_utils.WriteDepfile(options.depfile, options.build_config, all_inputs) 733 build_utils.WriteDepfile(options.depfile, options.build_config, all_inputs)
731 734
732 735
733 if __name__ == '__main__': 736 if __name__ == '__main__':
734 sys.exit(main(sys.argv[1:])) 737 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « build/android/gyp/create_test_runner_script.py ('k') | build/android/pylib/instrumentation/instrumentation_test_instance.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698