summaryrefslogtreecommitdiffstats
path: root/ppapi
diff options
context:
space:
mode:
authornoelallen@google.com <noelallen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-12 03:52:17 +0000
committernoelallen@google.com <noelallen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-12 03:52:17 +0000
commitc364eb3d0693dcd38b0ef043dcccbb36d5547ee5 (patch)
tree4a6e88256ba43089de6e4a13d8d856a986145a25 /ppapi
parent27a2aae746ee0b24f6a04973f40d38f5ba0b8f5a (diff)
downloadchromium_src-c364eb3d0693dcd38b0ef043dcccbb36d5547ee5.zip
chromium_src-c364eb3d0693dcd38b0ef043dcccbb36d5547ee5.tar.gz
chromium_src-c364eb3d0693dcd38b0ef043dcccbb36d5547ee5.tar.bz2
Fix size regression due to missing strip.
Add a strip script based on the old build_nacl_irt.py (just keep strip piece) Rename nacl_irt target to nacl_irt_unstripped and add a new target called nacl_irt which strips the previous target. NOTE: Resubmit of http://codereview.chromium.org/8539039/ which broke 32 bit due to a missing comma in the gyp file. Review URL: http://codereview.chromium.org/8537031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109771 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r--ppapi/native_client/native_client.gyp67
1 files changed, 64 insertions, 3 deletions
diff --git a/ppapi/native_client/native_client.gyp b/ppapi/native_client/native_client.gyp
index ab31742..d223d05 100644
--- a/ppapi/native_client/native_client.gyp
+++ b/ppapi/native_client/native_client.gyp
@@ -32,12 +32,12 @@
],
},
{
- 'target_name': 'nacl_irt',
+ 'target_name': 'nacl_irt_unstripped',
'type': 'none',
'variables': {
'nexe_target': 'nacl_irt',
- 'out64': '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe',
- 'out32': '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe',
+ 'out64': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/nacl_irt_x86_64.nexe',
+ 'out32': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/nacl_irt_x86_32.nexe',
'build_glibc': 0,
'build_newlib': 1,
'include_dirs': [
@@ -84,6 +84,67 @@
'../../native_client/src/shared/gio/gio.gyp:gio_lib',
],
},
+ {
+ 'target_name': 'nacl_irt',
+ 'type': 'none',
+ 'dependencies': [
+ 'nacl_irt_unstripped',
+ ],
+ 'conditions': [
+ ['target_arch=="ia32"', {
+ 'actions': [
+ {
+ 'action_name': 'strip x86-32 irt',
+ 'msvs_cygwin_shell': 0,
+ 'description': 'Strip x86-32 nacl_irt)',
+ 'inputs': [
+ '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/nacl_irt_x86_32.nexe',
+ '../../chrome/strip_nacl_irt.py',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe',
+ ],
+ 'action': [
+ '>(python_exe)',
+ '../../chrome/strip_nacl_irt.py',
+ '--platform',
+ 'x86-32',
+ '--src',
+ '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/nacl_irt_x86_32.nexe',
+ '--dst',
+ '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe',
+ ],
+ },
+ ],
+ }],
+ ['target_arch=="x64" or OS=="win"', {
+ 'actions': [
+ {
+ 'action_name': 'strip x86-64 irt',
+ 'msvs_cygwin_shell': 0,
+ 'description': 'Strip x86-64 nacl_irt)',
+ 'inputs': [
+ '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/nacl_irt_x86_64.nexe',
+ '../../chrome/strip_nacl_irt.py',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe',
+ ],
+ 'action': [
+ '>(python_exe)',
+ '../../chrome/strip_nacl_irt.py',
+ '--platform',
+ 'x86-64',
+ '--src',
+ '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/nacl_irt_x86_64.nexe',
+ '--dst',
+ '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe',
+ ],
+ },
+ ],
+ }],
+ ],
+ },
],
}],
],