Chromium Code Reviews| Index: tools/relocation_packer/relocation_packer.gyp |
| diff --git a/tools/relocation_packer/relocation_packer.gyp b/tools/relocation_packer/relocation_packer.gyp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f6613806954c2638e17a402dc169cbb84c458376 |
| --- /dev/null |
| +++ b/tools/relocation_packer/relocation_packer.gyp |
| @@ -0,0 +1,66 @@ |
| +# Copyright (c) 2014 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': [ |
| + { |
| + 'target_name': 'lib_relocation_packer', |
| + 'toolsets': ['host'], |
| + 'type': 'static_library', |
| + 'dependencies': [ |
| + '../../third_party/elfutils/elfutils.gyp:libelf', |
| + ], |
| + 'sources': [ |
| + 'src/debug.cc', |
| + 'src/elf_file.cc', |
| + 'src/leb128.cc', |
| + 'src/packer.cc', |
| + 'src/run_length_encoder.cc', |
| + ], |
| + }, |
| + { |
| + 'target_name': 'relocation_packer', |
| + 'toolsets': ['host'], |
| + 'type': 'executable', |
| + 'dependencies': [ |
| + '../../third_party/elfutils/elfutils.gyp:libelf', |
| + 'lib_relocation_packer', |
| + ], |
| + 'sources': [ |
| + 'src/main.cc', |
| + ], |
| + }, |
| + { |
| + 'target_name': 'relocation_packer_unittests', |
| + 'toolsets': ['host'], |
| + 'type': 'executable', |
| + 'cflags': [ |
| + '-DINTERMEDIATE_DIR="<(INTERMEDIATE_DIR)"', |
| + ], |
| + 'dependencies': [ |
| + '../../testing/gtest.gyp:gtest', |
| + 'lib_relocation_packer', |
| + ], |
| + 'include_dirs': [ |
| + '../..', |
| + ], |
| + 'sources': [ |
| + 'src/elf_file_unittest.cc', |
| + 'src/leb128_unittest.cc', |
| + 'src/packer_unittest.cc', |
| + 'src/run_length_encoder_unittest.cc', |
| + 'src/run_all_unittests.cc', |
| + ], |
| + 'copies': [ |
| + { |
| + 'destination': '<(INTERMEDIATE_DIR)', |
| + 'files': [ |
| + 'src/elf_file_unittest_relocs.so', |
| + 'src/elf_file_unittest_relocs_packed.so', |
|
rmcilroy
2014/06/07 11:49:07
nit - put these files in a "test_data" directory (
simonb (inactive)
2014/06/09 14:39:19
Done.
|
| + ], |
| + }, |
| + ], |
| + }, |
| + ], |
| +} |