David Burger | c33d1eb | 2020-01-21 14:24:50 -0700 | [diff] [blame] | 1 | #!/bin/bash -e |
| 2 | # |
| 3 | # Copyright 2020 The Chromium OS Authors. All rights reserved. |
| 4 | # Use of this source code is governed by a BSD-style license that can be |
| 5 | # found in the LICENSE file. |
| 6 | # |
| 7 | # Runs protoc over the configuration protos to produce generated proto code. |
| 8 | |
| 9 | # Versions of packages to get from CIPD. |
| 10 | CIPD_PROTOC_VERSION='v3.6.1' |
| 11 | |
| 12 | # Move to this script's directory. |
| 13 | cd "$(dirname "$0")" |
| 14 | |
| 15 | # Get protobuf compiler from CIPD. |
| 16 | cipd_root=.cipd_bin |
| 17 | cipd ensure \ |
| 18 | -log-level warning \ |
| 19 | -root "${cipd_root}" \ |
| 20 | -ensure-file - \ |
| 21 | <<ENSURE_FILE |
| 22 | infra/tools/protoc/\${platform} protobuf_version:${CIPD_PROTOC_VERSION} |
| 23 | ENSURE_FILE |
| 24 | |
| 25 | PATH="${cipd_root}:${PATH}" |
| 26 | |
| 27 | protoc -I../../ --descriptor_set_out=proto/descpb.bin \ |
Andrew Lamb | 95561d8 | 2020-01-21 16:36:51 -0700 | [diff] [blame^] | 28 | chromite/infra/proto/src/chromiumos/common.proto \ |
| 29 | src/config/api/build_config.proto \ |
David Burger | c33d1eb | 2020-01-21 14:24:50 -0700 | [diff] [blame] | 30 | src/config/api/component.proto \ |
Andrew Lamb | 95561d8 | 2020-01-21 16:36:51 -0700 | [diff] [blame^] | 31 | src/config/api/component_id.proto \ |
C Shapiro | a8ec8f0 | 2020-01-23 13:33:19 -0600 | [diff] [blame] | 32 | src/config/api/config_bundle.proto \ |
C Shapiro | 6c58736 | 2020-01-23 09:37:11 -0600 | [diff] [blame] | 33 | src/config/api/design.proto \ |
Andrew Lamb | 95561d8 | 2020-01-21 16:36:51 -0700 | [diff] [blame^] | 34 | src/config/api/design_config_id.proto \ |
| 35 | src/config/api/design_id.proto \ |
C Shapiro | 76d21ac | 2020-01-23 10:06:40 -0600 | [diff] [blame] | 36 | src/config/api/device_brand.proto \ |
Andrew Lamb | 95561d8 | 2020-01-21 16:36:51 -0700 | [diff] [blame^] | 37 | src/config/api/device_brand_id.proto \ |
Jett Rink | f2042ed | 2020-01-24 07:36:41 -0700 | [diff] [blame] | 38 | src/config/api/hardware_topology.proto \ |
C Shapiro | 6197066 | 2020-01-23 13:12:42 -0600 | [diff] [blame] | 39 | src/config/api/partner.proto \ |
Andrew Lamb | 95561d8 | 2020-01-21 16:36:51 -0700 | [diff] [blame^] | 40 | src/config/api/partner_id.proto \ |
Jett Rink | 21916d5 | 2020-01-24 09:58:07 -0700 | [diff] [blame] | 41 | src/config/api/program.proto \ |
Andrew Lamb | 95561d8 | 2020-01-21 16:36:51 -0700 | [diff] [blame^] | 42 | src/config/api/program_id.proto \ |
| 43 | src/config/api/topology.proto \ |
| 44 | src/third_party/chromiumos-overlay/proto/audio_config.proto \ |
| 45 | src/third_party/chromiumos-overlay/proto/brand_config.proto \ |
| 46 | src/third_party/chromiumos-overlay/proto/build_target_config_id.proto \ |
| 47 | src/third_party/chromiumos-overlay/proto/design_variant_config.proto \ |
| 48 | src/third_party/chromiumos-overlay/proto/firmware_config.proto \ |
| 49 | src/platform2/bluetooth/proto/config.proto \ |
| 50 | src/platform2/chromeos-config/proto/design_variant_id_scan_config.proto \ |
| 51 | src/platform2/chromeos-config/proto/brand_id_scan_config.proto \ |
| 52 | src/platform2/power_manager/config.proto |