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

11 Коммитов

Автор SHA1 Сообщение Дата
xiyuan@chromium.org 480370f483 non_compiled_schema_files should trigger genapi_bundle.
Changes in non_compiled_schema_files should trigger genapi_bundle action
as well.

BUG=
R=kalman@chromium.org, miket@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@232781 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-04 20:31:29 +00:00
Hokein.Wu@gmail.com d5e7d11dc0 Allow to disable API schema(JSON and IDL) to generate model code.
BUG=294203
TEST=compiled

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@230478 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-23 18:40:12 +00:00
MHX348@motorola.com 35e2679e15 generated_api.h should have its body generated into generated_api.cc
BUG=172050


Review URL: https://chromiumcodereview.appspot.com/12181005

git-svn-id: http://src.chromium.org/svn/trunk/src/build@181848 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-02-12 04:45:41 +00:00
sashab@chromium.org 61ebe5c536 Initial commit of the Dart Chrome Extension APIs generators
Modified json_schema_compiler to allow a -l option to specify the language.
Also allowed for a -H option to specify a hooks file, which is currently only
supported for Dart.


Review URL: https://chromiumcodereview.appspot.com/12041098

git-svn-id: http://src.chromium.org/svn/trunk/src/build@180845 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-02-06 01:29:31 +00:00
kalman@chromium.org 9e7bf40759 Run the JSON Schema Compiler's bundle compilation on JSON files. Previously it
was only run on IDL files. Clean up all the code which that simplifies.

TBR=isherman@chromium.org,battre@chromium.org,akalin@chromium.org
BUG=141318

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176015

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@176236 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-01-11 02:10:11 +00:00
ricow@chromium.org df54c3a32a Revert revision 176015
This is a manual revert, drover did not like the deleted files

> Run the JSON Schema Compiler's bundle compilation on JSON files. Previously it
> was only run on IDL files. Clean up all the code which that simplifies.
>
> TBR=isherman@chromium.org,battre@chromium.org,akalin@chromium.org
> BUG=141318
>
> Review URL: https://chromiumcodereview.appspot.com/11747025

TBR=isherman@chromium.org,battre@chromium.org,akalin@chromium.org
Review URL: https://codereview.chromium.org/11778097

git-svn-id: http://src.chromium.org/svn/trunk/src/build@176054 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-01-10 12:19:33 +00:00
ricow@chromium.org 3a7822b8a4 Revert 176047
> Revert 176015
> > Run the JSON Schema Compiler's bundle compilation on JSON files. Previously it
> > was only run on IDL files. Clean up all the code which that simplifies.
> > 
> > TBR=isherman@chromium.org,battre@chromium.org,akalin@chromium.org
> > BUG=141318
> > 
> > Review URL: https://chromiumcodereview.appspot.com/11747025
> 
> This seems to be causing complation failures on release win builders:
> http://chromegw/i/chromium.chrome/builders/Google%20Chrome%20Win/builds/15702
> 
> TBR=kalman@chromium.org
> Review URL: https://codereview.chromium.org/11826048

Drover messed up this revert, reverting it

TBR=ricow@chromium.org
Review URL: https://codereview.chromium.org/11778096

git-svn-id: http://src.chromium.org/svn/trunk/src/build@176051 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-01-10 11:14:37 +00:00
ricow@chromium.org c1d02285aa Revert 176015
> Run the JSON Schema Compiler's bundle compilation on JSON files. Previously it
> was only run on IDL files. Clean up all the code which that simplifies.
> 
> TBR=isherman@chromium.org,battre@chromium.org,akalin@chromium.org
> BUG=141318
> 
> Review URL: https://chromiumcodereview.appspot.com/11747025

This seems to be causing complation failures on release win builders:
http://chromegw/i/chromium.chrome/builders/Google%20Chrome%20Win/builds/15702

TBR=kalman@chromium.org
Review URL: https://codereview.chromium.org/11826048

git-svn-id: http://src.chromium.org/svn/trunk/src/build@176047 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-01-10 10:36:38 +00:00
kalman@chromium.org cdff61818b Run the JSON Schema Compiler's bundle compilation on JSON files. Previously it
was only run on IDL files. Clean up all the code which that simplifies.

TBR=isherman@chromium.org,battre@chromium.org,akalin@chromium.org
BUG=141318

Review URL: https://chromiumcodereview.appspot.com/11747025

git-svn-id: http://src.chromium.org/svn/trunk/src/build@176015 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-01-10 04:05:55 +00:00
asargent@chromium.org fc794d97d2 Remove dependence on .json files for IDL-specified extensions/apps APIs
This is an incremental step towards fully IDL-specified API bindings. This
patch adds code which generates JSON based on IDL for the purpose of exposing
bindings to javascript.

BUG=119137
TEST=Code should compile and existing tests should pass.


Review URL: http://codereview.chromium.org/9774001

git-svn-id: http://src.chromium.org/svn/trunk/src/build@127908 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-03-21 05:40:14 +00:00
miket@chromium.org 24c7372066 Reapply 127159 (http://codereview.chromium.org/9666059) plus important fixes.
Refactor extension_function_dispatcher to extract ExtensionFunctionRegistry.
This allows us to generate an additional code block that takes an ExtensionFunctionRegistry
and asks it to register generated API functions.

Then switch DnsResolve over to get registered this way.

Along the way, notice that DNSResolve is capitalized using an untenable style. Fix that.

Fixes since original 127159:

  - change name of build rule to gen_bundle_api
  - actually add per-file dependencies to .gyp (this was why clean builds
    failed)
  - change 'outputs' to match the emitted filename, fixing a needless
    rebuild problem.
  - split the top-level build action that was a part of
    json_schema_compile.gypi, and include it only in api.gyp, thus fixing
    the problem where json_schema_compiler_tests.gyp was asking it to create
    outputs in the tools/json_schema_compiler_test directory, again causing
    needless work during the build process.

BUG=none (essential plumbing work)
TEST=same as before.

Review URL: https://chromiumcodereview.appspot.com/9716003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@127555 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-03-19 22:24:35 +00:00