summaryrefslogtreecommitdiffstats
path: root/build/java_apk.gypi
diff options
context:
space:
mode:
authorcsharp@chromium.org <csharp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-03 18:39:41 +0000
committercsharp@chromium.org <csharp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-03 18:39:41 +0000
commit9c87bca9664c4912bcce5eec031c11b089e4dc91 (patch)
treeb37963e492934c3292545e62cfc6c9f1745ef0eb /build/java_apk.gypi
parent88e4bbc65a2e113b281366ff38b882d37470b986 (diff)
downloadchromium_src-9c87bca9664c4912bcce5eec031c11b089e4dc91.zip
chromium_src-9c87bca9664c4912bcce5eec031c11b089e4dc91.tar.gz
chromium_src-9c87bca9664c4912bcce5eec031c11b089e4dc91.tar.bz2
Revert 281286 "Add gyp machinery to build with packed ARM relati..."
Broke Android compile: FAILED: cd ../../net; python ../build/android/gyp/pack_arm_relocations.py "--enable-packing=0" "--stripped-libraries-dir=../out/Release/gen/stripped_libraries" "--packed-libraries-dir=../out/Release/net_unittests_apk/libs/armeabi-v7a" "--libraries-file=../out/Release/net_unittests_apk/native_libraries.json" "--stamp=../out/Release/net_unittests_apk/pack_arm_relocations.stamp" Traceback (most recent call last): File "../build/android/gyp/pack_arm_relocations.py", line 108, in <module> sys.exit(main()) File "../build/android/gyp/pack_arm_relocations.py", line 99, in main CopyArmLibraryUnchanged(library_path, output_path) File "../build/android/gyp/pack_arm_relocations.py", line 58, in CopyArmLibraryUnchanged shutil.copy(library_path, output_path) File "/usr/lib/python2.7/shutil.py", line 117, in copy copyfile(src, dst) File "/usr/lib/python2.7/shutil.py", line 83, in copyfile with open(dst, 'wb') as fdst: IOError: [Errno 2] No such file or directory: u'../out/Release/net_unittests_apk/libs/armeabi-v7a/libnet_unittests.so' ninja: build stopped: subcommand failed. > Add gyp machinery to build with packed ARM relative relocations. > > Add gypi and python files to support packing ARM relative relocations > during the build process. > > Define a use_relocation_packer gyp variable to turn ARM relocation > packing on and off (currently set to 0). > > BUG=385553 > > Review URL: https://codereview.chromium.org/358863002 TBR=simonb@chromium.org Review URL: https://codereview.chromium.org/370633002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281303 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/java_apk.gypi')
-rw-r--r--build/java_apk.gypi39
1 files changed, 3 insertions, 36 deletions
diff --git a/build/java_apk.gypi b/build/java_apk.gypi
index c860946..4b0046b1 100644
--- a/build/java_apk.gypi
+++ b/build/java_apk.gypi
@@ -48,8 +48,6 @@
# RELRO section of the native libraries between the different processes.
# load_library_from_zip_file - When using the dynamic linker, load the library
# directly out of the zip file.
-# use_relocation_packer - Enable relocation packing. Relies on the chromium
-# linker, so use_chromium_linker must also be enabled.
# enable_chromium_linker_tests - Enable the content dynamic linker test support
# code. This allows a test APK to inject a Linker.TestRunner instance at
# runtime. Should only be used by the chromium_linker_test_apk target!!
@@ -97,9 +95,7 @@
'instr_stamp': '<(intermediate_dir)/instr.stamp',
'jar_stamp': '<(intermediate_dir)/jar.stamp',
'obfuscate_stamp': '<(intermediate_dir)/obfuscate.stamp',
- 'pack_arm_relocations_stamp': '<(intermediate_dir)/pack_arm_relocations.stamp',
'strip_stamp': '<(intermediate_dir)/strip.stamp',
- 'stripped_libraries_dir': '<(SHARED_INTERMEDIATE_DIR)/stripped_libraries',
'classes_dir': '<(intermediate_dir)/classes/2',
'javac_includes': [],
'jar_excluded_classes': [],
@@ -131,7 +127,6 @@
'native_lib_version_name%': '',
'use_chromium_linker%' : 0,
'load_library_from_zip_file%' : 0,
- 'use_relocation_packer%' : 0,
'enable_chromium_linker_tests%': 0,
'is_test_apk%': 0,
},
@@ -156,13 +151,11 @@
'native_lib_target%': '',
'native_lib_version_name%': '',
'use_chromium_linker%' : 0,
- 'load_library_from_zip_file%' : 0,
- 'use_relocation_packer%' : 0,
'enable_chromium_linker_tests%': 0,
+ 'load_library_from_zip_file%' : 0,
'emma_instrument%': '<(emma_instrument)',
'apk_package_native_libs_dir': '<(apk_package_native_libs_dir)',
'unsigned_standalone_apk_path': '<(unsigned_standalone_apk_path)',
- 'libchromium_android_linker': 'libchromium_android_linker.>(android_product_extension)',
'extra_native_libs': [],
},
# Pass the jar path to the apk's "fake" jar target. This would be better as
@@ -234,7 +227,7 @@
['use_chromium_linker == 1', {
'variables': {
'linker_input_libraries': [
- '<(SHARED_LIB_DIR)/<(libchromium_android_linker)',
+ '<(SHARED_LIB_DIR)/libchromium_android_linker.>(android_product_extension)',
],
}
}, {
@@ -339,7 +332,7 @@
'action_name': 'strip_native_libraries',
'variables': {
'ordered_libraries_file%': '<(ordered_libraries_file)',
- 'stripped_libraries_dir%': '<(stripped_libraries_dir)',
+ 'stripped_libraries_dir': '<(libraries_source_dir)',
'input_paths': [
'<@(native_libs_paths)',
'<@(extra_native_libs)',
@@ -348,32 +341,6 @@
},
'includes': ['../build/android/strip_native_libraries.gypi'],
},
- {
- 'action_name': 'pack_arm_relocations',
- 'variables': {
- 'conditions': [
- ['use_chromium_linker == 1 and use_relocation_packer == 1', {
- 'enable_packing': 1,
- }, {
- 'enable_packing': 0,
- }],
- ],
- 'exclude_packing_list': [
- '<(libchromium_android_linker)',
- ],
- 'ordered_libraries_file%': '<(ordered_libraries_file)',
- 'stripped_libraries_dir%': '<(stripped_libraries_dir)',
- 'packed_libraries_dir': '<(libraries_source_dir)',
- 'input_paths': [
- '<(strip_stamp)',
- ],
- 'stamp': '<(pack_arm_relocations_stamp)',
- },
- 'dependencies': [
- 'strip_native_libraries',
- ],
- 'includes': ['../build/android/pack_arm_relocations.gypi'],
- },
],
'conditions': [
['gyp_managed_install == 1', {