Roll src/third_party/WebKit b3f094a:f697bbd (svn 194310:194313)
[chromium-blink-merge.git] / extensions / common / api / api.gyp
blobea7e4c19530af830bd329e4943cb4d5d6e6096b4
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6   'targets': [
7     {
8       # GN version: //extensions/common/api:mojom
9       'target_name': 'extensions_api_mojom',
10       # The type of this target must be none. This is so that resources can
11       # depend upon this target for generating the js bindings files. Any
12       # generated cpp files must be listed explicitly in chrome_api.
13       'type': 'none',
14       'includes': [
15         '../../../third_party/mojo/mojom_bindings_generator.gypi',
16       ],
17       'sources': [
18         'mime_handler.mojom',
19       ],
20     },
21     {
22       # GN version: //extensions/common/api
23       'target_name': 'extensions_api',
24       'type': 'static_library',
25       # TODO(jschuh): http://crbug.com/167187 size_t -> int
26       'msvs_disabled_warnings': [ 4267 ],
27       'includes': [
28         '../../../build/json_schema_bundle_compile.gypi',
29         '../../../build/json_schema_compile.gypi',
30         'schemas.gypi',
31       ],
32       'dependencies': [
33         'extensions_api_mojom',
34         '../../../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
35       ],
36       'sources': [
37         '<(SHARED_INTERMEDIATE_DIR)/extensions/common/api/mime_handler.mojom.cc',
38         '<(SHARED_INTERMEDIATE_DIR)/extensions/common/api/mime_handler.mojom.h',
39       ],
40     },
41     {
42       # Protobuf compiler / generator for chrome.cast.channel-related protocol buffers.
43       # GN version: //extensions/browser/api/cast_channel:cast_channel_proto
44       'target_name': 'cast_channel_proto',
45       'type': 'static_library',
46       'sources': [
47           'cast_channel/authority_keys.proto',
48           'cast_channel/cast_channel.proto',
49           'cast_channel/logging.proto',
50       ],
51       'variables': {
52           'proto_in_dir': 'cast_channel',
53           'proto_out_dir': 'extensions/common/api/cast_channel',
54       },
55       'includes': [ '../../../build/protoc.gypi' ]
56     },
57   ],