mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-22 17:42:40 +00:00
Merge pull request #89 from diorcety-ctng/windows-target
Windows target
This commit is contained in:
commit
9e01e15493
@ -16,6 +16,35 @@ choice
|
|||||||
|
|
||||||
# Don't remove next line
|
# Don't remove next line
|
||||||
# CT_INSERT_VERSION_BELOW
|
# CT_INSERT_VERSION_BELOW
|
||||||
|
|
||||||
|
config WINAPI_V_DEVEL
|
||||||
|
bool
|
||||||
|
prompt "devel"
|
||||||
|
|
||||||
|
config WINAPI_V_4_0_2
|
||||||
|
bool
|
||||||
|
prompt "4.0.2"
|
||||||
|
|
||||||
|
config WINAPI_V_4_0_1
|
||||||
|
bool
|
||||||
|
prompt "4.0.1"
|
||||||
|
|
||||||
|
config WINAPI_V_4_0_0
|
||||||
|
bool
|
||||||
|
prompt "4.0.0"
|
||||||
|
|
||||||
|
config WINAPI_V_3_1_0
|
||||||
|
bool
|
||||||
|
prompt "3.1.0"
|
||||||
|
|
||||||
|
config WINAPI_V_3_0_0
|
||||||
|
bool
|
||||||
|
prompt "3.0.0"
|
||||||
|
|
||||||
|
config WINAPI_V_2_0_8
|
||||||
|
bool
|
||||||
|
prompt "2.0.8"
|
||||||
|
|
||||||
config WINAPI_V_2_0_7
|
config WINAPI_V_2_0_7
|
||||||
bool
|
bool
|
||||||
prompt "2.0.7"
|
prompt "2.0.7"
|
||||||
@ -31,6 +60,13 @@ config WINAPI_VERSION
|
|||||||
prompt "Windows API version" if WINAPI_V_select
|
prompt "Windows API version" if WINAPI_V_select
|
||||||
# Don't remove next line
|
# Don't remove next line
|
||||||
# CT_INSERT_VERSION_STRING_BELOW
|
# CT_INSERT_VERSION_STRING_BELOW
|
||||||
|
default "devel" if WINAPI_V_DEVEL
|
||||||
|
default "4.0.2" if WINAPI_V_4_0_2
|
||||||
|
default "4.0.1" if WINAPI_V_4_0_1
|
||||||
|
default "4.0.0" if WINAPI_V_4_0_0
|
||||||
|
default "3.1.0" if WINAPI_V_3_1_0
|
||||||
|
default "3.0.0" if WINAPI_V_3_0_0
|
||||||
|
default "2.0.8" if WINAPI_V_2_0_8
|
||||||
default "2.0.7" if WINAPI_V_2_0_7
|
default "2.0.7" if WINAPI_V_2_0_7
|
||||||
help
|
help
|
||||||
Enter the version number of the Windows API files to use
|
Enter the version number of the Windows API files to use
|
||||||
|
@ -1,15 +1,25 @@
|
|||||||
# Copyright 2012 Yann Diorcet
|
# Copyright 2012 Yann Diorcet
|
||||||
# Licensed under the GPL v2. See COPYING in the root of this package
|
# Licensed under the GPL v2. See COPYING in the root of this package
|
||||||
|
|
||||||
do_libc_get() {
|
CT_WINAPI_VERSION_DOWNLOADED=
|
||||||
CT_GetFile "mingw-w64-v${CT_WINAPI_VERSION}" \
|
|
||||||
http://downloads.sourceforge.net/sourceforge/mingw-w64
|
do_libc_get() {
|
||||||
|
CT_DoStep INFO "Fetching mingw-w64 source for ${CT_WINAPI_VERSION}"
|
||||||
|
if [ "${CT_WINAPI_VERSION}" = "devel" ]; then
|
||||||
|
CT_GetGit "mingw-w64" "ref=HEAD" "git://git.code.sf.net/p/mingw-w64/mingw-w64" CT_WINAPI_VERSION_DOWNLOADED
|
||||||
|
CT_DoLog EXTRA "Fetched as ${CT_WINAPI_VERSION_DOWNLOADED}"
|
||||||
|
else
|
||||||
|
CT_GetFile "mingw-w64-v${CT_WINAPI_VERSION}" \
|
||||||
|
http://downloads.sourceforge.net/sourceforge/mingw-w64
|
||||||
|
CT_WINAPI_VERSION_DOWNLOADED=v${CT_WINAPI_VERSION}
|
||||||
|
fi
|
||||||
|
CT_EndStep
|
||||||
}
|
}
|
||||||
|
|
||||||
do_libc_extract() {
|
do_libc_extract() {
|
||||||
CT_Extract "mingw-w64-v${CT_WINAPI_VERSION}"
|
CT_Extract "mingw-w64-${CT_WINAPI_VERSION_DOWNLOADED}"
|
||||||
CT_Pushd "${CT_SRC_DIR}/mingw-w64-v${CT_WINAPI_VERSION}/"
|
CT_Pushd "${CT_SRC_DIR}/mingw-w64-${CT_WINAPI_VERSION_DOWNLOADED}/"
|
||||||
CT_Patch nochdir mingw-w64 "${CT_WINAPI_VERSION}"
|
CT_Patch nochdir mingw-w64 "${CT_WINAPI_VERSION_DOWNLOADED}"
|
||||||
CT_Popd
|
CT_Popd
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -42,7 +52,7 @@ do_libc_start_files() {
|
|||||||
|
|
||||||
do_set_mingw_install_prefix
|
do_set_mingw_install_prefix
|
||||||
CT_DoExecLog CFG \
|
CT_DoExecLog CFG \
|
||||||
"${CT_SRC_DIR}/mingw-w64-v${CT_WINAPI_VERSION}/mingw-w64-headers/configure" \
|
"${CT_SRC_DIR}/mingw-w64-${CT_WINAPI_VERSION_DOWNLOADED}/mingw-w64-headers/configure" \
|
||||||
--build=${CT_BUILD} \
|
--build=${CT_BUILD} \
|
||||||
--host=${CT_TARGET} \
|
--host=${CT_TARGET} \
|
||||||
--prefix=${MINGW_INSTALL_PREFIX} \
|
--prefix=${MINGW_INSTALL_PREFIX} \
|
||||||
@ -87,12 +97,12 @@ do_libc() {
|
|||||||
CT_mkdir_pushd "${CT_BUILD_DIR}/build-mingw-w64-crt"
|
CT_mkdir_pushd "${CT_BUILD_DIR}/build-mingw-w64-crt"
|
||||||
|
|
||||||
do_set_mingw_install_prefix
|
do_set_mingw_install_prefix
|
||||||
CT_DoExecLog CFG \
|
CT_DoExecLog CFG \
|
||||||
"${CT_SRC_DIR}/mingw-w64-v${CT_WINAPI_VERSION}/mingw-w64-crt/configure" \
|
"${CT_SRC_DIR}/mingw-w64-${CT_WINAPI_VERSION_DOWNLOADED}/mingw-w64-crt/configure" \
|
||||||
--with-sysroot=${CT_SYSROOT_DIR} \
|
--with-sysroot=${CT_SYSROOT_DIR} \
|
||||||
--prefix=${MINGW_INSTALL_PREFIX} \
|
--prefix=${MINGW_INSTALL_PREFIX} \
|
||||||
--build=${CT_BUILD} \
|
--build=${CT_BUILD} \
|
||||||
--host=${CT_TARGET} \
|
--host=${CT_TARGET} \
|
||||||
|
|
||||||
CT_DoLog EXTRA "Building mingw-w64-crt"
|
CT_DoLog EXTRA "Building mingw-w64-crt"
|
||||||
CT_DoExecLog ALL make ${JOBSFLAGS}
|
CT_DoExecLog ALL make ${JOBSFLAGS}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user