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

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

Issue 2064173002: Revert of 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: 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")
7 import("//mojo/public/tools/bindings/mojom.gni") 6 import("//mojo/public/tools/bindings/mojom.gni")
8 import("//testing/test.gni") 7 import("//testing/test.gni")
9 8
10 gypi_values = exec_script("//build/gypi_to_gn.py", 9 gypi_values = exec_script("//build/gypi_to_gn.py",
11 [ rebase_path("media_router.gypi") ], 10 [ rebase_path("media_router.gypi") ],
12 "scope", 11 "scope",
13 [ "media_router.gypi" ]) 12 [ "media_router.gypi" ])
14 13
15 static_library("router") { 14 static_library("router") {
16 deps = [ 15 deps = [
17 "//base", 16 "//base",
18 "//chrome/common:constants", 17 "//chrome/common:constants",
19 "//components/keyed_service/content", 18 "//components/keyed_service/content",
20 "//components/keyed_service/core", 19 "//components/keyed_service/core",
21 "//content/public/browser", 20 "//content/public/browser",
22 "//url", 21 "//url",
23 ] 22 ]
24 sources = rebase_path(gypi_values.media_router_sources, 23 sources = rebase_path(gypi_values.media_router_sources,
25 ".", 24 ".",
26 "//chrome/browser/media/router") 25 "//chrome/browser/media/router")
27 if (!is_android) { 26 if (!is_android) {
28 deps += [ 27 deps += [
29 ":mojo_bindings", 28 ":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 }
35 sources += rebase_path(gypi_values.media_router_non_android_sources, 32 sources += rebase_path(gypi_values.media_router_non_android_sources,
36 ".", 33 ".",
37 "//chrome/browser/media/router") 34 "//chrome/browser/media/router")
38 } 35 }
39 } 36 }
40 37
41 mojom("mojo_bindings") { 38 mojom("mojo_bindings") {
42 sources = [ 39 sources = [
43 "mojo/media_router.mojom", 40 "mojo/media_router.mojom",
44 ] 41 ]
45 } 42 }
46 43
47 source_set("test_support") { 44 source_set("test_support") {
48 testonly = true 45 testonly = true
49 deps = [ 46 deps = [
50 ":router", 47 ":router",
51 "//chrome/test:test_support", 48 "//chrome/test:test_support",
52 "//testing/gmock", 49 "//testing/gmock",
53 ] 50 ]
54 sources = rebase_path(gypi_values.media_router_test_support_sources, 51 sources = rebase_path(gypi_values.media_router_test_support_sources,
55 ".", 52 ".",
56 "//chrome/browser/media/router") 53 "//chrome/browser/media/router")
57 if (!is_android) { 54 if (!is_android) {
58 deps += [ ":mojo_bindings" ] 55 deps += [
59 if (enable_extensions) { 56 ":mojo_bindings",
60 deps += [ "//extensions/common" ] 57 "//extensions/common",
61 } 58 ]
62 sources += 59 sources +=
63 rebase_path(gypi_values.media_router_non_android_test_support_sources, 60 rebase_path(gypi_values.media_router_non_android_test_support_sources,
64 ".", 61 ".",
65 "//chrome/browser/media/router") 62 "//chrome/browser/media/router")
66 } 63 }
67 } 64 }
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