ninja/mac: Create -iphoneos device builds for iOS ninja generator.

For builds that have iOS targets, clone each configuration with an "-iphoneos"
that builds for armv7 ios devices. Gyp authors no longer need to set
target_arch=armv7, although that is still supported.

R=thakis@chromium.org

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



git-svn-id: http://gyp.googlecode.com/svn/trunk@1748 78cadc50-ecff-11dd-a971-7dbc132099af
Avoid MSB8012 on Windows

If using product extension only in build files, MSVS will complain that the
target extension does not match the product extension, MSB8012. Add gyp
support for specifying target extension to fix this warning.

Used for e.g. PyAuto/OpAuto .pyd files.

Patch from sigbjorn@opera.com.

R=scottmg@chromium.org

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

git-svn-id: http://gyp.googlecode.com/svn/trunk@1749 78cadc50-ecff-11dd-a971-7dbc132099af
reland r1743 with reverted test case

From https://codereview.chromium.org/24792003, it was identified that
the test case change broke on mac platforms for the xcode generator.
Since the xcode generator does not perform any translations for -l
prefixed names in 'libraries', using STATIC_LIB_(PRE|SUF)FIX is the best
course usage going forward at this time.

R=scottmg@chromium.org

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

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