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

Side by Side Diff: build/java_apk.gypi

Issue 1136653002: Reland: Actually use --extra-r-text-files in process_resources.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Handle APKs with no resources and add a --include-all-resources option Created 5 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
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 29 matching lines...) Expand all
40 # is_test_apk - Set to 1 if building a test apk. This prevents resources from 40 # is_test_apk - Set to 1 if building a test apk. This prevents resources from
41 # dependencies from being re-included. 41 # dependencies from being re-included.
42 # native_lib_target - The target_name of the target which generates the final 42 # native_lib_target - The target_name of the target which generates the final
43 # shared library to be included in this apk. A stripped copy of the 43 # shared library to be included in this apk. A stripped copy of the
44 # library will be included in the apk. 44 # library will be included in the apk.
45 # resource_dir - The directory for resources. 45 # resource_dir - The directory for resources.
46 # shared_resources - Make a resource package that can be loaded by a different 46 # shared_resources - Make a resource package that can be loaded by a different
47 # application at runtime to access the package's resources. 47 # application at runtime to access the package's resources.
48 # R_package - A custom Java package to generate the resource file R.java in. 48 # R_package - A custom Java package to generate the resource file R.java in.
49 # By default, the package given in AndroidManifest.xml will be used. 49 # By default, the package given in AndroidManifest.xml will be used.
50 # include_all_resources - Set to 1 to include all resource IDs in all generated
51 # R.java files.
50 # use_chromium_linker - Enable the content dynamic linker that allows sharing t he 52 # use_chromium_linker - Enable the content dynamic linker that allows sharing t he
51 # RELRO section of the native libraries between the different processes. 53 # RELRO section of the native libraries between the different processes.
52 # load_library_from_zip_file - When using the dynamic linker, load the library 54 # load_library_from_zip_file - When using the dynamic linker, load the library
53 # directly out of the zip file. 55 # directly out of the zip file.
54 # use_relocation_packer - Enable relocation packing. Relies on the chromium 56 # use_relocation_packer - Enable relocation packing. Relies on the chromium
55 # linker, so use_chromium_linker must also be enabled. 57 # linker, so use_chromium_linker must also be enabled.
56 # enable_chromium_linker_tests - Enable the content dynamic linker test support 58 # enable_chromium_linker_tests - Enable the content dynamic linker test support
57 # code. This allows a test APK to inject a Linker.TestRunner instance at 59 # code. This allows a test APK to inject a Linker.TestRunner instance at
58 # runtime. Should only be used by the chromium_linker_test_apk target!! 60 # runtime. Should only be used by the chromium_linker_test_apk target!!
59 # never_lint - Set to 1 to not run lint on this target. 61 # never_lint - Set to 1 to not run lint on this target.
(...skipping 11 matching lines...) Expand all
71 'generated_src_dirs': [], 73 'generated_src_dirs': [],
72 'app_manifest_version_name%': '<(android_app_version_name)', 74 'app_manifest_version_name%': '<(android_app_version_name)',
73 'app_manifest_version_code%': '<(android_app_version_code)', 75 'app_manifest_version_code%': '<(android_app_version_code)',
74 # aapt generates this proguard.txt. 76 # aapt generates this proguard.txt.
75 'generated_proguard_file': '<(intermediate_dir)/proguard.txt', 77 'generated_proguard_file': '<(intermediate_dir)/proguard.txt',
76 'proguard_enabled%': 'false', 78 'proguard_enabled%': 'false',
77 'proguard_flags_paths': ['<(generated_proguard_file)'], 79 'proguard_flags_paths': ['<(generated_proguard_file)'],
78 'jar_name': 'chromium_apk_<(_target_name).jar', 80 'jar_name': 'chromium_apk_<(_target_name).jar',
79 'resource_dir%':'<(DEPTH)/build/android/ant/empty/res', 81 'resource_dir%':'<(DEPTH)/build/android/ant/empty/res',
80 'R_package%':'', 82 'R_package%':'',
83 'include_all_resources%': 0,
81 'additional_R_text_files': [], 84 'additional_R_text_files': [],
82 'dependencies_res_zip_paths': [], 85 'dependencies_res_zip_paths': [],
83 'additional_res_packages': [], 86 'additional_res_packages': [],
84 'additional_bundled_libs%': [], 87 'additional_bundled_libs%': [],
85 'is_test_apk%': 0, 88 'is_test_apk%': 0,
86 'extensions_to_not_compress%': '', 89 'extensions_to_not_compress%': '',
87 'resource_input_paths': [], 90 'resource_input_paths': [],
88 'intermediate_dir': '<(PRODUCT_DIR)/<(_target_name)', 91 'intermediate_dir': '<(PRODUCT_DIR)/<(_target_name)',
89 'asset_location%': '<(intermediate_dir)/assets', 92 'asset_location%': '<(intermediate_dir)/assets',
90 'codegen_stamp': '<(intermediate_dir)/codegen.stamp', 93 'codegen_stamp': '<(intermediate_dir)/codegen.stamp',
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 ['is_test_apk == 1', { 606 ['is_test_apk == 1', {
604 'dependencies_res_zip_paths=': [], 607 'dependencies_res_zip_paths=': [],
605 'additional_res_packages=': [], 608 'additional_res_packages=': [],
606 }], 609 }],
607 ['res_v14_verify_only == 1', { 610 ['res_v14_verify_only == 1', {
608 'process_resources_options+': ['--v14-verify-only'] 611 'process_resources_options+': ['--v14-verify-only']
609 }], 612 }],
610 ['shared_resources == 1', { 613 ['shared_resources == 1', {
611 'process_resources_options+': ['--shared-resources'] 614 'process_resources_options+': ['--shared-resources']
612 }], 615 }],
616 ['R_package != ""', {
617 'process_resources_options+': ['--custom-package', '<(R_package)']
618 }],
619 ['include_all_resources == 1', {
620 'process_resources_options+': ['--include-all-resources']
621 }]
613 ], 622 ],
614 }, 623 },
615 'inputs': [ 624 'inputs': [
616 '<(DEPTH)/build/android/gyp/util/build_utils.py', 625 '<(DEPTH)/build/android/gyp/util/build_utils.py',
617 '<(DEPTH)/build/android/gyp/process_resources.py', 626 '<(DEPTH)/build/android/gyp/process_resources.py',
618 '<(android_manifest_path)', 627 '<(android_manifest_path)',
619 '>@(additional_input_paths)', 628 '>@(additional_input_paths)',
620 '>@(resource_input_paths)', 629 '>@(resource_input_paths)',
621 '>@(dependencies_res_zip_paths)', 630 '>@(dependencies_res_zip_paths)',
622 '>(inputs_list_file)', 631 '>(inputs_list_file)',
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 '-DEMMA_INSTRUMENT=<(emma_instrument)', 962 '-DEMMA_INSTRUMENT=<(emma_instrument)',
954 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', 963 '-DEMMA_DEVICE_JAR=<(emma_device_jar)',
955 964
956 '-Dbasedir=.', 965 '-Dbasedir=.',
957 '-buildfile', 966 '-buildfile',
958 '<(DEPTH)/build/android/ant/apk-package.xml', 967 '<(DEPTH)/build/android/ant/apk-package.xml',
959 ] 968 ]
960 }, 969 },
961 ], 970 ],
962 } 971 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698