Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(429)

Side by Side Diff: chrome/browser/media/router/BUILD.gn

Issue 1950003002: gn BUILD fixes for disabling enable_extensions and use_ash feature flags. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebasing on latest master Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/devtools/BUILD.gn ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import("//build/config/features.gni")
6 import("//mojo/public/tools/bindings/mojom.gni") 7 import("//mojo/public/tools/bindings/mojom.gni")
7 import("//testing/test.gni") 8 import("//testing/test.gni")
8 9
9 gypi_values = exec_script("//build/gypi_to_gn.py", 10 gypi_values = exec_script("//build/gypi_to_gn.py",
10 [ rebase_path("media_router.gypi") ], 11 [ rebase_path("media_router.gypi") ],
11 "scope", 12 "scope",
12 [ "media_router.gypi" ]) 13 [ "media_router.gypi" ])
13 14
14 static_library("router") { 15 static_library("router") {
15 deps = [ 16 deps = [
16 "//base", 17 "//base",
17 "//chrome/common:constants", 18 "//chrome/common:constants",
18 "//components/keyed_service/content", 19 "//components/keyed_service/content",
19 "//components/keyed_service/core", 20 "//components/keyed_service/core",
20 "//content/public/browser", 21 "//content/public/browser",
21 "//url", 22 "//url",
22 ] 23 ]
23 sources = rebase_path(gypi_values.media_router_sources, 24 sources = rebase_path(gypi_values.media_router_sources,
24 ".", 25 ".",
25 "//chrome/browser/media/router") 26 "//chrome/browser/media/router")
26 if (!is_android) { 27 if (!is_android) {
27 deps += [ 28 deps += [
28 ":mojo_bindings", 29 ":mojo_bindings",
29 "//extensions/browser",
30 "//mojo/public/cpp/bindings", 30 "//mojo/public/cpp/bindings",
31 ] 31 ]
32 if (enable_extensions) {
33 deps += [ "//extensions/browser" ]
34 }
32 sources += rebase_path(gypi_values.media_router_non_android_sources, 35 sources += rebase_path(gypi_values.media_router_non_android_sources,
33 ".", 36 ".",
34 "//chrome/browser/media/router") 37 "//chrome/browser/media/router")
35 } 38 }
36 } 39 }
37 40
38 mojom("mojo_bindings") { 41 mojom("mojo_bindings") {
39 sources = [ 42 sources = [
40 "mojo/media_router.mojom", 43 "mojo/media_router.mojom",
41 ] 44 ]
42 } 45 }
43 46
44 source_set("test_support") { 47 source_set("test_support") {
45 testonly = true 48 testonly = true
46 deps = [ 49 deps = [
47 ":router", 50 ":router",
48 "//chrome/test:test_support", 51 "//chrome/test:test_support",
49 "//testing/gmock", 52 "//testing/gmock",
50 ] 53 ]
51 sources = rebase_path(gypi_values.media_router_test_support_sources, 54 sources = rebase_path(gypi_values.media_router_test_support_sources,
52 ".", 55 ".",
53 "//chrome/browser/media/router") 56 "//chrome/browser/media/router")
54 if (!is_android) { 57 if (!is_android) {
55 deps += [ 58 deps += [ ":mojo_bindings" ]
56 ":mojo_bindings", 59 if (enable_extensions) {
57 "//extensions/common", 60 deps += [ "//extensions/common" ]
58 ] 61 }
59 sources += 62 sources +=
60 rebase_path(gypi_values.media_router_non_android_test_support_sources, 63 rebase_path(gypi_values.media_router_non_android_test_support_sources,
61 ".", 64 ".",
62 "//chrome/browser/media/router") 65 "//chrome/browser/media/router")
63 } 66 }
64 } 67 }
OLDNEW
« no previous file with comments | « chrome/browser/devtools/BUILD.gn ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698