chenriang / gyp

Automatically exported from code.google.com/p/gyp
0 stars 0 forks source link

single file copy #283

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

chromium's ui/ui.gyp use python to copy a file to another file.
 'copies' can be used here, because 'copies' to copy files to destination *directory*.

and it failed with winja.
it failed on winja

FAILED: C:\b\depot_tools\python_bin\python.exe gyp-win-tool action-wrapper 
environment.x86 
gfx_unittests_target_TEMP_copy_ui_unittests_5e98af8e03ffe5531793b89f0f943f4a..rs
p
bash: -c: line 0: syntax error near unexpected token `)'
bash: -c: line 0: `cd ../../ui ; 'python' '-c' 'import os, shutil; 
shutil.copyfile(\'../out/Release/ui_unittests.exe\', 
\'../out/Release/gfx_unittests.exe\'); 
os.chmod(\'../out/Release/gfx_unittests.exe\', 0700)''
ninja: build stopped: subcommand failed.

I think it would be better that gyp provides platform-independent way to copy a 
file.

Original issue reported on code.google.com by ukai@chromium.org on 13 Jul 2012 at 6:51

GoogleCodeExporter commented 9 years ago
oops. I meant 'copies' can not be used here.

Original comment by ukai@chromium.org on 13 Jul 2012 at 6:53