Only grant permissions to new extensions from sync if they have the expected version
[chromium-blink-merge.git] / chrome / browser / media / router / media_router.gyp
blob186c74977698c79d53fb038488dbb0969e1fc7d1
1 # Copyright 2015 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   'includes': [
7     'media_router.gypi',
8   ],
9   'targets': [
10     {
11       # GN version: //chrome/browser/media/router:router
12       'target_name': 'media_router',
13       'type': 'static_library',
14       'include_dirs': [
15         '<(DEPTH)',
16       ],
17       'dependencies': [
18         '<(DEPTH)/base/base.gyp:base',
19         '<(DEPTH)/chrome/common_constants.gyp:common_constants',
20         '<(DEPTH)/components/components.gyp:keyed_service_content',
21         '<(DEPTH)/components/components.gyp:keyed_service_core',
22         '<(DEPTH)/skia/skia.gyp:skia',
23         '<(DEPTH)/url/url.gyp:url_lib',
24       ],
25       'sources': [
26         '<@(media_router_sources)',
27       ],
28       'conditions': [
29         [ 'OS!="android" and OS!="ios"', {
30           'include_dirs': [
31             '<(DEPTH)/third_party/mojo/src',
32           ],
33           'dependencies': [
34             # media_router_type_converters.h needs the generated file.
35             'media_router_mojo_gen',
36             'media_router_mojo',
37             '<(DEPTH)/extensions/extensions.gyp:extensions_browser',
38           ],
39           'sources': [
40             '<@(media_router_non_android_sources)',
41           ]
42         }],
43       ]     
44     },
45     {
46       # Mojo compiler for the Media Router internal API.
47       'target_name': 'media_router_mojo_gen',
48       'type': 'none',
49       'sources': [
50         'media_router.mojom',
51       ],
52       'includes': [
53         '../../../../third_party/mojo/mojom_bindings_generator.gypi',
54       ],
55     },
56     {
57       'target_name': 'media_router_mojo',
58       'type': 'static_library',
59       'include_dirs': [
60         '<(DEPTH)/third_party/mojo/src',
61       ],
62       'dependencies': [
63         'media_router_mojo_gen',
64       ],
65       'sources': [
66         '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/media/router/media_router.mojom.cc',
67         '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/media/router/media_router.mojom.h',
68       ],
69     },
70     {
71       # GN version: //chrome/browser/media/router:test_support
72       'target_name': 'media_router_test_support',
73       'type': 'static_library',
74       'include_dirs': [
75         '<(DEPTH)',
76         '<(DEPTH)/third_party/mojo/src',
77       ],
78       'dependencies': [
79         'media_router',
80         'media_router_mojo',
81         'media_router_mojo_gen',
82         '<(DEPTH)/base/base.gyp:base',
83         '<(DEPTH)/testing/gmock.gyp:gmock',
84       ],
85       'sources': [
86         '<@(media_router_test_support_sources)',
87       ],
88     },
89   ],