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

Side by Side Diff: build/java_apk.gypi

Issue 13651003: Package correct libraries in apk (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/android/ant/apk-package.xml ('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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 'jar_excluded_classes': [], 95 'jar_excluded_classes': [],
96 'jar_path': '<(PRODUCT_DIR)/lib.java/<(jar_name)', 96 'jar_path': '<(PRODUCT_DIR)/lib.java/<(jar_name)',
97 'obfuscated_jar_path': '<(intermediate_dir)/obfuscated.jar', 97 'obfuscated_jar_path': '<(intermediate_dir)/obfuscated.jar',
98 'dex_path': '<(intermediate_dir)/classes.dex', 98 'dex_path': '<(intermediate_dir)/classes.dex',
99 'android_manifest': '<(java_in_dir)/AndroidManifest.xml', 99 'android_manifest': '<(java_in_dir)/AndroidManifest.xml',
100 'push_stamp': '<(intermediate_dir)/push.stamp', 100 'push_stamp': '<(intermediate_dir)/push.stamp',
101 'link_stamp': '<(intermediate_dir)/link.stamp', 101 'link_stamp': '<(intermediate_dir)/link.stamp',
102 'codegen_input_paths': [], 102 'codegen_input_paths': [],
103 'final_apk_path': '<(PRODUCT_DIR)/apks/<(apk_name).apk', 103 'final_apk_path': '<(PRODUCT_DIR)/apks/<(apk_name).apk',
104 'apk_install_stamp': '<(intermediate_dir)/apk_install.stamp', 104 'apk_install_stamp': '<(intermediate_dir)/apk_install.stamp',
105 'apk_package_native_libs_dir': '<(intermediate_dir)/libs',
105 }, 106 },
106 # Pass the jar path to the apk's "fake" jar target. This would be better as 107 # Pass the jar path to the apk's "fake" jar target. This would be better as
107 # direct_dependent_settings, but a variable set by a direct_dependent_settings 108 # direct_dependent_settings, but a variable set by a direct_dependent_settings
108 # cannot be lifted in a dependent to all_dependent_settings. 109 # cannot be lifted in a dependent to all_dependent_settings.
109 'all_dependent_settings': { 110 'all_dependent_settings': {
110 'variables': { 111 'variables': {
111 'apk_output_jar_path': '<(PRODUCT_DIR)/lib.java/<(jar_name)', 112 'apk_output_jar_path': '<(PRODUCT_DIR)/lib.java/<(jar_name)',
112 }, 113 },
113 }, 114 },
114 'conditions': [ 115 'conditions': [
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 '--stripped-libraries-dir=<(apk_libraries_dir)', 213 '--stripped-libraries-dir=<(apk_libraries_dir)',
213 '--libraries-dir=<(SHARED_LIB_DIR)', 214 '--libraries-dir=<(SHARED_LIB_DIR)',
214 '--libraries-file=<(ordered_libraries_file)', 215 '--libraries-file=<(ordered_libraries_file)',
215 '--stamp=<(strip_stamp)', 216 '--stamp=<(strip_stamp)',
216 ], 217 ],
217 }, 218 },
218 ], 219 ],
219 'conditions': [ 220 'conditions': [
220 ['gyp_managed_install == 1', { 221 ['gyp_managed_install == 1', {
221 'variables': { 222 'variables': {
222 'apk_libraries_dir': '<(intermediate_dir)/lib.stripped/', 223 'apk_libraries_dir': '<(intermediate_dir)/lib.stripped/<(android_app _abi)',
224 'apk_package_native_libs_dir': '<(intermediate_dir)/libs.managed',
223 'device_library_dir': '/data/local/tmp/chromium/lib.stripped/<(_targ et_name)', 225 'device_library_dir': '/data/local/tmp/chromium/lib.stripped/<(_targ et_name)',
224 }, 226 },
225 'dependencies': [ 227 'dependencies': [
226 '<(DEPTH)/tools/android/md5sum/md5sum.gyp:md5sum', 228 '<(DEPTH)/tools/android/md5sum/md5sum.gyp:md5sum',
227 ], 229 ],
228 'actions': [ 230 'actions': [
229 { 231 {
230 'action_name': 'push_libraries_<(_target_name)', 232 'action_name': 'push_libraries_<(_target_name)',
231 'message': 'Pushing libraries to device for <(_target_name)', 233 'message': 'Pushing libraries to device for <(_target_name)',
232 'inputs': [ 234 'inputs': [
(...skipping 30 matching lines...) Expand all
263 '--libraries-json=<(ordered_libraries_file)', 265 '--libraries-json=<(ordered_libraries_file)',
264 '--libraries-dir=<(apk_libraries_dir)', 266 '--libraries-dir=<(apk_libraries_dir)',
265 '--target-dir=<(device_library_dir)', 267 '--target-dir=<(device_library_dir)',
266 '--stamp=<(link_stamp)', 268 '--stamp=<(link_stamp)',
267 ], 269 ],
268 }, 270 },
269 ], 271 ],
270 }, { 272 }, {
271 # gyp_managed_install != 1 273 # gyp_managed_install != 1
272 'variables': { 274 'variables': {
273 'apk_libraries_dir': '<(intermediate_dir)/libs/<(android_app_abi)', 275 'apk_libraries_dir': '<(apk_package_native_libs_dir)/<(android_app_a bi)',
274 'package_input_paths': [ '<(strip_stamp)' ], 276 'package_input_paths': [ '<(strip_stamp)' ],
275 }, 277 },
276 }], 278 }],
277 ], 279 ],
278 }], # native_lib_target != '' 280 }], # native_lib_target != ''
279 ['java_strings_grd != ""', { 281 ['java_strings_grd != ""', {
280 'variables': { 282 'variables': {
281 'res_grit_dir': '<(SHARED_INTERMEDIATE_DIR)/<(package_name)_apk/res_grit ', 283 'res_grit_dir': '<(SHARED_INTERMEDIATE_DIR)/<(package_name)_apk/res_grit ',
282 'additional_res_dirs': ['<(res_grit_dir)'], 284 'additional_res_dirs': ['<(res_grit_dir)'],
283 # grit_grd_file is used by grit_action.gypi, included below. 285 # grit_grd_file is used by grit_action.gypi, included below.
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 '-DANDROID_SDK_JAR=<(android_sdk_jar)', 550 '-DANDROID_SDK_JAR=<(android_sdk_jar)',
549 '-DANDROID_SDK_ROOT=<(android_sdk_root)', 551 '-DANDROID_SDK_ROOT=<(android_sdk_root)',
550 '-DANDROID_SDK_VERSION=<(android_sdk_version)', 552 '-DANDROID_SDK_VERSION=<(android_sdk_version)',
551 '-DAPKS_DIR=<(PRODUCT_DIR)/apks', 553 '-DAPKS_DIR=<(PRODUCT_DIR)/apks',
552 '-DAPK_NAME=<(apk_name)', 554 '-DAPK_NAME=<(apk_name)',
553 '-DAPP_MANIFEST_VERSION_CODE=<(app_manifest_version_code)', 555 '-DAPP_MANIFEST_VERSION_CODE=<(app_manifest_version_code)',
554 '-DAPP_MANIFEST_VERSION_NAME=<(app_manifest_version_name)', 556 '-DAPP_MANIFEST_VERSION_NAME=<(app_manifest_version_name)',
555 '-DASSET_DIR=<(asset_location)', 557 '-DASSET_DIR=<(asset_location)',
556 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)', 558 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)',
557 '-DKEYSTORE_PATH=<(DEPTH)/build/android/ant/chromium-debug.keystore', 559 '-DKEYSTORE_PATH=<(DEPTH)/build/android/ant/chromium-debug.keystore',
560 '-DNATIVE_LIBS_DIR=<(apk_package_native_libs_dir)',
558 '-DOUT_DIR=<(intermediate_dir)', 561 '-DOUT_DIR=<(intermediate_dir)',
559 '-DRESOURCE_DIR=<(resource_dir)', 562 '-DRESOURCE_DIR=<(resource_dir)',
560 '-DSOURCE_DIR=<(java_in_dir)/src', 563 '-DSOURCE_DIR=<(java_in_dir)/src',
561 564
562 '-Dbasedir=.', 565 '-Dbasedir=.',
563 '-buildfile', 566 '-buildfile',
564 '<(DEPTH)/build/android/ant/apk-package.xml', 567 '<(DEPTH)/build/android/ant/apk-package.xml',
565 568
566 # Add list of inputs to the command line, so if inputs change 569 # Add list of inputs to the command line, so if inputs change
567 # (e.g. if a Java file is removed), the command will be re-run. 570 # (e.g. if a Java file is removed), the command will be re-run.
568 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. 571 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja.
569 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', 572 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)',
570 ] 573 ]
571 }, 574 },
572 ], 575 ],
573 } 576 }
OLDNEW
« no previous file with comments | « build/android/ant/apk-package.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698