aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVince Harron <vharron@google.com>2014-08-28 11:01:23 -0700
committerDavid 'Digit' Turner <digit@google.com>2014-08-29 12:00:52 +0200
commitc9993fba8d5dbec5b2b005ee8fa973af2cd4746f (patch)
treef94b50fbc50d69f5bf64e5c0a1ae039c8c945110
parentc27b46c2f1db0f52bdbaf5dfb2b26230ded78d04 (diff)
downloadqemu-c9993fba8d5dbec5b2b005ee8fa973af2cd4746f.tar.gz
emulator release script: incl. windows, 32bit linux binaries
Added windows binaries and 32 bit Linux binaries to set of binaries copied to prebuilts/android-emulator by distrib/package-release.sh Change-Id: Id132f1555edd79005837ec742b742ccd0cb9a9fa
-rwxr-xr-xdistrib/package-release.sh44
1 files changed, 35 insertions, 9 deletions
diff --git a/distrib/package-release.sh b/distrib/package-release.sh
index 121f52655b..d7dd5e574a 100755
--- a/distrib/package-release.sh
+++ b/distrib/package-release.sh
@@ -581,28 +581,54 @@ EOF
done
if [ "$OPT_COPY_PREBUILTS" ]; then
- for SYSTEM in linux darwin; do
+ for SYSTEM in linux darwin windows; do
SRC_DIR="$TEMP_BUILD_DIR"/$SYSTEM/$PKG_PREFIX-$PKG_REVISION
- DST_DIR=$TARGET_PREBUILTS_DIR/$SYSTEM-x86_64
- dump "[$SYSTEM-x86_64] Copying emulator binaries into $DST_DIR"
+ if [ $SYSTEM = "windows" ]; then
+ SYSTEM_ARCH=$SYSTEM
+ BITNESS=
+ else
+ SYSTEM_ARCH=$SYSTEM-x86_64
+ BITNESS=64
+ fi
+ DST_DIR=$TARGET_PREBUILTS_DIR/$SYSTEM_ARCH
+ dump "[$SYSTEM_ARCH] Copying emulator binaries into $DST_DIR"
run mkdir -p "$DST_DIR" || panic "Could not create directory: $DST_DIR"
+ EXEEXT=
case $SYSTEM in
linux) DLLEXT=.so;;
darwin) DLLEXT=.dylib;;
+ windows)
+ DLLEXT=.dll
+ EXEEXT=.exe
+ ;;
*) panic "Unsupported prebuilt system: $SYSTEM";;
esac
- FILES="emulator"
+ FILES="emulator$EXEEXT"
for ARCH in arm x86 mips; do
- FILES="$FILES emulator64-$ARCH"
+ FILES="$FILES emulator$BITNESS-$ARCH$EXEEXT"
done
- for ARCH in x86_64 arm64; do
- if [ -f "$SRC_DIR/tools/emulator64-$ARCH" ]; then
- FILES="$FILES emulator64-$ARCH"
+ for ARCH in arm64; do
+ if [ -f "$SRC_DIR/tools/emulator64-$ARCH$EXEEXT" ]; then
+ FILES="$FILES emulator64-$ARCH$EXEEXT"
fi
done
+
for LIB in OpenglRender EGL_translator GLES_CM_translator GLES_V2_translator; do
- FILES="$FILES lib/lib64$LIB$DLLEXT"
+ FILES="$FILES lib/lib$BITNESS$LIB$DLLEXT"
done
+
+ # temparily include linux 32 bit binaries
+ if [ $SYSTEM = "linux" ]; then
+ BITNESS=
+ for ARCH in arm x86 mips; do
+ FILES="$FILES emulator$BITNESS-$ARCH$EXEEXT"
+ done
+ for LIB in OpenglRender EGL_translator GLES_CM_translator GLES_V2_translator; do
+ FILES="$FILES lib/lib$BITNESS$LIB$DLLEXT"
+ done
+ fi
+
+
(cd "$SRC_DIR/tools" && tar cf - $FILES) | (cd $DST_DIR && tar xf -) ||
panic "Could not copy binaries to $DST_DIR"
done