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("//extensions/extensions.gni") | 5 import("//extensions/extensions.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 import("//tools/grit/grit_rule.gni") | 7 import("//tools/grit/grit_rule.gni") |
8 import("//tools/grit/repack.gni") | 8 import("//tools/grit/repack.gni") |
9 | 9 |
10 assert(enable_extensions) | 10 assert(enable_extensions) |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 "//extensions/common:mojo", | 63 "//extensions/common:mojo", |
64 "//extensions/common/api:mojom", | 64 "//extensions/common/api:mojom", |
65 ] | 65 ] |
66 } | 66 } |
67 | 67 |
68 source_set("test_support") { | 68 source_set("test_support") { |
69 testonly = true | 69 testonly = true |
70 sources = rebase_path(extensions_gypi_values.extensions_test_support_sources, | 70 sources = rebase_path(extensions_gypi_values.extensions_test_support_sources, |
71 ".", | 71 ".", |
72 "//extensions") | 72 "//extensions") |
| 73 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 74 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
73 | 75 |
74 deps = [ | 76 deps = [ |
75 ":extensions_resources", | 77 ":extensions_resources", |
76 "//base", | 78 "//base", |
77 "//base:prefs_test_support", | 79 "//base:prefs_test_support", |
78 "//content/public/common", | 80 "//content/public/common", |
79 "//content/test:test_support", | 81 "//content/test:test_support", |
80 "//extensions/browser", | 82 "//extensions/browser", |
81 "//extensions/common", | 83 "//extensions/common", |
82 "//extensions/common/api", | 84 "//extensions/common/api", |
83 "//extensions/common/api:api_registration", | 85 "//extensions/common/api:api_registration", |
84 "//net:test_support", | 86 "//net:test_support", |
85 "//testing/gmock", | 87 "//testing/gmock", |
86 "//testing/gtest", | 88 "//testing/gtest", |
87 ] | 89 ] |
88 | 90 |
89 public_deps = [ | 91 public_deps = [ |
90 "//content/public/browser", | 92 "//content/public/browser", |
91 "//extensions/common/api/cast_channel:cast_channel_proto", | 93 "//extensions/common/api/cast_channel:cast_channel_proto", |
92 ] | 94 ] |
93 | |
94 if (is_win) { | |
95 cflags = [ "/wd4267" ] # TODO(jschuh): crbug.com/167187 fix size_t to int t
runcations. | |
96 } | |
97 } | 95 } |
98 | 96 |
99 # GYP version: //extensions/extensions.gyp:extensions_shell_and_test_pak | 97 # GYP version: //extensions/extensions.gyp:extensions_shell_and_test_pak |
100 repack("shell_and_test_pak") { | 98 repack("shell_and_test_pak") { |
101 sources = [ | 99 sources = [ |
102 "$root_gen_dir/blink/public/resources/blink_resources.pak", | 100 "$root_gen_dir/blink/public/resources/blink_resources.pak", |
103 "$root_gen_dir/content/app/strings/content_strings_en-US.pak", | 101 "$root_gen_dir/content/app/strings/content_strings_en-US.pak", |
104 "$root_gen_dir/content/content_resources.pak", | 102 "$root_gen_dir/content/content_resources.pak", |
105 "$root_gen_dir/content/shell/shell_resources.pak", | 103 "$root_gen_dir/content/shell/shell_resources.pak", |
106 "$root_gen_dir/extensions/extensions_browser_resources_100_percent.pak", | 104 "$root_gen_dir/extensions/extensions_browser_resources_100_percent.pak", |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 ] | 213 ] |
216 | 214 |
217 if (is_win) { | 215 if (is_win) { |
218 deps += [ "//base/allocator" ] | 216 deps += [ "//base/allocator" ] |
219 } | 217 } |
220 | 218 |
221 if (is_mac) { | 219 if (is_mac) { |
222 deps += [ "shell:app_shell" ] # Needed for App Shell.app's Helper. | 220 deps += [ "shell:app_shell" ] # Needed for App Shell.app's Helper. |
223 } | 221 } |
224 } | 222 } |
OLD | NEW |