OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 { | 5 { |
6 'includes': [ | 6 'includes': [ |
7 'media_router.gypi', | 7 'media_router.gypi', |
8 ], | 8 ], |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
11 # GN version: //chrome/browser/media/router:router | 11 # GN version: //chrome/browser/media/router:router |
12 'target_name': 'media_router', | 12 'target_name': 'media_router', |
13 'type': 'static_library', | 13 'type': 'static_library', |
14 'include_dirs': [ | 14 'include_dirs': [ |
15 '<(DEPTH)', | 15 '<(DEPTH)', |
16 '<(DEPTH)/third_party/mojo/src', | |
17 ], | 16 ], |
18 'dependencies': [ | 17 'dependencies': [ |
19 # media_router_type_converters.h needs the generated file. | |
20 'media_router_mojo_gen', | |
21 'media_router_mojo', | |
22 '<(DEPTH)/base/base.gyp:base', | 18 '<(DEPTH)/base/base.gyp:base', |
23 '<(DEPTH)/chrome/common_constants.gyp:common_constants', | 19 '<(DEPTH)/chrome/common_constants.gyp:common_constants', |
24 '<(DEPTH)/components/components.gyp:keyed_service_content', | 20 '<(DEPTH)/components/components.gyp:keyed_service_content', |
25 '<(DEPTH)/components/components.gyp:keyed_service_core', | 21 '<(DEPTH)/components/components.gyp:keyed_service_core', |
26 '<(DEPTH)/extensions/extensions.gyp:extensions_browser', | |
27 '<(DEPTH)/skia/skia.gyp:skia', | 22 '<(DEPTH)/skia/skia.gyp:skia', |
28 '<(DEPTH)/url/url.gyp:url_lib', | 23 '<(DEPTH)/url/url.gyp:url_lib', |
29 ], | 24 ], |
30 'sources': [ | 25 'sources': [ |
31 '<@(media_router_sources)', | 26 '<@(media_router_sources)', |
32 ], | 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 ] |
33 }, | 44 }, |
34 { | 45 { |
35 # Mojo compiler for the Media Router internal API. | 46 # Mojo compiler for the Media Router internal API. |
36 'target_name': 'media_router_mojo_gen', | 47 'target_name': 'media_router_mojo_gen', |
37 'type': 'none', | 48 'type': 'none', |
38 'sources': [ | 49 'sources': [ |
39 'media_router.mojom', | 50 'media_router.mojom', |
40 ], | 51 ], |
41 'includes': [ | 52 'includes': [ |
42 '../../../../third_party/mojo/mojom_bindings_generator.gypi', | 53 '../../../../third_party/mojo/mojom_bindings_generator.gypi', |
(...skipping 27 matching lines...) Expand all Loading... |
70 'media_router_mojo_gen', | 81 'media_router_mojo_gen', |
71 '<(DEPTH)/base/base.gyp:base', | 82 '<(DEPTH)/base/base.gyp:base', |
72 '<(DEPTH)/testing/gmock.gyp:gmock', | 83 '<(DEPTH)/testing/gmock.gyp:gmock', |
73 ], | 84 ], |
74 'sources': [ | 85 'sources': [ |
75 '<@(media_router_test_support_sources)', | 86 '<@(media_router_test_support_sources)', |
76 ], | 87 ], |
77 }, | 88 }, |
78 ], | 89 ], |
79 } | 90 } |
OLD | NEW |