tweak windows build just a bit
This commit is contained in:
parent
1b5d21056d
commit
7237708a1f
1 changed files with 8 additions and 6 deletions
|
@ -18,10 +18,10 @@ icu_linux_dir=$staging_dir/build_icu_linux
|
||||||
mkdir -p $staging_dir
|
mkdir -p $staging_dir
|
||||||
pushd $staging_dir
|
pushd $staging_dir
|
||||||
wget -c http://download.icu-project.org/files/icu4c/57.1/icu4c-57_1-src.tgz
|
wget -c http://download.icu-project.org/files/icu4c/57.1/icu4c-57_1-src.tgz
|
||||||
tar -xvzf icu4c-57_1-src.tgz
|
tar -xzf icu4c-57_1-src.tgz
|
||||||
pushd icu/source
|
pushd icu/source
|
||||||
CC="gcc" CXX="g++" ./runConfigureICU Linux --prefix=$icu_linux_dir --enable-extras=no --enable-strict=no -enable-static --enable-shared=no --enable-tests=no --enable-samples=no --enable-dyload=no
|
CC="gcc" CXX="g++" ./runConfigureICU Linux --prefix=$icu_linux_dir --enable-extras=no --enable-strict=no --enable-static --enable-shared=no --enable-tests=no --enable-samples=no --enable-dyload=no
|
||||||
make
|
make -j4
|
||||||
make install
|
make install
|
||||||
popd
|
popd
|
||||||
popd
|
popd
|
||||||
|
@ -30,21 +30,23 @@ pushd depends
|
||||||
# Remove the dir saying that dependencies are built (although ccache
|
# Remove the dir saying that dependencies are built (although ccache
|
||||||
# is still enabled).
|
# is still enabled).
|
||||||
rm -rf built
|
rm -rf built
|
||||||
|
mkdir -p sources
|
||||||
|
cp "$staging_dir/icu4c-57_1-src.tgz" sources/
|
||||||
|
|
||||||
# Build and install the cross compiled ICU package.
|
# Build and install the cross compiled ICU package.
|
||||||
make HOST=i686-w64-mingw32 NO_QT=1 ICU_ONLY=1
|
make -j4 HOST=i686-w64-mingw32 NO_QT=1 ICU_ONLY=1
|
||||||
|
|
||||||
# Then build the rest of the dependencies (now that it exists and we
|
# Then build the rest of the dependencies (now that it exists and we
|
||||||
# can determine the location for it).
|
# can determine the location for it).
|
||||||
icu_mingw_dir=$(find /tmp/icu_install -name i686-w64-mingw32 -type d)
|
icu_mingw_dir=$(find /tmp/icu_install -name i686-w64-mingw32 -type d)
|
||||||
make HOST=i686-w64-mingw32 NO_QT=1 ICU_DIR=$icu_mingw_dir
|
make -j4 HOST=i686-w64-mingw32 NO_QT=1 ICU_DIR=$icu_mingw_dir V=1
|
||||||
popd
|
popd
|
||||||
|
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
echo "Using --with-icu=$icu_mingw_dir"
|
echo "Using --with-icu=$icu_mingw_dir"
|
||||||
PREFIX=`pwd`/depends/i686-w64-mingw32
|
PREFIX=`pwd`/depends/i686-w64-mingw32
|
||||||
CC="i686-w64-mingw32-gcc" CXX="i686-w64-mingw32-g++" ./configure --prefix=$PREFIX --host=i686-w64-mingw32 --build=i686-w64-mingw32 --without-gui --with-icu=$icu_mingw_dir --enable-static --disable-shared
|
CC="i686-w64-mingw32-gcc" CXX="i686-w64-mingw32-g++" ./configure --prefix=$PREFIX --host=i686-w64-mingw32 --build=i686-w64-mingw32 --without-gui --with-icu=$icu_mingw_dir --enable-static --disable-shared
|
||||||
make -j12
|
make -j4
|
||||||
|
|
||||||
rm -rf $staging_dir
|
rm -rf $staging_dir
|
||||||
# Remove hardcoded cross compiled ICU package path.
|
# Remove hardcoded cross compiled ICU package path.
|
||||||
|
|
Loading…
Add table
Reference in a new issue