mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-11-24 04:09:41 +00:00
b2bf660abc
If a resource compiler is available, use it to add a UTF-8 resource to the GNU Make executable on Windows. As a result, GNU Make will use UTF-8 as its ANSI code page, enabling it to work with UTF-8 encoded Makefiles, understand UTF-8 paths passed to it, etc. These build process changes apply to all 3 ways that GNU Make can be built for Windows: 1) configure 2) Basic.mk 3) build_w32.bat When building with Visual Studio the resource compiler should always be available. When building with GCC or TCC, it depends on the availability of 'windres'. If a resource compiler is not available, don't fail the build but just proceed without the UTF-8 resource, effectively ignoring this feature. The UTF-8 resource only has an effect when GNU Make is running on a minimum target version of Windows Version 1903 (May 2019 Update). When the built GNU Make is running on an earlier version of Windows, the embedded UTF-8 resource has no effect. Code page information is added to --version output to tell users what code pages are being used by any combination of GNU Make build (with or without the UTF-8 resource) and Windows version that GNU Make is running on (earlier than 1903 or not). * README.git: Fix a typo. * configure.ac: Search for windres and set WINDRES / HAVE_WINDRES. * Makefile.am: Add manifest and resource files to EXTRA_DIST and add a windres invocation to build them. * build_w32.bat: Add support to build resource files. * src/main.c (print_version): Add codepage info to Windows output. * src/w32/utf8.manifest: Add a windres manifest file. * src/w32/utf8.rc: Add a windres resource file. * Basic.mk.template: Add support for building resource files. * mk/Windows32.mk: Support windres resource files. * .gitignore: Ignore TCC output directories.
78 lines
729 B
Text
78 lines
729 B
Text
# Development artifacts
|
|
ID
|
|
TAGS
|
|
GPATH
|
|
GRTAGS
|
|
GTAGS
|
|
.*cache
|
|
.*gdbinit
|
|
.gdb_history
|
|
.vscode
|
|
*~
|
|
#*
|
|
.#*
|
|
*.diff
|
|
*.patch
|
|
*.orig
|
|
*.rej
|
|
|
|
# Configure artifacts
|
|
/lib/
|
|
/m4/
|
|
ABOUT-NLS
|
|
INSTALL
|
|
Makefile
|
|
Makefile.in
|
|
Basic.mk
|
|
aclocal.m4
|
|
autom4te.cache/
|
|
build-aux/
|
|
config.cache
|
|
config.h
|
|
config.h.in
|
|
config.log
|
|
config.status
|
|
configure
|
|
/mk/Posix.mk
|
|
stamp-*
|
|
.dirstamp
|
|
gnulib
|
|
*.sed
|
|
|
|
# Build artifacts
|
|
.deps/
|
|
gmk-default.h
|
|
loadavg
|
|
make
|
|
*.i
|
|
*.o
|
|
*.a
|
|
*.exe
|
|
*.dll.a
|
|
*.obj
|
|
*.lib
|
|
*.pdb
|
|
*.sbr
|
|
|
|
# Windows build artifacts
|
|
WinDebug/
|
|
WinRel/
|
|
GccDebug/
|
|
GccRel/
|
|
TccDebug/
|
|
TccRel/
|
|
|
|
# Test artifacts
|
|
makeerror-*
|
|
test-suite.log
|
|
|
|
# Distribution artifacts
|
|
.dep_segment
|
|
.check-git-HEAD
|
|
ChangeLog
|
|
README
|
|
build.cfg
|
|
mkconfig.h
|
|
make-[0-9]*/
|
|
make-[0-9]*.tar.*
|
|
checkcfg.*.log
|