Reland #2 "Android: Revamp .build_config.json files"

This reverts commit add4fa921ec0bdc6d16cc5efcefca8771ccfa460.

Reason for reland: fixed generate_gradle.py

Bug: 413331591, 413429757
Bug: 413331591
Original change's description:
> Revert "Reland "Reland "Android: Revamp .build_config.json files"""
>
> This reverts commit 7c3be0e555b22cc3c4d6f054951afb7cb6cc27ba.
>
> Reason for revert: broke generate_gradle.py
>
> Bug: 413331591
> Bug: 413331591, 413429757
> Original change's description:
> > Reland "Reland "Android: Revamp .build_config.json files""
> >
> > This reverts commit e29eae6dd420460a8e3cb58c9b58b4917f0092de.
> >
> > Reason for reland: Ran mega CQ
> >
> > Bug: 413331591, 413429757
> > Bug: 413331591
> > Original change's description:
> > > Revert "Reland "Android: Revamp .build_config.json files""
> > >
> > > This reverts commit a9c9cb734574a2a517dc4fc5518b4338287cc6c8.
> > >
> > > Reason for revert: https://ci.chromium.org/ui/p/chrome/builders/ci/android-builder-perf/878126/blamelist
> > >
> > > Bug: 413331591
> > > Bug: 413331591, 413429757
> > > Original change's description:
> > > > Reland "Android: Revamp .build_config.json files"
> > > >
> > > > This reverts commit 9acd9592e904395600e063d6bbbc541c053e53db.
> > > >
> > > > Reason for revert: Fixed trace_event_rewritten targets
> > > >
> > > > Bug: 413331591, 413429757
> > > > Original change's description:
> > > > > Revert "Android: Revamp .build_config.json files"
> > > > >
> > > > > This reverts commit 96f90bea226aad4c34f98e051dc414c06f6171b0.
> > > > >
> > > > > Reason for revert: Broke trace_event_rewritten target
> > > > >
> > > > > Bug: 413331591
> > > > > Original change's description:
> > > > > > Android: Revamp .build_config.json files
> > > > > >
> > > > > > Use write_file() rather than command-line flags to pass information from
> > > > > > GN -> write_build_config.py
> > > > > >  * Creates $target_out_dir/$target_name.params.json files
> > > > > >  * Reduces the size of .ninja files
> > > > > >  * Enables auxiliary tools that read .build_config.json files to instead
> > > > > >    read .params.json, which do not need to be built.
> > > > > >  * Reduces boiler-plate in write_build_config.py
> > > > > >
> > > > > > Other simplifications:
> > > > > >  * Remove outdated documentation about build_config values
> > > > > >  * Renamed some build_config.json keys to improve consistency
> > > > > >  * Moves uncompressed_assets and final_dex_path for bundle modules
> > > > > >    into the bundle's build_config (so that the module's config is
> > > > > >    not needed)
> > > > > >
> > > > > > I've attempted to update all tools that read .build_config.json files.
> > > > > >
> > > > > > build.ninja files: 884650045->878689015 (about 6mb smaller)
> > > > > > .build_config.json: 285674537->273369616(about 12mb smaller)
> > > > > >
> > > > > > Bug: 413331591
> > > > > > Change-Id: I6d01f4fea04b95a1d3911e0538f0e1a4090a4dcf
> > > > > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6479572
> > > > > > Reviewed-by: Peter Wen <wnwen@chromium.org>
> > > > > > Owners-Override: Andrew Grieve <agrieve@chromium.org>
> > > > > > Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> > > > > > Cr-Commit-Position: refs/heads/main@{#1451366}
> > > > >
> > > > > Bug: 413331591, 413429757
> > > > > No-Presubmit: true
> > > > > No-Tree-Checks: true
> > > > > No-Try: true
> > > > > Change-Id: Ia3ef17f7d67babaaea6b14e44c17e8738a4db26a
> > > > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6489352
> > > > > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> > > > > Auto-Submit: Andrew Grieve <agrieve@chromium.org>
> > > > > Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> > > > > Owners-Override: Andrew Grieve <agrieve@chromium.org>
> > > > > Cr-Commit-Position: refs/heads/main@{#1451423}
> > > >
> > > > Bug: 413331591
> > > > Bug: 413331591, 413429757
> > > > Change-Id: I63fcea903945f2b5c0554925e019d92f5d242ba3
> > > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6490257
> > > > Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> > > > Reviewed-by: Sam Maier <smaier@chromium.org>
> > > > Owners-Override: Andrew Grieve <agrieve@chromium.org>
> > > > Cr-Commit-Position: refs/heads/main@{#1451844}
> > >
> > > Bug: 413331591, 413429757
> > > Bug: 413331591
> > > No-Presubmit: true
> > > No-Tree-Checks: true
> > > No-Try: true
> > > Change-Id: Id390eb968d27f44b2ef1d41753c13525caf2e555
> > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6490036
> > > Auto-Submit: Andrew Grieve <agrieve@chromium.org>
> > > Owners-Override: Andrew Grieve <agrieve@chromium.org>
> > > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> > > Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> > > Cr-Commit-Position: refs/heads/main@{#1451888}
> >
> > Bug: 413331591
> > Bug: 413331591, 413429757
> > Change-Id: I7273e510cb4521c5b1c9e74965faf1ac699b579f
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6489555
> > Owners-Override: Andrew Grieve <agrieve@chromium.org>
> > Reviewed-by: Peter Wen <wnwen@chromium.org>
> > Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> > Cr-Commit-Position: refs/heads/main@{#1452633}
>
> Bug: 413331591, 413429757
> Bug: 413331591
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Change-Id: I5959c554f1f355e9737ca34d5ee327b4aef1d123
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6494174
> Owners-Override: Peter Wen <wnwen@chromium.org>
> Reviewed-by: Peter Wen <wnwen@chromium.org>
> Commit-Queue: Peter Wen <wnwen@chromium.org>
> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> Auto-Submit: Andrew Grieve <agrieve@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1452726}

Bug: 413331591, 413429757
Change-Id: Idaed52bf853f36727a552654debb3f14118edbc6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6495888
Commit-Queue: Sam Maier <smaier@chromium.org>
Reviewed-by: Sam Maier <smaier@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Owners-Override: Sam Maier <smaier@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1452862}
14 files changed
tree: a6f7c44da1c49bcee6477522cd56995abad4f738
  1. android_webview/
  2. apps/
  3. ash/
  4. base/
  5. build/
  6. build_overrides/
  7. buildtools/
  8. cc/
  9. chrome/
  10. chromecast/
  11. chromeos/
  12. codelabs/
  13. components/
  14. content/
  15. crypto/
  16. dbus/
  17. device/
  18. docs/
  19. extensions/
  20. fuchsia_web/
  21. gin/
  22. google_apis/
  23. gpu/
  24. headless/
  25. infra/
  26. ios/
  27. ipc/
  28. media/
  29. mojo/
  30. native_client_sdk/
  31. net/
  32. pdf/
  33. ppapi/
  34. printing/
  35. remoting/
  36. rlz/
  37. sandbox/
  38. services/
  39. skia/
  40. sql/
  41. storage/
  42. styleguide/
  43. testing/
  44. third_party/
  45. tools/
  46. ui/
  47. url/
  48. webkit/
  49. .clang-format
  50. .clang-tidy
  51. .clangd
  52. .git-blame-ignore-revs
  53. .gitallowed
  54. .gitattributes
  55. .gitignore
  56. .gitmodules
  57. .gn
  58. .mailmap
  59. .rustfmt.toml
  60. .vpython3
  61. .yapfignore
  62. ATL_OWNERS
  63. AUTHORS
  64. BUILD.gn
  65. CODE_OF_CONDUCT.md
  66. codereview.settings
  67. CPPLINT.cfg
  68. CRYPTO_OWNERS
  69. DEPS
  70. DIR_METADATA
  71. LICENSE
  72. LICENSE.chromium_os
  73. OWNERS
  74. PRESUBMIT.py
  75. PRESUBMIT_test.py
  76. PRESUBMIT_test_mocks.py
  77. README.md
  78. WATCHLISTS
README.md

Logo Chromium

Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.

The project's web site is https://www.chromium.org.

To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.

Documentation in the source is rooted in docs/README.md.

Learn how to Get Around the Chromium Source Code Directory Structure.

For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.

If you found a bug, please file it at https://crbug.com/new.