Copy zip-related funcs build_utils -> zip_helpers

Non-android scripts use these helpers, so this moves them
outside of the //build/android directory.

This also modifies the helpers in the following ways:
* Renamed them.
* Added more assert checks about valid paths
* Fixed zip_directory() adding \s instead of /s on windows
* Merged in zipalign logic
* Changed compress_fn -> compress= (was unused)
* Do not call atomic_output from zip_directory()
  * Updated all callers to do so explicitly.

Bug: 1428082
Change-Id: I9ad5df6cc2491efb974bc914ddbcc6d9de2d4657
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4386354
Reviewed-by: Sam Maier <smaier@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1124879}
NOKEYCHECK=True
GitOrigin-RevId: 3dec34616aaf4298ac30aee57bebfe0b50af6715
1 file changed
tree: 34e0f40b35f86c2b301e78cebb5fb35934577257
  1. development/
  2. DIR_METADATA
  3. LICENSE
  4. OWNERS
  5. README.chromium