Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/json_schema_api.gni") | |
| 6 import("//extensions/common/api/schema.gni") | |
| 7 | |
| 5 source_set("api") { | 8 source_set("api") { |
| 6 sources = [ | 9 sources = [ |
| 7 "api_resource.cc", | 10 "api_resource.cc", |
| 8 "api_resource.h", | 11 "api_resource.h", |
| 9 "api_resource_manager.h", | 12 "api_resource_manager.h", |
| 10 "async_api_function.cc", | 13 "async_api_function.cc", |
| 11 "async_api_function.h", | 14 "async_api_function.h", |
| 12 "device_permissions_manager.cc", | 15 "device_permissions_manager.cc", |
| 13 "device_permissions_manager.h", | 16 "device_permissions_manager.h", |
| 14 "device_permissions_prompt.cc", | 17 "device_permissions_prompt.cc", |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 68 "//extensions/browser/api/system_storage", | 71 "//extensions/browser/api/system_storage", |
| 69 "//extensions/browser/api/test", | 72 "//extensions/browser/api/test", |
| 70 "//extensions/browser/api/usb", | 73 "//extensions/browser/api/usb", |
| 71 "//extensions/browser/api/virtual_keyboard_private", | 74 "//extensions/browser/api/virtual_keyboard_private", |
| 72 "//extensions/browser/api/web_request", | 75 "//extensions/browser/api/web_request", |
| 73 ] | 76 ] |
| 74 | 77 |
| 75 deps = [ | 78 deps = [ |
| 76 "//base:i18n", | 79 "//base:i18n", |
| 77 "//content/public/browser", | 80 "//content/public/browser", |
| 81 "//extensions/strings", | |
| 78 ] | 82 ] |
| 79 | 83 |
| 80 if (is_chromeos) { | 84 if (is_chromeos) { |
| 81 public_deps += [ | 85 public_deps += [ |
| 82 "//extensions/browser/api/diagnostics", | 86 "//extensions/browser/api/diagnostics", |
| 83 "//extensions/browser/api/networking_config", | 87 "//extensions/browser/api/networking_config", |
| 84 "//extensions/browser/api/vpn_provider", | 88 "//extensions/browser/api/vpn_provider", |
| 85 "//extensions/browser/api/webcam_private", | 89 "//extensions/browser/api/webcam_private", |
| 86 ] | 90 ] |
| 87 } | 91 } |
| 88 } | 92 } |
| 93 | |
| 94 json_schema_api("api_registration") { | |
| 95 sources = | |
| 96 rebase_path(extensions_api_schema_files, ".", "//extensions/common/api") | |
|
Devlin
2016/10/27 16:00:59
Can we assert() some of these as a sanity check?
Dirk Pranke
2016/10/27 21:28:44
What would you be asserting?
| |
| 97 impl_dir = "//extensions/browser/api" | |
| 98 bundle_registration = true | |
| 99 bundle_name = "" | |
| 100 root_namespace = extensions_api_root_namespace | |
| 101 uncompiled_sources = rebase_path(extensions_api_uncompiled_sources, | |
| 102 ".", | |
| 103 "//extensions/common/api") | |
|
Devlin
2016/10/27 16:00:59
gn accepts fully qualified paths (e.g. //extension
Dirk Pranke
2016/10/27 21:28:44
Use get_path_info(extension_api_schema_files, "abs
| |
| 104 | |
| 105 deps = [ | |
| 106 ":api", | |
| 107 "//device/serial", | |
| 108 "//extensions/common/api", | |
| 109 "//extensions/common/api/cast_channel:cast_channel_proto", | |
| 110 "//skia", | |
| 111 ] | |
| 112 } | |
| OLD | NEW |