• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3# Check flatc version
4if [[ $(flatc --version | grep -Po "(?<=flatc version )([0-9]|\.)*(?=\s|$)") != "1.12.0" ]]; then
5echo "[ERROR] flatc version must be 1.12.0"
6exit
7fi
8
9# Generate the CHRE-side header file
10flatc --cpp -o ../include/chre/platform/shared/generated/ --scoped-enums \
11  --cpp-ptr-type chre::UniquePtr host_messages.fbs
12
13# Generate the AP-side header file with some extra goodies
14flatc --cpp -o ../../../host/common/include/chre_host/generated/ --scoped-enums \
15  --gen-mutable --gen-object-api host_messages.fbs
16