Chromium Code Reviews| 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..d591dccbce75cdf3f177046e501b8c7d66476fc0 |
| --- /dev/null |
| +++ b/third_party/android_platform/relocation_packer.gyp |
| @@ -0,0 +1,71 @@ |
| +# 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. |
| + |
| +{ |
| + 'targets': [ |
| + { |
| + # GN: //tools/relocation_packer:lib_relocation_packer |
| + 'target_name': 'android_lib_relocation_packer', |
| + 'toolsets': ['host'], |
| + 'type': 'static_library', |
| + 'dependencies': [ |
| + '../../third_party/elfutils/elfutils.gyp:libelf', |
| + ], |
| + 'sources': [ |
| + 'relocation_packer/src/debug.cc', |
| + 'relocation_packer/src/delta_encoder.cc', |
| + 'relocation_packer/src/elf_file.cc', |
| + 'relocation_packer/src/leb128.cc', |
| + 'relocation_packer/src/packer.cc', |
| + 'relocation_packer/src/sleb128.cc', |
|
rmcilroy
2015/03/20 17:38:26
Could you pull out the sources into a gypi file wh
simonb (inactive)
2015/03/20 18:33:24
Done. (Specifically, pulled from variables within
|
| + ], |
| + }, |
| + { |
| + # GN: //tools/relocation_packer: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/src/main.cc', |
| + ], |
| + }, |
| + { |
| + # GN: //tools/relocation_packer:relocation_packer_unittests |
|
rmcilroy
2015/03/20 17:38:26
Maybe better to do a TODO(GN) here (and remove the
simonb (inactive)
2015/03/20 18:33:24
Done.
|
| + 'target_name': 'android_relocation_packer_unittests', |
| + 'toolsets': ['host'], |
| + 'type': 'executable', |
| + 'dependencies': [ |
| + '../../testing/gtest.gyp:gtest', |
| + 'android_lib_relocation_packer', |
| + ], |
| + 'include_dirs': [ |
| + '../..', |
| + ], |
| + 'sources': [ |
| + 'relocation_packer/src/debug_unittest.cc', |
| + 'relocation_packer/src/delta_encoder_unittest.cc', |
| + 'relocation_packer/src/elf_file_unittest.cc', |
| + 'relocation_packer/src/leb128_unittest.cc', |
| + 'relocation_packer/src/packer_unittest.cc', |
| + 'relocation_packer/src/sleb128_unittest.cc', |
| + 'relocation_packer/src/run_all_unittests.cc', |
| + ], |
| + 'copies': [ |
| + { |
| + 'destination': '<(PRODUCT_DIR)', |
| + 'files': [ |
| + 'relocation_packer/test_data/elf_file_unittest_relocs_arm32.so', |
| + 'relocation_packer/test_data/elf_file_unittest_relocs_arm32_packed.so', |
| + 'relocation_packer/test_data/elf_file_unittest_relocs_arm64.so', |
| + 'relocation_packer/test_data/elf_file_unittest_relocs_arm64_packed.so', |
| + ], |
| + }, |
| + ], |
| + }, |
| + ], |
| +} |