OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 import("//tools/grit/grit_rule.gni") | 5 import("//tools/grit/grit_rule.gni") |
6 import("//tools/grit/repack.gni") | 6 import("//tools/grit/repack.gni") |
7 | 7 |
8 # GYP version: extensions/extensions_resources.gyp:extensions_resources | 8 # GYP version: extensions/extensions_resources.gyp:extensions_resources |
9 group("extensions_resources") { | 9 group("extensions_resources") { |
10 deps = [ | 10 deps = [ |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 # GYP version: extensions/extensions_resources.gyp:extensions_resources | 41 # GYP version: extensions/extensions_resources.gyp:extensions_resources |
42 # (extensions_renderer_resources action) | 42 # (extensions_renderer_resources action) |
43 grit("extensions_renderer_resources") { | 43 grit("extensions_renderer_resources") { |
44 source = "renderer/resources/extensions_renderer_resources.grd" | 44 source = "renderer/resources/extensions_renderer_resources.grd" |
45 outputs = [ | 45 outputs = [ |
46 "grit/extensions_renderer_resources.h", | 46 "grit/extensions_renderer_resources.h", |
47 "extensions_renderer_resources.pak", | 47 "extensions_renderer_resources.pak", |
48 ] | 48 ] |
49 grit_flags = [ "-E", "mojom_root=" + rebase_path(root_gen_dir) ] | 49 grit_flags = [ "-E", "mojom_root=" + rebase_path(root_gen_dir) ] |
50 if (enable_extensions) { | 50 |
51 deps = [ | 51 # TODO(GYP,cjhopman): GYP has this dependency guarded by enable_extensions==1, |
52 "//device/serial:serial_mojo", | 52 # but I don't know how that possibly works. |
53 ] | 53 deps = [ |
54 } | 54 "//device/serial:serial_mojo", |
| 55 ] |
55 } | 56 } |
56 | 57 |
| 58 if (enable_extensions) { |
| 59 |
57 source_set("test_support") { | 60 source_set("test_support") { |
58 testonly = true | 61 testonly = true |
59 sources = [ | 62 sources = [ |
60 "browser/api/dns/mock_host_resolver_creator.cc", | 63 "browser/api/dns/mock_host_resolver_creator.cc", |
61 "browser/api/dns/mock_host_resolver_creator.h", | 64 "browser/api/dns/mock_host_resolver_creator.h", |
62 "browser/api/storage/settings_test_util.cc", | 65 "browser/api/storage/settings_test_util.cc", |
63 "browser/api/storage/settings_test_util.h", | 66 "browser/api/storage/settings_test_util.h", |
64 "browser/api_test_utils.cc", | 67 "browser/api_test_utils.cc", |
65 "browser/api_test_utils.h", | 68 "browser/api_test_utils.h", |
66 "browser/extensions_test.cc", | 69 "browser/extensions_test.cc", |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 "//third_party/leveldatabase", | 260 "//third_party/leveldatabase", |
258 ] | 261 ] |
259 | 262 |
260 if (is_win) { | 263 if (is_win) { |
261 deps += [ | 264 deps += [ |
262 "//base/allocator", | 265 "//base/allocator", |
263 ] | 266 ] |
264 } | 267 } |
265 } | 268 } |
266 } | 269 } |
| 270 |
| 271 } |
OLD | NEW |