Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 601b301

Browse files
author
Fraser J. Gordon
committed
Capture the values of $OBJCOPY,$OBJDUMP,$STRIP at configure time
1 parent d647ddc commit 601b301

3 files changed

Lines changed: 19 additions & 0 deletions

File tree

config/android.gypi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
'java_classpath': '<(android_sdk_path)/platforms/<(android_platform)/android.jar',
2323

2424
'output_dir': '../android-<(target_arch)-bin',
25+
26+
# Capture the values of some build tool environment vars
27+
'objcopy': '<!(echo ${OBJCOPY:-objcopy})',
28+
'objdump': '<!(echo ${OBJDUMP:-objdump})',
29+
'strip': '<!(echo ${STRIP:strip})',
2530
},
2631

2732
'target_defaults':

config/debug_syms.gypi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
],
1313

1414
'extract-debug-symbols_path': '../tools/extract-debug-symbols.sh',
15+
16+
# These tools are only used for Linux and Android targets
17+
'objcopy%': '',
18+
'objdump%': '',
19+
'strip%': '',
1520
},
1621

1722
'actions':
@@ -33,6 +38,10 @@
3338

3439
'action':
3540
[
41+
'env',
42+
'OBJCOPY=<(objcopy)',
43+
'OBJDUMP=<(objdump)',
44+
'STRIP=<(strip)',
3645
'<(extract-debug-symbols_path)',
3746
'<(OS)',
3847
'>(debug_info_suffix)',

config/linux.gypi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
'variables':
33
{
44
'output_dir': '../linux-<(target_arch)-bin',
5+
6+
# Capture the values of some build tool environment vars
7+
'objcopy': '<!(echo ${OBJCOPY:-objcopy})',
8+
'objdump': '<!(echo ${OBJDUMP:-objdump})',
9+
'strip': '<!(echo ${STRIP:strip})',
510
},
611

712
'target_defaults':

0 commit comments

Comments
 (0)