diff options
author | mukai <mukai@chromium.org> | 2014-10-28 23:43:08 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-29 06:43:27 +0000 |
commit | a3cb1500751a53d2627a44ad8d54694870841285 (patch) | |
tree | 1dccaa0bc97dbcb540d2bca062eef2d73321aaad /extensions/shell/common | |
parent | 5ffbc9ec423da21f2df1ff73aa524eb78eb2eb7b (diff) | |
download | chromium_src-a3cb1500751a53d2627a44ad8d54694870841285.zip chromium_src-a3cb1500751a53d2627a44ad8d54694870841285.tar.gz chromium_src-a3cb1500751a53d2627a44ad8d54694870841285.tar.bz2 |
Allow building app_shell with GN.
BUG=424333
R=jamescook@chromium.org, rockot@chromium.org
TEST=manually
Review URL: https://codereview.chromium.org/676043005
Cr-Commit-Position: refs/heads/master@{#301798}
Diffstat (limited to 'extensions/shell/common')
-rw-r--r-- | extensions/shell/common/api/BUILD.gn | 20 | ||||
-rw-r--r-- | extensions/shell/common/api/api.gyp | 1 | ||||
-rw-r--r-- | extensions/shell/common/api/schemas.gni | 15 |
3 files changed, 36 insertions, 0 deletions
diff --git a/extensions/shell/common/api/BUILD.gn b/extensions/shell/common/api/BUILD.gn new file mode 100644 index 0000000..0e722f8 --- /dev/null +++ b/extensions/shell/common/api/BUILD.gn @@ -0,0 +1,20 @@ +# Copyright 2014 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//build/json_schema_api.gni") +import("schemas.gni") + +# GYP version: extensions/shell/common/api/api.gyp:shell_api +json_schema_api("api") { + schemas = true + bundle = true +} + +# GYP version: extensions/shell/browser/api/api_registration.gyp:shell_api_registration +json_schema_api("api_registration") { + impl_dir = "//extensions/shell/browser/api" + bundle_registration = true + + deps = [ ":api" ] +} diff --git a/extensions/shell/common/api/api.gyp b/extensions/shell/common/api/api.gyp index 3421f05..9445dbb 100644 --- a/extensions/shell/common/api/api.gyp +++ b/extensions/shell/common/api/api.gyp @@ -5,6 +5,7 @@ { 'targets': [ { + # GN version: //extensions/shell/common/api 'target_name': 'shell_api', 'type': 'static_library', # TODO(jschuh): http://crbug.com/167187 size_t -> int diff --git a/extensions/shell/common/api/schemas.gni b/extensions/shell/common/api/schemas.gni new file mode 100644 index 0000000..27dd0b8 --- /dev/null +++ b/extensions/shell/common/api/schemas.gni @@ -0,0 +1,15 @@ +# Copyright 2014 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +gypi_values = exec_script( + "//build/gypi_to_gn.py", + [ rebase_path("schemas.gypi") ], + "scope", + [ "schemas.gypi" ]) + +sources = gypi_values.schema_files + +uncompiled_sources = gypi_values.non_compiled_schema_files + +root_namespace = "extensions::shell::api::%(namespace)s" |