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

Side by Side Diff: build/java_apk.gypi

Issue 295473002: Remove apk-codegen.xml (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix proguard.txt Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « build/java.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 # never_lint - Set to 1 to not run lint on this target. 52 # never_lint - Set to 1 to not run lint on this target.
53 { 53 {
54 'variables': { 54 'variables': {
55 'additional_input_paths': [], 55 'additional_input_paths': [],
56 'input_jars_paths': [], 56 'input_jars_paths': [],
57 'library_dexed_jars_paths': [], 57 'library_dexed_jars_paths': [],
58 'additional_src_dirs': [], 58 'additional_src_dirs': [],
59 'generated_src_dirs': [], 59 'generated_src_dirs': [],
60 'app_manifest_version_name%': '<(android_app_version_name)', 60 'app_manifest_version_name%': '<(android_app_version_name)',
61 'app_manifest_version_code%': '<(android_app_version_code)', 61 'app_manifest_version_code%': '<(android_app_version_code)',
62 # aapt generates this proguard.txt.
63 'generated_proguard_file': '<(intermediate_dir)/proguard.txt',
62 'proguard_enabled%': 'false', 64 'proguard_enabled%': 'false',
63 'proguard_flags_paths%': ['<(DEPTH)/build/android/empty_proguard.flags'], 65 'proguard_flags_paths': ['<(generated_proguard_file)'],
64 'jar_name': 'chromium_apk_<(_target_name).jar', 66 'jar_name': 'chromium_apk_<(_target_name).jar',
65 'resource_dir%':'<(DEPTH)/build/android/ant/empty/res', 67 'resource_dir%':'<(DEPTH)/build/android/ant/empty/res',
66 'R_package%':'', 68 'R_package%':'',
67 'additional_R_text_files': [], 69 'additional_R_text_files': [],
68 'additional_res_dirs': [], 70 'additional_res_dirs': [],
69 'additional_res_packages': [], 71 'additional_res_packages': [],
70 'is_test_apk%': 0, 72 'is_test_apk%': 0,
71 'resource_input_paths': [], 73 'resource_input_paths': [],
72 'intermediate_dir': '<(PRODUCT_DIR)/<(_target_name)', 74 'intermediate_dir': '<(PRODUCT_DIR)/<(_target_name)',
73 'asset_location%': '<(intermediate_dir)/assets', 75 'asset_location%': '<(intermediate_dir)/assets',
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 'dependencies': [ 428 'dependencies': [
427 '<(DEPTH)/tools/android/android_tools.gyp:android_tools', 429 '<(DEPTH)/tools/android/android_tools.gyp:android_tools',
428 ] 430 ]
429 }], 431 }],
430 ], 432 ],
431 'dependencies': [ 433 'dependencies': [
432 '<(DEPTH)/tools/android/md5sum/md5sum.gyp:md5sum', 434 '<(DEPTH)/tools/android/md5sum/md5sum.gyp:md5sum',
433 ], 435 ],
434 'actions': [ 436 'actions': [
435 { 437 {
436 'action_name': 'ant_codegen_<(_target_name)', 438 'action_name': 'process_resources',
437 'message': 'Generating R.java for <(_target_name)', 439 'message': 'processing resources for <(_target_name)',
440 'variables': {
441 # Write the inputs list to a file, so that its mtime is updated when
442 # the list of inputs changes.
443 'inputs_list_file': '>|(apk_codegen.<(_target_name).gypcmd >@(additional _input_paths) >@(resource_input_paths))',
444 },
438 'conditions': [ 445 'conditions': [
439 ['is_test_apk == 1', { 446 ['is_test_apk == 1', {
440 'variables': { 447 'variables': {
441 'additional_res_dirs=': [], 448 'additional_res_dirs=': [],
442 'additional_res_packages=': [], 449 'additional_res_packages=': [],
443 } 450 }
444 }], 451 }],
445 ], 452 ],
446 'variables': {
447 # Write the inputs list to a file, so that its mtime is updated when
448 # the list of inputs changes.
449 'inputs_list_file': '>|(apk_codegen.<(_target_name).gypcmd >@(additional _input_paths) >@(resource_input_paths))'
450 },
451 'inputs': [ 453 'inputs': [
452 '<(DEPTH)/build/android/ant/apk-codegen.xml',
453 '<(DEPTH)/build/android/gyp/util/build_utils.py', 454 '<(DEPTH)/build/android/gyp/util/build_utils.py',
454 '<(DEPTH)/build/android/gyp/ant.py', 455 '<(DEPTH)/build/android/gyp/process_resources.py',
455 '<(android_manifest_path)', 456 '<(android_manifest_path)',
456 '>@(additional_input_paths)', 457 '>@(additional_input_paths)',
457 '>@(resource_input_paths)', 458 '>@(resource_input_paths)',
458 '>(inputs_list_file)', 459 '>(inputs_list_file)',
459 ], 460 ],
460 'outputs': [ 461 'outputs': [
462 '<(generated_proguard_file)',
461 '<(codegen_stamp)', 463 '<(codegen_stamp)',
462 ], 464 ],
463 'action': [ 465 'action': [
464 'python', '<(DEPTH)/build/android/gyp/ant.py', 466 'python', '<(DEPTH)/build/android/gyp/process_resources.py',
465 '-quiet', 467 '--android-sdk', '<(android_sdk)',
466 '-DADDITIONAL_RES_DIRS=>(additional_res_dirs)', 468 '--android-sdk-tools', '<(android_sdk_tools)',
467 '-DADDITIONAL_RES_PACKAGES=>(additional_res_packages)',
468 '-DADDITIONAL_R_TEXT_FILES=>(additional_R_text_files)',
469 '-DANDROID_MANIFEST=<(android_manifest_path)',
470 '-DANDROID_SDK_JAR=<(android_sdk_jar)',
471 '-DANDROID_SDK_ROOT=<(android_sdk_root)',
472 '-DANDROID_SDK_VERSION=<(android_sdk_version)',
473 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)',
474 '-DOUT_DIR=<(intermediate_dir)',
475 '-DRESOURCE_DIR=<(resource_dir)',
476 469
477 '-DSTAMP=<(codegen_stamp)', 470 '--android-manifest', '<(android_manifest_path)',
478 '-Dbasedir=.', 471 '--dependencies-res-dirs', '>(additional_res_dirs)',
479 '-buildfile', 472
480 '<(DEPTH)/build/android/ant/apk-codegen.xml', 473 '--extra-res-packages', '>(additional_res_packages)',
474 '--extra-r-text-files', '>(additional_R_text_files)',
475
476 '--proguard-file', '<(generated_proguard_file)',
477
478 '--resource-dir', '<(resource_dir)',
479 '--crunch-output-dir', '<(intermediate_dir)/res',
480
481 '--R-dir', '<(intermediate_dir)/gen',
482
483 '--stamp', '<(codegen_stamp)',
481 ], 484 ],
482 }, 485 },
483 { 486 {
484 'action_name': 'javac_<(_target_name)', 487 'action_name': 'javac_<(_target_name)',
485 'message': 'Compiling java for <(_target_name)', 488 'message': 'Compiling java for <(_target_name)',
486 'variables': { 489 'variables': {
487 'gen_src_dirs': [ 490 'gen_src_dirs': [
488 '<(intermediate_dir)/gen', 491 '<(intermediate_dir)/gen',
489 '>@(generated_src_dirs)', 492 '>@(generated_src_dirs)',
490 ], 493 ],
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 '-DEMMA_INSTRUMENT=<(emma_instrument)', 729 '-DEMMA_INSTRUMENT=<(emma_instrument)',
727 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', 730 '-DEMMA_DEVICE_JAR=<(emma_device_jar)',
728 731
729 '-Dbasedir=.', 732 '-Dbasedir=.',
730 '-buildfile', 733 '-buildfile',
731 '<(DEPTH)/build/android/ant/apk-package.xml', 734 '<(DEPTH)/build/android/ant/apk-package.xml',
732 ] 735 ]
733 }, 736 },
734 ], 737 ],
735 } 738 }
OLDNEW
« no previous file with comments | « build/java.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698