| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[MKSHELLLINK] Support creating Unicode-aware shortcuts (#8936) Support the creation of shortcuts that can use Unicode versions of their name (description), relative path, working directory, command- line arguments, and icon location. This option can be selected at runtime with a switch. Additionally: - Ensure that `wchar_t` is 16-bit wide. - Introduce and use a "poor-man" ANSI-to-UTF16LE `my_mbstowcs()` routine to convert the ANSI strings, for the Unicode scenario mentioned above. We cannot use the host mbstowcs() routine, since on *nix systems the iconv library being used may have been compiled with a 32-bit `wchar_t` (even if the tool is compiled with: `-fshort-wchar -fwide-exec-charset=UTF-16LE`), as this is the case with the GitHub actions build bots. | 4 个月前 | |
[BOOTDATA][CMAKE][MKSHELLLINK] Improve shell link shortcuts creation for the LiveImage (#8936) CORE-15156, CORE-19691, CORE-19692 Finally get rid of the livecd_start.cmd hack introduced waaaay back in commit ff6d7b0236 (r54514)! See also commits ea682b6909 (r54512) and 71867403fd (r54513). For target paths, use the shell "special shell folder" syntax: `shell:windows\...` or `shell:system\...`, introduced in commit 7b081be46d (PR #7158) by Whindmar Saksit. Specify an explicit icon path and index for the "Read Me.lnk" shortcut. Includes ideas from PR #7154 by Katayama Hirofumi MZ. The generated shell links are confirmed to work on ReactOS, but also on Windows 2003 and Windows 7. - Change the MKSHELLLINK icon parameter syntax to be: `-i [icon_path[,nr]]` where, either both `icon_path` and icon index are given, separated by a comma ',' , or, either the `icon_path` is given but the index is optional (default: 0), or, only the icon index is given, in which case the icon path is set to the target instead. - Use a `VERBATIM` command-line for `add_custom_command()`, so that *nix builds can cope with parameters containing backslashes. - The shortcut target path, working directory, command-line arguments, and icon path all may specify explicit Win32 environment variables (like `%SystemRoot%`, `%HOMEDRIVE%`, etc.). Because these environment variables are specified as data given to the build tool via CMake, **AND** we have to workaround keeping these variables unexpanded when they are transmitted to the tool via CMD.EXE (on builds made on Windows), specify these variables in an "escaped" format, using `^%` instead: `^%SystemRoot^%`, etc. Additionally these paths may be explicitly quoted and passed that way to the MKSHELLLINK tool. In order to deal with both unquoting the strings and unescaping the environment variables, introduce a helper function and invoke them on the aforementioned strings. | 4 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 4 个月前 | ||
| 4 个月前 |