Граф коммитов

3 Коммитов

Автор SHA1 Сообщение Дата
brettw@chromium.org b2afaaf8b3 Start work on GN build for content/common
Add a skeleton build file for content/common that lists the basic deps, and processes the sources. This can keep track of the deps that have been converted and allows easy testing of the .gypi reading.

Changes content_common.gypi to separate out the public and private sources. The .gypi combines them both into the 'sources' so current users of this file should not be affected. This allows the GN build to declare the public API.

Enhance the gypi-to-gn script to strip conditions and collapse variables to allow the content .gypis to be read in.

Adds some simple BUILD.gn files for dependencies of content/common

Fix typo in accessibility.gyp that I discovered when writing the GN build.

R=jam@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@271767 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-20 21:52:34 +00:00
brettw@chromium.org 52c079373f Add support for substring replacement in gypi_to_gn
Use substring replacement in skia source file list, and update the skia BUILD.gn file accordingly. The .gn file gets a bit simpler now: we can do the substring replacement to make absolute paths rather than doing rebase for all the files.

R=djsollen@google.com, dpranke@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263272 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-11 17:23:40 +00:00
brettw@chromium.org 3e4f5863a7 Add support for reading .gypi files.
Adds support for a new value type, a dictionary. To script it looks the same as a scope, but the existing scope didn't have the right memory management semantics for this.

Adds a new input conversion mode to interpret the result of a script as a GN block (basically an eval) and get the result in a dictionary. This allows returning named sets of things from a script. Updates the accessor and defined stuff to work with this new type.

Adds some features to the input file manager so that when we do dynamic reading from a script we keep the text of the read around which means we can give proper errors that refer to the script output, and don't have to do the weird recursive set origin thing to clear out the pointers that became invalid when the InputFile went out of scope.

This allows us to give better error messages when parsing input. The error handling in the input conversion code is changed accordingly.

Checks for unused variables both in code that instantiates a template, and in the template code itself.

Adds a shared python script for outputting values from Python to GN.

Adds a python script to read .gypi files and return the value as a GN scope.

BUG=
R=dpranke@chromium.org, scottmg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@262045 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-06 04:35:10 +00:00