ninja/mac: Add more support for signing iOS binaries with ninja builds.

Support CODE_SIGN_RESOURCE_RULES_PATH, CODE_SIGN_ENTITLEMENTS
and PROVISIONING_PROFILE in xcode_emulation.py.

Code signing steps are:
1. copy ResourceRules.plist into binary bundle
2. determine best mobile provisioning profile from the binary bundle
   identifier (from Info.plist), and copy into binary bundle
3. create entitlement file based on template and provisioning profile
4. sign the code using the entitlements and resource rules files

Patch by Sylvain Defresne <sdefresne@chromium.org>

https://code.google.com/p/gyp/issues/detail?id=378
BUG=236517
R=thakis@chromium.org

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

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

Designed to create projects for IDEs like kdevelop, qtcreator, code::blocks, or eclipse cdt.

Generated CMakeLists.txt can also be used to build (currently limited to *nix).

Requires CMake 2.8.8 or later. With patch set 9 (which builds CMake 2.8.8 on the bot) passes tests on the bots.

R=thakis@chromium.org

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

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