Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CROSS_BUILD][WIN32] Update bootstrap scripts.
- Loading branch information
Showing
4 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#/bin/sh | ||
export PATH="$PATH:/usr/local/i586-mingw-msvc/icu/bin:/usr/local/i586-mingw-msvc/Angle/bin" | ||
|
||
./configure \ | ||
-prefix /usr/local/i586-mingw-msvc/5.7/mingw_611 \ | ||
-release -opensource -confirm-license \ | ||
-xplatform win32-g++ \ | ||
-qt-zlib -qt-libpng -qt-libjpeg \ | ||
-qt-freetype \ | ||
-device-option CROSS_COMPILE=i686-w64-mingw32- \ | ||
-no-pch \ | ||
-no-compile-examples \ | ||
-icu \ | ||
-nomake examples \ | ||
-skip qtactiveqt \ | ||
$@ | ||
# -skip qtactiveqt -skip qtcanvas3d \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
make CROSS_COMPILE=i686-w64-mingw32- $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#define HAVE_X86_INLINE_ASM 1 | ||
#define HAVE_MMX 1 | ||
#define ARCH_X86 1 | ||
#define SYS_WINDOWS 1 | ||
#define STACK_ALIGNMENT 32 | ||
#define HAVE_WIN32THREAD 1 | ||
#define HAVE_THREAD 1 | ||
#define HAVE_LOG2F 1 | ||
#define HAVE_AVS 1 | ||
#define USE_AVXSYNTH 0 | ||
#define HAVE_VECTOREXT 1 | ||
#define fseek fseeko | ||
#define ftell ftello | ||
#define HAVE_GPL 1 | ||
#define HAVE_INTERLACED 1 | ||
#define HAVE_OPENCL 1 | ||
#define HAVE_MALLOC_H 0 | ||
#define HAVE_ALTIVEC 0 | ||
#define HAVE_ALTIVEC_H 0 | ||
#define HAVE_ARMV6 0 | ||
#define HAVE_ARMV6T2 0 | ||
#define HAVE_NEON 0 | ||
#define HAVE_BEOSTHREAD 0 | ||
#define HAVE_POSIXTHREAD 0 | ||
#define HAVE_SWSCALE 0 | ||
#define HAVE_LAVF 0 | ||
#define HAVE_FFMS 0 | ||
#define HAVE_GPAC 0 | ||
#define HAVE_CPU_COUNT 0 | ||
#define HAVE_THP 0 | ||
#define HAVE_LSMASH 0 | ||
#define HAVE_AS_FUNC 0 | ||
#define HAVE_INTEL_DISPATCHER 0 | ||
#define HAVE_MSA 0 | ||
#define HAVE_MMAP 0 | ||
#define HAVE_WINRT 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
mkdir -p build | ||
mkdir -p build-cross | ||
|
||
|
||
sudo mkdir -p /usr/local/i586-mingw-msvc | ||
sudo mkdir -p /usr/local/i586-mingw-msvc/icu | ||
sudo mkdir -p /usr/local/i586-mingw-msvc/icu/include | ||
sudo cp source/common/cmemory.h /usr/local/i586-mingw-msvc/icu/include | ||
|
||
# Build for HOST | ||
cd build/ | ||
../source/configure | ||
make -j12 | ||
cd .. | ||
|
||
# Build for Cross | ||
cd build-cross/ | ||
../source/configure --host=i686-w64-mingw32 --prefix=/usr/local/i586-mingw-msvc/icu \ | ||
--enable-static --disable-strict \ | ||
CPPFLAGS='-I/usr/local/i586-mingw-msvc/icu/include' \ | ||
LDFLAGS=-L/usr/local/i586-mingw-msvc/bundle-libs \ | ||
--with-cross-build=`pwd`/../build \ | ||
--with-data-packaging=library | ||
sudo make install | ||
cd .. | ||
echo DONE. |