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

Side by Side Diff: build/java_apk.gypi

Issue 152663002: Remove shim classes etc. that were needed to move Android Loader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@moveLibraryLoader
Patch Set: Rebase to landed versions of predecessor CLs. Created 6 years, 10 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 'source_dir': '<(java_in_dir)/src', 116 'source_dir': '<(java_in_dir)/src',
117 'apk_install_record': '<(intermediate_dir)/apk_install.record.stamp', 117 'apk_install_record': '<(intermediate_dir)/apk_install.record.stamp',
118 'device_intermediate_dir': '/data/local/tmp/chromium/<(_target_name)/<(CONFI GURATION_NAME)', 118 'device_intermediate_dir': '/data/local/tmp/chromium/<(_target_name)/<(CONFI GURATION_NAME)',
119 'symlink_script_host_path': '<(intermediate_dir)/create_symlinks.sh', 119 'symlink_script_host_path': '<(intermediate_dir)/create_symlinks.sh',
120 'symlink_script_device_path': '<(device_intermediate_dir)/create_symlinks.sh ', 120 'symlink_script_device_path': '<(device_intermediate_dir)/create_symlinks.sh ',
121 'create_standalone_apk%': 1, 121 'create_standalone_apk%': 1,
122 'variables': { 122 'variables': {
123 'variables': { 123 'variables': {
124 'native_lib_target%': '', 124 'native_lib_target%': '',
125 'native_lib_version_name%': '', 125 'native_lib_version_name%': '',
126 # TODO (aberent) remove use_content_linker once downstream Android has
127 # been switched to use_chromium_linker.
128 'use_content_linker%': 0,
129 'use_chromium_linker%' : 0, 126 'use_chromium_linker%' : 0,
130 'enable_chromium_linker_tests%': 0, 127 'enable_chromium_linker_tests%': 0,
131 'is_test_apk%': 0, 128 'is_test_apk%': 0,
132 }, 129 },
133 'conditions': [ 130 'conditions': [
134 ['gyp_managed_install == 1 and native_lib_target != ""', { 131 ['gyp_managed_install == 1 and native_lib_target != ""', {
135 'unsigned_standalone_apk_path': '<(intermediate_dir)/<(apk_name)-stand alone-unsigned.apk', 132 'unsigned_standalone_apk_path': '<(intermediate_dir)/<(apk_name)-stand alone-unsigned.apk',
136 }, { 133 }, {
137 'unsigned_standalone_apk_path': '<(unsigned_apk_path)', 134 'unsigned_standalone_apk_path': '<(unsigned_apk_path)',
138 }], 135 }],
139 ['gyp_managed_install == 1', { 136 ['gyp_managed_install == 1', {
140 'apk_package_native_libs_dir': '<(intermediate_dir)/libs.managed', 137 'apk_package_native_libs_dir': '<(intermediate_dir)/libs.managed',
141 }, { 138 }, {
142 'apk_package_native_libs_dir': '<(intermediate_dir)/libs', 139 'apk_package_native_libs_dir': '<(intermediate_dir)/libs',
143 }], 140 }],
144 ['is_test_apk == 0 and emma_coverage != 0', { 141 ['is_test_apk == 0 and emma_coverage != 0', {
145 'emma_instrument': 1, 142 'emma_instrument': 1,
146 },{ 143 },{
147 'emma_instrument': 0, 144 'emma_instrument': 0,
148 }], 145 }],
149 ], 146 ],
150 }, 147 },
151 'native_lib_target%': '', 148 'native_lib_target%': '',
152 'native_lib_version_name%': '', 149 'native_lib_version_name%': '',
153 'use_content_linker%': 0,
154 'use_chromium_linker%' : 0, 150 'use_chromium_linker%' : 0,
155 'enable_chromium_linker_tests%': 0, 151 'enable_chromium_linker_tests%': 0,
156 'emma_instrument': '<(emma_instrument)', 152 'emma_instrument': '<(emma_instrument)',
157 'apk_package_native_libs_dir': '<(apk_package_native_libs_dir)', 153 'apk_package_native_libs_dir': '<(apk_package_native_libs_dir)',
158 'unsigned_standalone_apk_path': '<(unsigned_standalone_apk_path)', 154 'unsigned_standalone_apk_path': '<(unsigned_standalone_apk_path)',
159 'extra_native_libs': [], 155 'extra_native_libs': [],
160 }, 156 },
161 # Pass the jar path to the apk's "fake" jar target. This would be better as 157 # Pass the jar path to the apk's "fake" jar target. This would be better as
162 # direct_dependent_settings, but a variable set by a direct_dependent_settings 158 # direct_dependent_settings, but a variable set by a direct_dependent_settings
163 # cannot be lifted in a dependent to all_dependent_settings. 159 # cannot be lifted in a dependent to all_dependent_settings.
(...skipping 15 matching lines...) Expand all
179 'additional_res_dirs': ['<(DEPTH)/build/android/ant/empty/res'], 175 'additional_res_dirs': ['<(DEPTH)/build/android/ant/empty/res'],
180 'additional_res_packages': ['<(R_package)'], 176 'additional_res_packages': ['<(R_package)'],
181 'additional_R_text_files': ['<(PRODUCT_DIR)/<(package_name)/R.txt'], 177 'additional_R_text_files': ['<(PRODUCT_DIR)/<(package_name)/R.txt'],
182 }, 178 },
183 }], 179 }],
184 ['native_lib_target != "" and component == "shared_library"', { 180 ['native_lib_target != "" and component == "shared_library"', {
185 'dependencies': [ 181 'dependencies': [
186 '<(DEPTH)/build/android/setup.gyp:copy_system_libraries', 182 '<(DEPTH)/build/android/setup.gyp:copy_system_libraries',
187 ], 183 ],
188 }], 184 }],
189 ['use_content_linker == 1 or use_chromium_linker == 1', { 185 ['use_chromium_linker == 1', {
190 'dependencies': [ 186 'dependencies': [
191 '<(DEPTH)/base/base.gyp:chromium_android_linker', 187 '<(DEPTH)/base/base.gyp:chromium_android_linker',
192 ], 188 ],
193 }], 189 }],
194 ['native_lib_target != ""', { 190 ['native_lib_target != ""', {
195 'variables': { 191 'variables': {
196 'compile_input_paths': [ '<(native_libraries_java_stamp)' ], 192 'compile_input_paths': [ '<(native_libraries_java_stamp)' ],
197 'generated_src_dirs': [ '<(native_libraries_java_dir)' ], 193 'generated_src_dirs': [ '<(native_libraries_java_dir)' ],
198 'native_libs_paths': [ 194 'native_libs_paths': [
199 '<(SHARED_LIB_DIR)/<(native_lib_target).>(android_product_extension)' 195 '<(SHARED_LIB_DIR)/<(native_lib_target).>(android_product_extension)'
(...skipping 11 matching lines...) Expand all
211 'files': [ 207 'files': [
212 '<(android_gdbserver)', 208 '<(android_gdbserver)',
213 '<@(extra_native_libs)', 209 '<@(extra_native_libs)',
214 ], 210 ],
215 }, 211 },
216 ], 212 ],
217 'actions': [ 213 'actions': [
218 { 214 {
219 'variables': { 215 'variables': {
220 'conditions': [ 216 'conditions': [
221 ['use_content_linker == 1 or use_chromium_linker == 1', { 217 ['use_chromium_linker == 1', {
222 'variables': { 218 'variables': {
223 'linker_input_libraries': [ 219 'linker_input_libraries': [
224 '<(SHARED_LIB_DIR)/libchromium_android_linker.>(android_prod uct_extension)', 220 '<(SHARED_LIB_DIR)/libchromium_android_linker.>(android_prod uct_extension)',
225 ], 221 ],
226 } 222 }
227 }, { 223 }, {
228 'variables': { 224 'variables': {
229 'linker_input_libraries': [], 225 'linker_input_libraries': [],
230 }, 226 },
231 }], 227 }],
(...skipping 23 matching lines...) Expand all
255 '--ordered-libraries=<(ordered_libraries_file)', 251 '--ordered-libraries=<(ordered_libraries_file)',
256 '--version-name=<(native_lib_version_name)', 252 '--version-name=<(native_lib_version_name)',
257 '--native-library-list=<(native_libraries_template_data_file)', 253 '--native-library-list=<(native_libraries_template_data_file)',
258 '--version-output=<(native_libraries_template_version_file)', 254 '--version-output=<(native_libraries_template_version_file)',
259 ], 255 ],
260 }, 256 },
261 { 257 {
262 'action_name': 'native_libraries_<(_target_name)', 258 'action_name': 'native_libraries_<(_target_name)',
263 'variables': { 259 'variables': {
264 'conditions': [ 260 'conditions': [
265 ['use_content_linker == 1 or use_chromium_linker == 1', { 261 ['use_chromium_linker == 1', {
266 'variables': { 262 'variables': {
267 'linker_gcc_preprocess_defines': [ 263 'linker_gcc_preprocess_defines': [
268 '--defines', 'ENABLE_CHROMIUM_LINKER', 264 '--defines', 'ENABLE_CHROMIUM_LINKER',
269 ], 265 ],
270 } 266 }
271 }, { 267 }, {
272 'variables': { 268 'variables': {
273 'linker_gcc_preprocess_defines': [], 269 'linker_gcc_preprocess_defines': [],
274 }, 270 },
275 }], 271 }],
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 '<(DEPTH)/build/android/ant/apk-package.xml', 767 '<(DEPTH)/build/android/ant/apk-package.xml',
772 768
773 # Add list of inputs to the command line, so if inputs change 769 # Add list of inputs to the command line, so if inputs change
774 # (e.g. if a Java file is removed), the command will be re-run. 770 # (e.g. if a Java file is removed), the command will be re-run.
775 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. 771 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja.
776 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', 772 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)',
777 ] 773 ]
778 }, 774 },
779 ], 775 ],
780 } 776 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698