Index: tools/relocation_packer/relocation_packer.gyp |
diff --git a/tools/relocation_packer/relocation_packer.gyp b/tools/relocation_packer/relocation_packer.gyp |
index 4642a27c2238500a5aa98ea3ccd7a56ada2783cf..893cc4a7063fd8bc4bb6b57c72ab21753cef4cbc 100644 |
--- a/tools/relocation_packer/relocation_packer.gyp |
+++ b/tools/relocation_packer/relocation_packer.gyp |
@@ -3,11 +3,25 @@ |
# found in the LICENSE file. |
{ |
+ 'variables': { |
+ 'target_define%': 'TARGET_UNSUPPORTED', |
+ 'conditions': [ |
+ [ 'target_arch == "arm"', { |
+ 'target_define': 'TARGET_ARM', |
+ }], |
+ [ 'target_arch == "arm64"', { |
+ 'target_define': 'TARGET_ARM64', |
+ }], |
+ ], |
+ }, |
'targets': [ |
{ |
'target_name': 'lib_relocation_packer', |
'toolsets': ['host'], |
'type': 'static_library', |
+ 'defines': [ |
+ '<(target_define)', |
+ ], |
'dependencies': [ |
'../../third_party/elfutils/elfutils.gyp:libelf', |
], |
@@ -23,6 +37,9 @@ |
'target_name': 'relocation_packer', |
'toolsets': ['host'], |
'type': 'executable', |
+ 'defines': [ |
+ '<(target_define)', |
+ ], |
'dependencies': [ |
'../../third_party/elfutils/elfutils.gyp:libelf', |
'lib_relocation_packer', |
@@ -35,6 +52,9 @@ |
'target_name': 'relocation_packer_unittests', |
'toolsets': ['host'], |
'type': 'executable', |
+ 'defines': [ |
+ '<(target_define)', |
+ ], |
'cflags': [ |
'-DINTERMEDIATE_DIR="<(INTERMEDIATE_DIR)"', |
], |