I created a Win7 build VM on one of my machines. I'm using the
following build script to test it out:

#!/bin/bash

if [ ! -d ../main -o ! -d sal ] ; then
        echo "CHDIR into AOO's main/ directory first!"
        exit 1
fi

if [ -z "$SDK_HOME" ] ; then
        SDK_HOME="/cygdrive/c/Microsoft_SDKs/Windows/v7.0"
        export SDK_HOME
        echo "Setting SDK_HOME to $SDK_HOME..."
fi

if [ -z "$JAVA_HOME" ] ; then
        JAVA_HOME="/cygdrive/c/aoo41x-support/openjdk_1.7.0_u80/"
        export JAVA_HOME
        echo "Setting JAVA_HOME to $JAVA_HOME..."
fi

if [ -z "$ANT_HOME" ] ; then
        ANT_HOME="/cygdrive/c/aoo41x-support/apache-ant-1.9.9/"
        export ANT_HOME
        echo "Setting ANT_HOME to $ANT_HOME..."
fi

if [ -z "$VSTUDIO_HOME" ] ; then
        VSTUDIO_HOME=`cygpath -m -s "C:\Program Files (x86)\Microsoft Visual 
Studio 9.0\VC"`
        export VSTUDIO_HOME
        echo "Setting VSTUDIO_HOME to $VSTUDIO_HOME..."
fi

if [ ! -e external/unowinreg/unowinreg.dll ] ; then
        echo "Downloading unowinreg.dll..."
        curl -o external/unowinreg/unowinreg.dll 
http://www.openoffice.org/tools/unowinreg_prebuild/680/unowinreg.dll
fi

LANGS="ast bg ca ca-XR ca-XV cs da de el en-GB en-US es eu fi fr gd gl he hi hu 
it ja km ko lt nb nl pl pt pt-BR ru sk sl sr sv ta th tr vi zh-CN zh-TW"

if [ ! -e configure -o configure.in -nt configure ] ; then
        echo "Running autoconf..."
        autoconf || exit 1
fi
./configure   \
    --with-build-version="$(date +"%Y-%m-%d %H:%M:%S (%a, %d %b %Y)") - `uname 
-sm`" \
        --with-vendor="Apache OpenOffice Community Build" \
        --enable-verbose \
        --enable-category-b \
        --enable-bundled-dictionaries \
        --enable-wiki-publisher \
        --with-jdk-home="$JAVA_HOME" \
        --with-ant-home="$ANT_HOME" \
        --with-lang="${LANGS}" \
        --with-frame-home="$SDK_PATH" \
    --with-psdk-home="$SDK_PATH" \
    --with-midl-path="$SDK_PATH/bin" \
    --with-csc-path="C:/Windows/Microsoft.NET/Framework/v3.5" \
    --with-cl-home="$VSTUDIO_HOME" \
    --with-asm-home="$VSTUDIO_HOME/bin" \
    
--with-dmake-url="https://sourceforge.net/projects/oooextras.mirror/files/dmake-4.12.tar.bz2";
 \
    
--with-epm-url="https://sourceforge.net/projects/oooextras.mirror/files/epm-3.7.tar.gz";
 \
    --disable-pch \
    --disable-nss-module \
    --without-junit \
        --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \
    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \
    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \
    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386 \
        --with-nsis-path="cygdrive/c/aoo41x-suport/nsis" \
        --with-mozilla-build="/cygdrive/c/aoo41x-support/mozilla-build" \
        --enable-dbgutil \
        --enable-win-x64-shellext

./bootstrap || exit 1
source ./winenv.set.sh || exit 1
cd instsetoo_native
time perl "$SOLARENV/bin/build.pl" --all -P2 -- -P2 || exit 1
cd util
dmake ooolanguagepack || exit 1
dmake sdkoo_en-US || exit 1

date "+Build ended at %H:%M:%S"


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

  • FWIW Jim Jagielski

Reply via email to