Revert "private_code_test: Parse build.ninja to collect linker inputs"

This reverts commit a6dddc3de16b5c67656254e10ed648354cd3a4f0.

Reason for revert: Suspected of causing failure in deterministic build - https://ci.chromium.org/ui/p/chromium/builders/ci/Deterministic%20Linux/51954 (https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket/8725202020735429233/+/u/compare_build_artifacts/stdout)

Original change's description:
> private_code_test: Parse build.ninja to collect linker inputs
>
> Although slower, this handles the case where GN targets are in public
> code, but include source files from private code.
>
> Bug: 40204298
> Change-Id: If571518f07855946a16e5aeebe0cace661cc75dd
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5756917
> Commit-Queue: Andrew Grieve <[email protected]>
> Reviewed-by: Dirk Pranke <[email protected]>
> Cr-Commit-Position: refs/heads/main@{#1408713}

Bug: 40204298
Change-Id: I9584a8e46d28ce0f64d263c88d8041cb51368471
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6184083
Bot-Commit: Rubber Stamper <[email protected]>
Reviewed-by: Andrew Grieve <[email protected]>
Reviewed-by: Dirk Pranke <[email protected]>
Commit-Queue: Andrew Grieve <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1408751}
NOKEYCHECK=True
GitOrigin-RevId: 83e7953b9679c76170adf1b02e13e129e3c6de75
4 files changed
tree: 8d47a90273632abf8fa3e2f19378fd65f4fa7a62
  1. 3pp_common/
  2. android/
  3. apple/
  4. args/
  5. chromeos/
  6. cipd/
  7. config/
  8. docs/
  9. fuchsia/
  10. gn_ast/
  11. internal/
  12. ios/
  13. linux/
  14. mac/
  15. private_code_test/
  16. rust/
  17. sanitizers/
  18. skia_gold_common/
  19. toolchain/
  20. util/
  21. win/
  22. .clang-tidy
  23. .clangd
  24. .git-blame-ignore-revs
  25. .gitignore
  26. .style.yapf
  27. action_helpers.py
  28. action_helpers_unittest.py
  29. add_rts_filters.py
  30. build-ctags.sh
  31. BUILD.gn
  32. build_config.h
  33. buildflag.h
  34. buildflag_header.gni
  35. check_gn_headers.py
  36. check_gn_headers_allowlist.txt
  37. check_gn_headers_unittest.py
  38. check_return_value.py
  39. ciopfs.sha1
  40. clobber.py
  41. clobber_unittest.py
  42. compiled_action.gni
  43. compute_build_timestamp.py
  44. copy_test_data_ios.py
  45. cp.py
  46. DEPS
  47. detect_host_arch.py
  48. dir_exists.py
  49. DIR_METADATA
  50. dotfile_settings.gni
  51. download_nacl_toolchains.py
  52. env_dump.py
  53. extract_from_cab.py
  54. extract_partition.py
  55. find_depot_tools.py
  56. fix_gn_headers.py
  57. gdb-add-index
  58. get_landmines.py
  59. get_symlink_targets.py
  60. gn_editor
  61. gn_helpers.py
  62. gn_helpers_unittest.py
  63. gn_logs.gni
  64. gn_run_binary.py
  65. install-build-deps.py
  66. install-build-deps.sh
  67. install-chroot.sh
  68. landmine_utils.py
  69. landmines.py
  70. locale_tool.py
  71. mac_toolchain.py
  72. metadata.json.in
  73. nocompile.gni
  74. noop.py
  75. OWNERS
  76. OWNERS.setnoparent
  77. OWNERS.status
  78. partitioned_shared_library.gni
  79. precompile.cc
  80. precompile.h
  81. PRESUBMIT.py
  82. PRESUBMIT_test.py
  83. print_python_deps.py
  84. protoc_java.py
  85. protoc_java.pydeps
  86. README.md
  87. redirect_stdout.py
  88. rm.py
  89. sample_arg_file.gn
  90. sanitize-mac-build-log.sed
  91. sanitize-mac-build-log.sh
  92. sanitize-win-build-log.sed
  93. sanitize-win-build-log.sh
  94. shim_headers.gni
  95. symlink.gni
  96. symlink.py
  97. timestamp.gni
  98. tree_truth.sh
  99. update-linux-sandbox.sh
  100. vs_toolchain.py
  101. whitespace_file.txt
  102. write_buildflag_header.py
  103. xcode_binaries.yaml
  104. zip_helpers.py
  105. zip_helpers_unittest.py
README.md

About

//build contains:

  • Core GN templates and configuration
  • Core Python build scripts

Since this directory is DEPS'ed in by some other repositories (webrtc, pdfium, v8, etc), it should be kept as self-contained as possible by not referring to files outside of it. Some exceptions exist (//testing, select //third_party subdirectories), but new dependencies tend to break these other projects, and so should be avoided.

Changes to //build should be landed in the Chromium repo. They will then be replicated to the stand-alone build repo by the gsubtreed tool. Note: You can find all directories already available through gsubtreed in the list of all chromium repos.

Contents

  • //build/config - Common templates via .gni files.
  • //build/toolchain - GN toolchain definitions.
  • Other .py files - Some are used by GN/Ninja. Some by gclient hooks, some are just random utilities.

Files referenced by //.gn:

  • //build/BUILDCONFIG.gn - Included by all BUILD.gn files.
  • //build/secondary - An overlay for BUILD.gn files. Enables adding BUILD.gn to directories that live in sub-repositories.
  • //build_overrides - Refer to //build_overrides/README.md.

Docs