updater: refactor the midl generation into a template

This reduces repetitiveness in the build scripts, and will make it
easier to transition to building separate IDL and typelib files for user
and system in the future.

The `linux-chromeos-rel` bot has been retrying since yesterday night. My
change is Windows only, so I'm bypassing this bot with `No-Try: true`.

No-Try: true
Bug: 1496516
Change-Id: I922ab37f116261445516a3a4321f879c0222e8bb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5214730
Reviewed-by: Xiaoling Bao <xiaolingbao@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Roger Tawa <rogerta@chromium.org>
Auto-Submit: S Ganesh <ganesh@chromium.org>
Commit-Queue: S Ganesh <ganesh@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1249501}
NOKEYCHECK=True
GitOrigin-RevId: 56b29fed092f3596b9db01452ef5285f11a6cb6f
1 file changed