1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
llvm-mirror/test/tools/llvm-rc
Zachary Turner e5d5fbb1ef [llvm-rc] Serialize CURSOR and ICON resources to .res
This is part 6 of llvm-rc serialization.

This adds ability to output cursors and icons as resources.

Unfortunately, we can't just copy .cur or .ico files to output - as each
file might contain multiple images, each of them needs to be unpacked
and stored as a separate resource. This forces us to parse cursor and
icon contents. (Fortunately, these formats are pretty similar and can be
processed by mostly common code).

As test files are binary, here is a short explanation of .cur and .ico
files stored:

cursor.cur, cursor-8.cur, cursor-32.cur are sample correct cursor files,
differing in their bit depth.

icon-old.ico, icon-new.ico are sample correct icon files;

icon-png.ico is a sample correct icon file in PNG format (instead of
usual BMP);

cursor-eof.cur is an incorrect cursor file - this is cursor.cur with
some of its final bytes removed.

cursor-bad-offset.cur is an incorrect cursor file - image header states
that image data begins at offset 0xFFFFFFFF.

Sample correct cursors and icons were created by Nico Weber.

Patch by Marek Sokolowski
Differential Revision: https://reviews.llvm.org/D37878

llvm-svn: 315109
2017-10-06 21:25:44 +00:00
..
Inputs [llvm-rc] Serialize CURSOR and ICON resources to .res 2017-10-06 21:25:44 +00:00
helpmsg.test [llvm-rc] Serialize HTML resources to .res files (serialization, pt 1). 2017-09-29 17:14:09 +00:00
parser-expr.test [llvm-rc] Serialize HTML resources to .res files (serialization, pt 1). 2017-09-29 17:14:09 +00:00
parser.test [llvm-rc] Add optional serialization support for DIALOG(EX) resources. 2017-10-06 20:51:20 +00:00
tag-accelerators.test [llvm-rc] Serialize ACCELERATORS to .res files (serialization, pt 2). 2017-09-29 19:07:44 +00:00
tag-dialog.test [llvm-rc] Add optional serialization support for DIALOG(EX) resources. 2017-10-06 20:51:20 +00:00
tag-html.test [llvm-rc] Serialize HTML resources to .res files (serialization, pt 1). 2017-09-29 17:14:09 +00:00
tag-icon-cursor.test [llvm-rc] Serialize CURSOR and ICON resources to .res 2017-10-06 21:25:44 +00:00
tag-menu.test [llvm-rc] Serialize MENU resources to .res files (serialization, pt 3). 2017-09-29 22:25:05 +00:00
tokenizer.test Reapply: [llvm-rc] Add basic RC scripts parsing ability. 2017-08-18 18:24:17 +00:00