1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
7 'target_define%': 'TARGET_UNSUPPORTED',
9 [ 'target_arch == "arm"', {
10 'target_define': 'TARGET_ARM',
12 [ 'target_arch == "arm64"', {
13 'target_define': 'TARGET_ARM64',
19 'target_name': 'lib_relocation_packer',
21 'type': 'static_library',
26 '../../third_party/elfutils/elfutils.gyp:libelf',
33 'src/run_length_encoder.cc',
37 'target_name': 'relocation_packer',
44 '../../third_party/elfutils/elfutils.gyp:libelf',
45 'lib_relocation_packer',
52 'target_name': 'relocation_packer_unittests',
59 '-DINTERMEDIATE_DIR="<(INTERMEDIATE_DIR)"',
62 '../../testing/gtest.gyp:gtest',
63 'lib_relocation_packer',
69 'src/debug_unittest.cc',
70 'src/elf_file_unittest.cc',
71 'src/leb128_unittest.cc',
72 'src/packer_unittest.cc',
73 'src/run_length_encoder_unittest.cc',
74 'src/run_all_unittests.cc',
78 'destination': '<(INTERMEDIATE_DIR)',
80 'test_data/elf_file_unittest_relocs.so',
81 'test_data/elf_file_unittest_relocs_packed.so',