Chromium Code Reviews

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: add TODO + REBASE Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « device/hid/BUILD.gn ('k') | extensions/browser/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 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 43 matching lines...)
59 "renderer/test_extensions_renderer_client.cc", 60 "renderer/test_extensions_renderer_client.cc",
60 "renderer/test_extensions_renderer_client.h", 61 "renderer/test_extensions_renderer_client.h",
61 ] 62 ]
62 63
63 deps = [ 64 deps = [
64 "//base", 65 "//base",
65 "//extensions/browser", 66 "//extensions/browser",
66 "//extensions/common", 67 "//extensions/common",
67 "//extensions/common/api", 68 "//extensions/common/api",
68 "//net:test_support", 69 "//net:test_support",
70 "//testing/gmock",
69 "//testing/gtest", 71 "//testing/gtest",
70 ] 72 ]
71 73
72 if (is_win) { 74 if (is_win) {
73 cflags = [ 75 cflags = [
74 "/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.
75 ] 77 ]
76 } 78 }
77 } 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(GYP): Enable this link errors are fixed.
123 if (false) {
124 # TODO(tfarina): Many extension unit tests run as part of Chrome"s
125 # unit_tests target. They should be moved here, which may require some
126 # refactoring (ExtensionsBrowserClient, TestingProfile, etc.).
127 # http://crbug.com/348066
128 test("unittests") {
129 output_name = "extensions_unittests"
130
131 sources = [
132 "browser/process_manager_unittest.cc",
133 "common/api/sockets/sockets_manifest_permission_unittest.cc",
134 "common/csp_validator_unittest.cc",
135 "common/event_filter_unittest.cc",
136 "common/id_util_unittest.cc",
137 "common/one_shot_event_unittest.cc",
138 "common/permissions/manifest_permission_set_unittest.cc",
139 "common/user_script_unittest.cc",
140 "renderer/api/serial/serial_api_unittest.cc",
141 "renderer/api_test_base.cc",
142 "renderer/api_test_base.h",
143 "renderer/api_test_base_unittest.cc",
144 "renderer/event_unittest.cc",
145 "renderer/json_schema_unittest.cc",
146 "renderer/messaging_utils_unittest.cc",
147 "renderer/module_system_test.cc",
148 "renderer/module_system_test.h",
149 "renderer/module_system_unittest.cc",
150 "renderer/safe_builtins_unittest.cc",
151 "renderer/utils_unittest.cc",
152 "test/extensions_unittests_main.cc",
153 "test/test_extensions_client.cc",
154 "test/test_extensions_client.h",
155 "test/test_permission_message_provider.cc",
156 "test/test_permission_message_provider.h",
157 "test/test_permissions_provider.cc",
158 "test/test_permissions_provider.h",
159 ]
160
161 deps = [
162 ":extensions_resources",
163 ":shell_and_test_pak",
164 ":test_support",
165 "//base",
166 "//base/test:test_support",
167 "//content/test:test_support",
168 "//device/serial",
169 "//extensions/common",
170 "//extensions/renderer",
171 "//extensions/strings",
172 "//mojo/environment:chromium",
173 "//mojo/public/cpp/bindings",
174 "//mojo/bindings/js",
175 "//mojo/system",
176 "//testing/gmock",
177 "//testing/gtest",
178 ]
179
180 if (is_win) {
181 deps += [
182 "//base/allocator",
183 ]
184 }
185 }
186 }
OLDNEW
« no previous file with comments | « device/hid/BUILD.gn ('k') | extensions/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine