aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/mk_mingw64u_defconfig35
1 files changed, 35 insertions, 0 deletions
diff --git a/scripts/mk_mingw64u_defconfig b/scripts/mk_mingw64u_defconfig
new file mode 100755
index 000000000..3cca78e5b
--- /dev/null
+++ b/scripts/mk_mingw64u_defconfig
@@ -0,0 +1,35 @@
1#!/bin/sh
2
3configs=$(dirname -- "$0")/../configs
4
5# replace each FOO=bar argument with -e 's/.*FOO.*/FOO=bar/', then sed "$@"
6set_build_opts() {
7 for v; do
8 set -- "$@" -e "s/.*${v%%=*}.*/$v/"
9 shift
10 done
11 sed "$@"
12}
13
14
15# Create unicode configs/mingw64u_defconfig from configs/mingw64_defconfig
16# by flipping some build options to enable:
17# - UTF8 manifest to support unicode on win 10 (filenames, etc).
18# - UTF8 terminal input (shell prompt, read).
19# - UTF8 editing - codepoint awareness (prompt, read):
20# - Builtin libc unicode functions (mbstowcs etc - no UNICODE_USING_LOCALE).
21# - Dynamic unicode based on ANSI codepage and ENV (CHECK_UNICODE_IN_ENV).
22# - Screen-width awareness (COMBINING_WCHARS, WIDE_WCHARS)
23# - Full unicode range (U+10FFFF - LAST_SUPPORTED_WCHAR=1114111)
24
25set_build_opts \
26 CONFIG_FEATURE_UTF8_MANIFEST=y \
27 CONFIG_FEATURE_UTF8_INPUT=y \
28 CONFIG_UNICODE_SUPPORT=y \
29 CONFIG_FEATURE_CHECK_UNICODE_IN_ENV=y \
30 CONFIG_SUBST_WCHAR=63 \
31 CONFIG_LAST_SUPPORTED_WCHAR=1114111 \
32 CONFIG_UNICODE_COMBINING_WCHARS=y \
33 CONFIG_UNICODE_WIDE_WCHARS=y \
34 < "$configs"/mingw64_defconfig \
35 > "$configs"/mingw64u_defconfig