From 99d1d8876eb4cd524eab9470d891be746b809f29 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 6 Mar 2016 10:57:25 -0800 Subject: iOS build: create ssrf-version.h by hand It grabs the mobile version from the cmake file via grep. :facepalm: Signed-off-by: Dirk Hohndel --- packaging/ios/build.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'packaging/ios/build.sh') diff --git a/packaging/ios/build.sh b/packaging/ios/build.sh index 4636c4cec..a3eac3c58 100644 --- a/packaging/ios/build.sh +++ b/packaging/ios/build.sh @@ -9,6 +9,18 @@ IOS_QT=${TOP}/Qt # Build Subsurface-mobile by default SUBSURFACE_MOBILE=1 +# set up the versions by hand +GITVERSION=$(git describe --tags --abbrev=12) +CANONICALVERSION=$(git describe --tags --abbrev=12 | sed -e 's/-g.*$// ; s/^v//' | sed -e 's/-/./') +MOBILEVERSION=$(grep MOBILE ../../cmake/Modules/version.cmake | cut -d\" -f 2) + +echo $GITVERSION +echo $CANONICALVERSION +echo $MOBILEVERSION +echo "#define GIT_VERSION_STRING \"$GITVERSION\"" > subsurface-ios/ssrf-version.h +echo "#define CANONICAL_VERSION_STRING \"$CANONICALVERSION\"" >> subsurface-ios/ssrf-version.h +echo "#define MOBILE_VERSION_STRING \"$MOBILEVERSION\"" >> subsurface-ios/ssrf-version.h + mkdir -p $TOP/install-root/lib $TOP/install-root/bin $TOP/install-root/include PKG_CONFIG_LIBDIR=$TOP/install-root/lib/pkgconfig -- cgit v1.2.3-70-g09d2