aboutsummaryrefslogtreecommitdiffhomepage
path: root/update_file_lists.sh
diff options
context:
space:
mode:
authorGravatar Mizux <dev@mizux.net>2018-04-20 13:52:02 +0200
committerGravatar Corentin Le Molgat <corentinl@google.com>2018-04-24 13:55:54 +0200
commit3ad8efc75b5e3a9f2dc189558b7f2a68a33faf61 (patch)
tree390527c7916969ad689aba29cb7c397bbfb54a2c /update_file_lists.sh
parent4ca46ede5cc838fb047bd4f86d2294db788567ad (diff)
Add .proto files to extract_includes.bat
For google/or-tools, on windows, we need to use `import "google/protobuf/wrappers.proto";` since we want "optional" int64 and in version3 POD get default value... -> so we use "google.protobuf.Int64Value" since 0 is a valid value and different from "not set" for our use case.
Diffstat (limited to 'update_file_lists.sh')
-rwxr-xr-xupdate_file_lists.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/update_file_lists.sh b/update_file_lists.sh
index a064d657..37aa996b 100755
--- a/update_file_lists.sh
+++ b/update_file_lists.sh
@@ -139,6 +139,17 @@ for HEADER in $PUBLIC_HEADERS; do
WINPATH=$(echo $HEADER | sed 's;/;\\;g')
echo "copy \"\${PROTOBUF_SOURCE_WIN32_PATH}\\..\\src\\$WINPATH\" include\\$WINPATH" >> $EXTRACT_INCLUDES_BAT
done
+for PROTO in ${WKT_PROTOS}; do
+ PROTO_DIR=$(dirname "$PROTO")
+ while [ ! "$PROTO_DIR" = "." ]; do
+ echo "mkdir include\\${PROTO_DIR//\//\\}"
+ PROTO_DIR=$(dirname "$PROTO_DIR")
+ done
+done | sort | uniq >> $EXTRACT_INCLUDES_BAT
+for PROTO in $WKT_PROTOS; do
+ WINPATH=${PROTO//\//\\}
+ echo "copy \"\${PROTOBUF_SOURCE_WIN32_PATH}\\..\\src\\$WINPATH\" include\\$WINPATH" >> $EXTRACT_INCLUDES_BAT
+done
################################################################################
# Update bazel BUILD files.