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..5240dd818824d28339dd72607622e4ade48d11cc |
| --- /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: //tools/relocation_packer:lib_relocation_packer |
|
rmcilroy
2015/03/24 11:13:19
Should this be //third_party/android_platform/relo
simonb (inactive)
2015/03/24 16:54:44
It should have been //third_party/android_platform
|
| + 'target_name': 'android_lib_relocation_packer', |
| + 'toolsets': ['host'], |
| + 'type': 'static_library', |
| + 'dependencies': [ |
| + '../../third_party/elfutils/elfutils.gyp:libelf', |
| + ], |
| + 'sources': [ |
| + '<@(relocation_packer_sources)' |
| + ], |
| + }, |
| + { |
| + # 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_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', |
| + ], |
| + }, |
| + ], |
| + }, |
| + ], |
| +} |