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

Side by Side Diff: build/java_apk.gypi

Issue 580903008: [Android] Create native lib placeholder files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « build/android/gyp/create_placeholder_files.py ('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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 'native_lib_version_name%': '', 166 'native_lib_version_name%': '',
167 'use_chromium_linker%' : 0, 167 'use_chromium_linker%' : 0,
168 'load_library_from_zip_file%' : 0, 168 'load_library_from_zip_file%' : 0,
169 'use_relocation_packer%' : 0, 169 'use_relocation_packer%' : 0,
170 'enable_chromium_linker_tests%': 0, 170 'enable_chromium_linker_tests%': 0,
171 'emma_instrument%': '<(emma_instrument)', 171 'emma_instrument%': '<(emma_instrument)',
172 'apk_package_native_libs_dir': '<(apk_package_native_libs_dir)', 172 'apk_package_native_libs_dir': '<(apk_package_native_libs_dir)',
173 'unsigned_standalone_apk_path': '<(unsigned_standalone_apk_path)', 173 'unsigned_standalone_apk_path': '<(unsigned_standalone_apk_path)',
174 'libchromium_android_linker': 'libchromium_android_linker.>(android_product_ extension)', 174 'libchromium_android_linker': 'libchromium_android_linker.>(android_product_ extension)',
175 'extra_native_libs': [], 175 'extra_native_libs': [],
176 'native_lib_placeholder_stamp': '<(apk_package_native_libs_dir)/<(android_ap p_abi)/native_lib_placeholder.stamp',
177 'native_lib_placeholders': [],
176 }, 178 },
177 # Pass the jar path to the apk's "fake" jar target. This would be better as 179 # Pass the jar path to the apk's "fake" jar target. This would be better as
178 # direct_dependent_settings, but a variable set by a direct_dependent_settings 180 # direct_dependent_settings, but a variable set by a direct_dependent_settings
179 # cannot be lifted in a dependent to all_dependent_settings. 181 # cannot be lifted in a dependent to all_dependent_settings.
180 'all_dependent_settings': { 182 'all_dependent_settings': {
181 'conditions': [ 183 'conditions': [
182 ['proguard_enabled == "true"', { 184 ['proguard_enabled == "true"', {
183 'variables': { 185 'variables': {
184 'proguard_enabled': 'true', 186 'proguard_enabled': 'true',
185 } 187 }
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 'ordered_libraries_file': '<(additional_ordered_libraries_file)', 379 'ordered_libraries_file': '<(additional_ordered_libraries_file)',
378 'stripped_libraries_dir': '<(libraries_source_dir)', 380 'stripped_libraries_dir': '<(libraries_source_dir)',
379 'input_paths': [ 381 'input_paths': [
380 '<@(additional_bundled_libs)', 382 '<@(additional_bundled_libs)',
381 '<(strip_stamp)', 383 '<(strip_stamp)',
382 ], 384 ],
383 'stamp': '<(strip_additional_stamp)' 385 'stamp': '<(strip_additional_stamp)'
384 }, 386 },
385 'includes': ['../build/android/strip_native_libraries.gypi'], 387 'includes': ['../build/android/strip_native_libraries.gypi'],
386 }, 388 },
389 {
390 'action_name': 'Create native lib placeholder files for previous relea ses',
391 'inputs': [
392 '<(DEPTH)/build/android/gyp/create_placeholder_files.py',
393 ],
394 'outputs': [
395 '<(native_lib_placeholder_stamp)',
396 ],
397 'action': [
398 'python', '<(DEPTH)/build/android/gyp/create_placeholder_files.py',
399 '--dest-lib-dir=<(apk_package_native_libs_dir)/<(android_app_abi)/',
400 '--stamp=<(native_lib_placeholder_stamp)',
401 '<@(native_lib_placeholders)',
402 ],
403 },
387 ], 404 ],
388 'conditions': [ 405 'conditions': [
389 ['gyp_managed_install == 1', { 406 ['gyp_managed_install == 1', {
390 'variables': { 407 'variables': {
391 # This "library" just needs to be put in the .apk. It is not loaded 408 # This "library" just needs to be put in the .apk. It is not loaded
392 # at runtime. 409 # at runtime.
393 'placeholder_native_library_path': 410 'placeholder_native_library_path':
394 '<(apk_package_native_libs_dir)/<(android_app_abi)/libfix.crbug.38 4638.so', 411 '<(apk_package_native_libs_dir)/<(android_app_abi)/libfix.crbug.38 4638.so',
cjhopman 2014/09/18 01:07:24 Update this to use the new placeholder action (and
395 'package_input_paths': [ '<(placeholder_native_library_path)' ], 412 'package_input_paths': [ '<(placeholder_native_library_path)' ],
396 'libraries_top_dir': '<(intermediate_dir)/lib.stripped', 413 'libraries_top_dir': '<(intermediate_dir)/lib.stripped',
397 'libraries_source_dir': '<(libraries_top_dir)/lib/<(android_app_abi) ', 414 'libraries_source_dir': '<(libraries_top_dir)/lib/<(android_app_abi) ',
398 'device_library_dir': '<(device_intermediate_dir)/lib.stripped', 415 'device_library_dir': '<(device_intermediate_dir)/lib.stripped',
399 'configuration_name': '<(CONFIGURATION_NAME)', 416 'configuration_name': '<(CONFIGURATION_NAME)',
400 }, 417 },
401 'dependencies': [ 418 'dependencies': [
402 '<(DEPTH)/build/android/setup.gyp:get_build_device_configurations', 419 '<(DEPTH)/build/android/setup.gyp:get_build_device_configurations',
403 ], 420 ],
404 'actions': [ 421 'actions': [
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 '-DEMMA_INSTRUMENT=<(emma_instrument)', 900 '-DEMMA_INSTRUMENT=<(emma_instrument)',
884 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', 901 '-DEMMA_DEVICE_JAR=<(emma_device_jar)',
885 902
886 '-Dbasedir=.', 903 '-Dbasedir=.',
887 '-buildfile', 904 '-buildfile',
888 '<(DEPTH)/build/android/ant/apk-package.xml', 905 '<(DEPTH)/build/android/ant/apk-package.xml',
889 ] 906 ]
890 }, 907 },
891 ], 908 ],
892 } 909 }
OLDNEW
« no previous file with comments | « build/android/gyp/create_placeholder_files.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698