1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/tools/llvm-rc
Martin Storsjö 2a1f29ca9f [llvm-rc] Add a GNU windres-like frontend to llvm-rc
This primarily parses a different set of options and invokes the same
resource compiler as llvm-rc normally. Additionally, it can convert
directly to an object file (which in MSVC style setups is done with the
separate cvtres tool, or by the linker).

(GNU windres also supports other conversions; from coff object file back
to .res, and from .res or object file back to .rc form; that's not yet
implemented.)

The other bigger complication lies in being able to imply or pass the
intended target triple, to let clang find the corresponding mingw sysroot
for finding include files, and for specifying the default output object
machine format.

It can be implied from the tool triple prefix, like
`<triple>-[llvm-]windres` or picked up from the windres option e.g.
`-F pe-x86-64`. In GNU windres, that option takes BFD style format names
such as pe-i386 or pe-x86-64. As libbfd in binutils doesn't support
Windows on ARM, there's no such canonical name for the ARM targets.
Therefore, as an LLVM specific extension, this option is extended to
allow passing full triples, too.

Differential Revision: https://reviews.llvm.org/D100756
2021-04-26 22:04:29 +03:00
..
CMakeLists.txt [llvm-rc] Add a GNU windres-like frontend to llvm-rc 2021-04-26 22:04:29 +03:00
llvm-rc.cpp [llvm-rc] Add a GNU windres-like frontend to llvm-rc 2021-04-26 22:04:29 +03:00
Opts.td [llvm-rc] Run clang to preprocess input files 2021-04-21 11:50:10 +03:00
ResourceFileWriter.cpp [llvm-rc] Fix handling of the /X option to match its documentation and rc.exe 2021-04-20 09:22:43 +03:00
ResourceFileWriter.h [llvm-rc] Fix handling of the /X option to match its documentation and rc.exe 2021-04-20 09:22:43 +03:00
ResourceScriptCppFilter.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ResourceScriptCppFilter.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ResourceScriptParser.cpp [llvm-rc] Allow omitting components from VERSIONINFO versions 2020-09-16 09:34:26 +03:00
ResourceScriptParser.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ResourceScriptStmt.cpp [llvm-rc] Allow string table values split into multiple string literals 2020-08-05 08:59:32 +03:00
ResourceScriptStmt.h [llvm-rc] Allow string table values split into multiple string literals 2020-08-05 08:59:32 +03:00
ResourceScriptToken.cpp std::isspace -> llvm::isSpace (where locale should be ignored) 2020-05-02 15:36:04 +02:00
ResourceScriptToken.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ResourceScriptTokenList.def Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ResourceVisitor.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
WindresOpts.td [llvm-rc] Add a GNU windres-like frontend to llvm-rc 2021-04-26 22:04:29 +03:00