Skip to content

Commit

Permalink
[CROSS_BUILD][WIN32] Update bootstrap scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Artanejp committed Aug 17, 2016
1 parent 8741019 commit cf226fd
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 0 deletions.
18 changes: 18 additions & 0 deletions source/tool/cross-build/Qt5.7/config_sample.sh
@@ -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 \

2 changes: 2 additions & 0 deletions source/tool/cross-build/Qt5.7/make_cross.sh
@@ -0,0 +1,2 @@
#!/bin/sh
make CROSS_COMPILE=i686-w64-mingw32- $@
36 changes: 36 additions & 0 deletions source/tool/cross-build/ffmpeg/config.h
@@ -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
28 changes: 28 additions & 0 deletions source/tool/cross-build/libICU/bootstrap_cross_libicu.sh
@@ -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.

0 comments on commit cf226fd

Please sign in to comment.