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

Side by Side Diff: .gn

Issue 2512043002: Move the GN exec_script whitelist for //build into //build. (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # This file is used by the GN meta build system to find the root of the source 1 # This file is used by the GN meta build system to find the root of the source
2 # tree and to set startup options. For documentation on the values set in this 2 # tree and to set startup options. For documentation on the values set in this
3 # file, run "gn help dotfile" at the command line. 3 # file, run "gn help dotfile" at the command line.
4 4
5 # The location of the build configuration file. 5 # The location of the build configuration file.
6 buildconfig = "//build/config/BUILDCONFIG.gn" 6 buildconfig = "//build/config/BUILDCONFIG.gn"
7 7
8 # The secondary source root is a parallel directory tree where 8 # The secondary source root is a parallel directory tree where
9 # GN build files are placed when they can not be placed directly 9 # GN build files are placed when they can not be placed directly
10 # in the source tree, e.g. for third party source trees. 10 # in the source tree, e.g. for third party source trees.
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 # - It's easy to screw up. One common case is a build-time script that packs 208 # - It's easy to screw up. One common case is a build-time script that packs
209 # up a directory. The author notices that the script isn't re-run when the 209 # up a directory. The author notices that the script isn't re-run when the
210 # directory is updated, so adds a glob so all the files are listed as 210 # directory is updated, so adds a glob so all the files are listed as
211 # inputs. This seems to work great... until a file is deleted. When a 211 # inputs. This seems to work great... until a file is deleted. When a
212 # file is deleted, all the inputs the glob lists will still be up to date 212 # file is deleted, all the inputs the glob lists will still be up to date
213 # and no command-lines will have been changed. The action will not be 213 # and no command-lines will have been changed. The action will not be
214 # re-run and the build will be broken. It is possible to get this correct 214 # re-run and the build will be broken. It is possible to get this correct
215 # using glob, and it's possible to mess it up without glob, but globs make 215 # using glob, and it's possible to mess it up without glob, but globs make
216 # this situation much easier to create. if the build always lists the 216 # this situation much easier to create. if the build always lists the
217 # files and passes them to a script, it will always be correct. 217 # files and passes them to a script, it will always be correct.
218 exec_script_whitelist = [
219 "//android_webview/BUILD.gn",
220 "//build_overrides/build.gni",
221 "//build/config/BUILD.gn",
222 "//build/config/android/config.gni",
223 "//build/config/android/internal_rules.gni",
224 "//build/config/android/rules.gni",
225 "//build/config/compiler/BUILD.gn",
226 "//build/config/gcc/gcc_version.gni",
227 "//build/config/ios/ios_sdk.gni",
228 "//build/config/linux/BUILD.gn",
229 "//build/config/linux/pkg_config.gni",
230 "//build/config/linux/atk/BUILD.gn",
231 "//build/config/mac/mac_sdk.gni",
232 "//build/config/mac/rules.gni",
233 "//build/config/posix/BUILD.gn",
234 "//build/config/sysroot.gni",
235 "//build/config/win/BUILD.gn",
236 "//build/config/win/visual_studio_version.gni",
237 "//build/toolchain/concurrent_links.gni",
238 "//build/toolchain/mac/BUILD.gn",
239 "//build/toolchain/nacl/BUILD.gn",
240 "//build/toolchain/toolchain.gni",
241 "//build/toolchain/win/BUILD.gn",
242 "//build/util/branding.gni",
243 "//build/util/version.gni",
244 "//chromeos/BUILD.gn",
245 218
246 # TODO(dgn): Layer violation but breaks the build otherwise, see 219 # Pull in the stock list of exclusions for //build.
247 # https://crbug.com/474506 220 import("//build/dot_gn.gni")
brettw 2016/11/18 22:12:00 I'd prefer this goes at the top. I actually don't
248 "//clank/java/BUILD.gn",
249 "//clank/native/BUILD.gn",
250 221
251 "//jingle/BUILD.gn", 222 exec_script_whitelist =
brettw 2016/11/18 22:12:00 I'd like a comment here instead saying that whitel
252 "//net/BUILD.gn", 223 build_dot_gn.exec_script_whitelist + [
Dirk Pranke 2016/11/17 23:26:37 We could generalize this pattern and provide build
253 "//remoting/host/installer/linux/BUILD.gn", 224 "//android_webview/BUILD.gn",
254 "//remoting/remoting_version.gni", 225 "//build_overrides/build.gni",
255 "//remoting/host/installer/win/generate_clsids.gni", 226 "//chromeos/BUILD.gn",
256 "//third_party/angle/BUILD.gn",
257 "//third_party/angle/src/tests/BUILD.gn",
258 "//third_party/angle/src/vulkan_support/BUILD.gn",
259 "//third_party/catapult/tracing/BUILD.gn",
260 "//third_party/google_input_tools/inputview.gni",
261 "//third_party/skia/gn/shared_sources.gni",
262 227
263 # CLD2 should be removed soon, delete this when we do. 228 # TODO(dgn): Layer violation but breaks the build otherwise, see
264 "//third_party/cld_2/BUILD.gn", 229 # https://crbug.com/474506
265 "//tools/grit/grit_rule.gni", 230 "//clank/java/BUILD.gn",
231 "//clank/native/BUILD.gn",
266 232
267 # Not gypi-to-gn. 233 "//jingle/BUILD.gn",
268 "//google_apis/BUILD.gn", 234 "//net/BUILD.gn",
269 "//printing/BUILD.gn", 235 "//remoting/host/installer/linux/BUILD.gn",
270 ] 236 "//remoting/remoting_version.gni",
237 "//remoting/host/installer/win/generate_clsids.gni",
238 "//third_party/angle/BUILD.gn",
239 "//third_party/angle/src/tests/BUILD.gn",
240 "//third_party/angle/src/vulkan_support/BUILD.gn",
241 "//third_party/catapult/tracing/BUILD.gn",
242 "//third_party/google_input_tools/inputview.gni",
243 "//third_party/skia/gn/shared_sources.gni",
mtklein_C 2016/11/18 00:19:43 FWIW, this no longer execs any scripts. We can pr
Dirk Pranke 2016/11/19 05:03:58 Acknowledged.
244
245 # CLD2 should be removed soon, delete this when we do.
246 "//third_party/cld_2/BUILD.gn",
247 "//tools/grit/grit_rule.gni",
248
249 # Not gypi-to-gn.
250 "//google_apis/BUILD.gn",
251 "//printing/BUILD.gn",
252 ]
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698