android: fix permissions on file copies.

Use cp -rpf instead of cp -r to copy files. This brings it more in line
with make and ninja which use cp -af ($(ACP) has no -a flag so we use
-rp instead). Re-enable the test that was failing because of this
difference.

BUG=gyp:379
R=thakis@chromium.org

Review URL: https://codereview.chromium.org/61833013

git-svn-id: http://gyp.googlecode.com/svn/trunk@1783 78cadc50-ecff-11dd-a971-7dbc132099af
win: x86 targets XP subsystem

The default in the VS2013 compiler has been switched to Vista+,
however the runtime library still supports XP if the PE header
is set properly. So, make sure the subsystem is set to 5.01 so
that gyp-built binaries can be run on XP.

R=thakis@chromium.org
BUG=chromium:297971

Review URL: https://codereview.chromium.org/68533011

git-svn-id: http://gyp.googlecode.com/svn/trunk@1784 78cadc50-ecff-11dd-a971-7dbc132099af
win: Add support for TargetMachine in VCLibrarianTool section

remoting_host_event_logger.lib was built from one .rc file and one .cc.
If unspecified, lib.exe appears to choose the architecture from the
first input file. As a compiled .res doesn't have an architecture, it
bailed and selected X64 (because the 2013 lib.exe is x64 host, I guess).
Resulting in:

FAILED: E:\b\depot_tools\python_bin\python.exe gyp-win-tool link-wrapper environment.x86 lib.exe /nologo /ignore:4221 /OUT:obj\remoting\remoting_host_event_logger.lib @obj\remoting\remoting_host_event_logger.lib.rsp
LINK : warning LNK4068: /MACHINE not specified; defaulting to X64

obj\remoting\host\remoting_host_event_logger.host_event_logger_win.obj : fatalerror LNK1112: module machine type 'X86' conflicts with target machine type 'x64'

VCLibrarianTool supports TargetMachine the same as VCLinkerTool, but
we'd never used it before. Add support to the ninja/msvs generator,
and add a test for it.

R=thakis@chromium.org
BUG=309197

Review URL: https://codereview.chromium.org/68133006

git-svn-id: http://gyp.googlecode.com/svn/trunk@1785 78cadc50-ecff-11dd-a971-7dbc132099af