Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Unified Diff: ppapi/native_client/native_client.gyp

Issue 8539039: Fix size regression due to missing strip. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/strip_nacl_irt.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/native_client/native_client.gyp
===================================================================
--- ppapi/native_client/native_client.gyp (revision 109756)
+++ ppapi/native_client/native_client.gyp (working copy)
@@ -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'
+ ],
+ },
+ ],
+ }],
+ ],
+ },
],
}],
],
« no previous file with comments | « chrome/strip_nacl_irt.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698