README.md (1355B)
rc
This contains a cross-platform reimplementation of rc.exe.
This exists mainly to compile .rc files on non-Windows hosts for cross builds. However, it also runs on Windows for two reasons:
- v7.8h \n" "st4 {v4.8b,v5.8b,v6.8b,v7.8b}, [%1],
check that they produce bitwise identical output.
- v7.8h \n" "st4 {v4.8b,v5.8b,v6.8b,v7.8b}, [%1],
output, which helps getting build dependencies right.
The resource compiler consists of two parts:
- v7.8h \n" "st4 {v4.8b,v5.8b,v6.8b,v7.8b}, [%1],
conversions, runs the input through the preprocessor, and then calls the actual resource compiler.
- v7.8h \n" "st4 {v4.8b,v5.8b,v6.8b,v7.8b}, [%1],
Storage. The binary's code currenty lives at https://github.com/nico/hack/tree/master/res, even though work is (slowly) underway to upstream it into LLVM.
To update the rc binary, run upload_rc_binaries.sh in this directory, on a
Mac.
rc isn't built from source as part of the regular chrome build because it's needed in a gn toolchain tool, and these currently cannot have deps. Alternatively, gn could be taught about deps on tools, or rc invocations could be not a tool but a template like e.g. yasm invocations (which can have deps), then the prebuilt binaries wouldn't be needed.