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

Side by Side Diff: extensions/BUILD.gn

Issue 434243003: extensions: Add GN version of extensions_shell_and_test_pak and unittests target. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
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 7
7 # GYP version: extensions/extensions_resources.gyp:extensions_resources 8 # GYP version: extensions/extensions_resources.gyp:extensions_resources
8 group("extensions_resources") { 9 group("extensions_resources") {
9 deps = [ 10 deps = [
10 ":extensions_renderer_resources", 11 ":extensions_renderer_resources",
11 ":extensions_resources_grd", 12 ":extensions_resources_grd",
12 ] 13 ]
13 } 14 }
14 15
15 # GYP version: extensions/extensions_resources.gyp:extensions_resources 16 # GYP version: extensions/extensions_resources.gyp:extensions_resources
(...skipping 19 matching lines...) Expand all
35 "//device/serial:serial_mojo", 36 "//device/serial:serial_mojo",
36 ] 37 ]
37 } 38 }
38 39
39 source_set("test_support") { 40 source_set("test_support") {
40 sources = [ 41 sources = [
41 "browser/api/dns/mock_host_resolver_creator.cc", 42 "browser/api/dns/mock_host_resolver_creator.cc",
42 "browser/api/dns/mock_host_resolver_creator.h", 43 "browser/api/dns/mock_host_resolver_creator.h",
43 "browser/api_test_utils.cc", 44 "browser/api_test_utils.cc",
44 "browser/api_test_utils.h", 45 "browser/api_test_utils.h",
46 "browser/extensions_test.cc",
47 "browser/extensions_test.h",
45 "browser/test_extensions_browser_client.cc", 48 "browser/test_extensions_browser_client.cc",
46 "browser/test_extensions_browser_client.h", 49 "browser/test_extensions_browser_client.h",
47 "browser/test_management_policy.cc", 50 "browser/test_management_policy.cc",
48 "browser/test_management_policy.h", 51 "browser/test_management_policy.h",
49 "browser/test_runtime_api_delegate.cc", 52 "browser/test_runtime_api_delegate.cc",
50 "browser/test_runtime_api_delegate.h", 53 "browser/test_runtime_api_delegate.h",
51 "common/extension_builder.cc", 54 "common/extension_builder.cc",
52 "common/extension_builder.h", 55 "common/extension_builder.h",
53 "common/test_util.cc", 56 "common/test_util.cc",
54 "common/test_util.h", 57 "common/test_util.h",
55 "common/value_builder.cc", 58 "common/value_builder.cc",
56 "common/value_builder.h", 59 "common/value_builder.h",
57 "renderer/test_extensions_renderer_client.cc", 60 "renderer/test_extensions_renderer_client.cc",
58 "renderer/test_extensions_renderer_client.h", 61 "renderer/test_extensions_renderer_client.h",
59 ] 62 ]
60 63
61 deps = [ 64 deps = [
62 "//base", 65 "//base",
63 "//extensions/browser", 66 "//extensions/browser",
64 "//extensions/common", 67 "//extensions/common",
65 "//extensions/common/api", 68 "//extensions/common/api",
66 "//net:test_support", 69 "//net:test_support",
70 "//testing/gmock",
67 "//testing/gtest", 71 "//testing/gtest",
68 ] 72 ]
69 73
70 if (is_win) { 74 if (is_win) {
71 cflags = [ 75 cflags = [
72 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 76 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
73 ] 77 ]
74 } 78 }
75 } 79 }
80
81
82 # GYP version: //extensions/extensions.gyp:extensions_shell_and_test_pak
83 repack("shell_and_test_pak") {
84 sources = [
85 "$root_gen_dir/chrome/common/common_resources.pak",
86 "$root_gen_dir/chrome/common/extensions_api_resources.pak",
87 # TODO(jamescook): Extract the extension/app related resources
88 # from generated_resources_en-US.pak. http://crbug.com/397250
89 "$root_gen_dir/chrome/app/generated_resources_en-US.pak",
90 "$root_gen_dir/chrome/renderer/renderer_resources_100_percent.pak",
91 "$root_gen_dir/content/content_resources.pak",
92 "$root_gen_dir/content/shell/shell_resources.pak",
93 "$root_gen_dir/extensions/extensions_renderer_resources.pak",
94 "$root_gen_dir/extensions/extensions_resources.pak",
95 "$root_gen_dir/extensions/shell/app_shell_resources.pak",
96 "$root_gen_dir/extensions/strings/extensions_strings_en-US.pak",
97 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak",
98 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak",
99 "$root_gen_dir/ui/strings/ui_strings_en-US.pak",
100 "$root_gen_dir/webkit/devtools_resources.pak",
101 ]
102
103 output = "$root_out_dir/extensions_shell_and_test.pak"
104
105 deps = [
106 ":extensions_resources",
107 # Need extension related resources in common_resources.pak and
108 # renderer_resources_100_percent.pak
109 "//chrome:resources",
110 # Need dev-tools related resources in shell_resources.pak and
111 # devtools_resources.pak.
112 "//content/browser/devtools:resources",
113 "//content/shell:resources",
114 "//content:resources",
115 "//extensions/shell:resources",
116 "//extensions/strings",
117 "//ui/resources",
118 "//ui/strings",
119 ]
120 }
121
122 # TODO(tfarina): Many extension unit tests run as part of Chrome"s
123 # unit_tests target. They should be moved here, which may require some
124 # refactoring (ExtensionsBrowserClient, TestingProfile, etc.).
125 # http://crbug.com/348066
126 test("unittests") {
127 output_name = "extensions_unittests"
128
129 sources = [
130 "browser/process_manager_unittest.cc",
131 "common/api/sockets/sockets_manifest_permission_unittest.cc",
132 "common/csp_validator_unittest.cc",
133 "common/event_filter_unittest.cc",
134 "common/id_util_unittest.cc",
135 "common/one_shot_event_unittest.cc",
136 "common/permissions/manifest_permission_set_unittest.cc",
137 "common/user_script_unittest.cc",
138 "renderer/api/serial/serial_api_unittest.cc",
139 "renderer/api_test_base.cc",
140 "renderer/api_test_base.h",
141 "renderer/api_test_base_unittest.cc",
142 "renderer/event_unittest.cc",
143 "renderer/json_schema_unittest.cc",
144 "renderer/messaging_utils_unittest.cc",
145 "renderer/module_system_test.cc",
146 "renderer/module_system_test.h",
147 "renderer/module_system_unittest.cc",
148 "renderer/safe_builtins_unittest.cc",
149 "renderer/utils_unittest.cc",
150 "test/extensions_unittests_main.cc",
151 "test/test_extensions_client.cc",
152 "test/test_extensions_client.h",
153 "test/test_permission_message_provider.cc",
154 "test/test_permission_message_provider.h",
155 "test/test_permissions_provider.cc",
156 "test/test_permissions_provider.h",
157 ]
158
159 deps = [
160 ":extensions_resources",
161 ":shell_and_test_pak",
162 ":test_support",
163 "//base",
164 "//base/test:test_support",
165 "//content/test:test_support",
166 "//device/serial",
167 "//extensions/common",
168 "//extensions/renderer",
169 "//extensions/strings",
170 "//mojo/environment:chromium",
171 "//mojo/public/cpp/bindings",
172 "//mojo/bindings/js",
173 "//mojo/system",
174 "//testing/gmock",
175 "//testing/gtest",
176 ]
177
178 if (is_win) { # and win_use_allocator_shim==1
brettw 2014/08/04 04:28:52 You can delete this comment. The base/allocator ta
tfarina 2014/08/05 14:13:19 Done.
179 deps += [
180 "//base/allocator",
181 ]
182 }
183 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698