summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-01-22 17:14:47 (GMT)
committerGitHub <noreply@github.com>2017-01-22 17:14:47 (GMT)
commit76099962bfda129b88f75e2191e26a8295b4b286 (patch)
tree0472131c4972e5548d30a4249ae2425e55057043 /scripts
parent83dfa978050744b066e8fe2543c4810376964522 (diff)
parent1f6c6d3f328bba62244975c5a73b7bd4a94ee3dc (diff)
Merge pull request #462 from lihanglin/master
mingw: compile the mingw-w64 companion tools as well
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/libc/mingw.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/scripts/build/libc/mingw.sh b/scripts/build/libc/mingw.sh
index 705f8c9..fddf1f7 100644
--- a/scripts/build/libc/mingw.sh
+++ b/scripts/build/libc/mingw.sh
@@ -83,6 +83,31 @@ do_check_mingw_vendor_tuple()
fi
}
+do_mingw_tools() {
+ for f in gendef genidl genlib genpeimg widl
+ do
+ if [[ ! -d "${CT_SRC_DIR}/mingw-w64-${CT_WINAPI_VERSION_DOWNLOADED}/mingw-w64-tools/${f}" ]]; then
+ continue;
+ fi
+
+ CT_mkdir_pushd "${CT_BUILD_DIR}/build-mingw-w64-tools/${f}"
+
+ CT_DoExecLog CFG \
+ "${CT_SRC_DIR}/mingw-w64-${CT_WINAPI_VERSION_DOWNLOADED}/mingw-w64-tools/${f}/configure" \
+ --build=${CT_BUILD} \
+ --host=${CT_HOST} \
+ --target=${CT_TARGET} \
+ --program-prefix=${CT_TARGET}- \
+ --prefix="${CT_PREFIX_DIR}"
+
+ CT_DoExecLog ALL ${make} ${JOBSFLAGS}
+
+ CT_DoExecLog ALL ${make} install
+
+ CT_Popd
+ done
+}
+
do_libc() {
do_check_mingw_vendor_tuple
@@ -109,6 +134,11 @@ do_libc() {
CT_DoLog EXTRA "Installing mingw-w64-crt"
CT_DoExecLog ALL make install DESTDIR=${CT_SYSROOT_DIR}
+ if [[ ${CT_MINGW_TOOLS} == "y" ]]; then
+ CT_DoLog EXTRA "Installing mingw-w64 companion tools"
+ do_mingw_tools
+ fi
+
CT_EndStep
if [ "${CT_THREADS}" = "posix" ]; then