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

Unified Diff: third_party/android_platform/relocation_packer.gyp

Issue 1027823002: Port Android relocation packer to chromium build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed two nugatory files Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/android_platform/config.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/android_platform/relocation_packer.gyp
diff --git a/third_party/android_platform/relocation_packer.gyp b/third_party/android_platform/relocation_packer.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..69136f5340be8a775a527aa4dc52dc03733ac23b
--- /dev/null
+++ b/third_party/android_platform/relocation_packer.gyp
@@ -0,0 +1,83 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'variables': {
+ # These files lists are shared with the GN build.
+ 'relocation_packer_sources': [
+ 'bionic/tools/relocation_packer/src/debug.cc',
+ 'bionic/tools/relocation_packer/src/delta_encoder.cc',
+ 'bionic/tools/relocation_packer/src/elf_file.cc',
+ 'bionic/tools/relocation_packer/src/leb128.cc',
+ 'bionic/tools/relocation_packer/src/packer.cc',
+ 'bionic/tools/relocation_packer/src/sleb128.cc',
+ ],
+ 'relocation_packer_main_source': [
+ 'bionic/tools/relocation_packer/src/main.cc',
+ ],
+ 'relocation_packer_test_sources': [
+ 'bionic/tools/relocation_packer/src/debug_unittest.cc',
+ 'bionic/tools/relocation_packer/src/delta_encoder_unittest.cc',
+ 'bionic/tools/relocation_packer/src/elf_file_unittest.cc',
+ 'bionic/tools/relocation_packer/src/leb128_unittest.cc',
+ 'bionic/tools/relocation_packer/src/packer_unittest.cc',
+ 'bionic/tools/relocation_packer/src/sleb128_unittest.cc',
+ 'bionic/tools/relocation_packer/src/run_all_unittests.cc',
+ ],
+ },
+ 'targets': [
+ {
+ # GN: //third_party/android_platform:android_lib_relocation_packer
+ 'target_name': 'android_lib_relocation_packer',
+ 'toolsets': ['host'],
+ 'type': 'static_library',
+ 'dependencies': [
+ '../../third_party/elfutils/elfutils.gyp:libelf',
+ ],
+ 'sources': [
+ '<@(relocation_packer_sources)'
+ ],
+ },
+ {
+ # GN: //third_party/android_platform:android_relocation_packer
+ 'target_name': 'android_relocation_packer',
+ 'toolsets': ['host'],
+ 'type': 'executable',
+ 'dependencies': [
+ '../../third_party/elfutils/elfutils.gyp:libelf',
+ 'android_lib_relocation_packer',
+ ],
+ 'sources': [
+ '<@(relocation_packer_main_source)'
+ ],
+ },
+ {
+ # TODO(GN)
+ 'target_name': 'android_relocation_packer_unittests',
+ 'toolsets': ['host'],
+ 'type': 'executable',
+ 'dependencies': [
+ '../../testing/gtest.gyp:gtest',
+ 'android_lib_relocation_packer',
+ ],
+ 'include_dirs': [
+ '../..',
+ ],
+ 'sources': [
+ '<@(relocation_packer_test_sources)'
+ ],
+ 'copies': [
+ {
+ 'destination': '<(PRODUCT_DIR)',
+ 'files': [
+ 'bionic/tools/relocation_packer/test_data/elf_file_unittest_relocs_arm32.so',
+ 'bionic/tools/relocation_packer/test_data/elf_file_unittest_relocs_arm32_packed.so',
+ 'bionic/tools/relocation_packer/test_data/elf_file_unittest_relocs_arm64.so',
+ 'bionic/tools/relocation_packer/test_data/elf_file_unittest_relocs_arm64_packed.so',
+ ],
+ },
+ ],
+ },
+ ],
+}
« no previous file with comments | « third_party/android_platform/config.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698