View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0024482 | FPC | Utilities | public | 2013-05-26 11:57 | 2020-09-28 23:01 |
Reporter | Assigned To | Sven Barth | |||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | resolved | Resolution | fixed | ||
Platform | x64 (with x86 compiler) | OS | Windows | ||
Product Version | 2.7.1 | ||||
Fixed in Version | 3.3.1 | ||||
Summary | 0024482: [Feature request] Expand fpcres with resource compiler feature | ||||
Description | fcl-res provides resource management capability, including support for binary executables and .res files. fpcres could be expanded to work as a resource compiler: e.g. go from a .rc resource script to res/object file. An additional bonus would be that it would allow better interoperability with tools that generate .rc files Advantages: - cross platform (if platforms do not support "real" resources, fcl-res could write out a .res file and the fpc resources code could be modified to look for that .res if no resources are found in the executable) - pure Pascal, distributed with FPC, losing an external dependency For this to work, fcl-res will need to be expanded with a - resource reader for .rc scripts (+ the referenced files) - resource writer for .rc scripts (+ writing the resources as files) - optional but useful for testing and using fpcres as resource decompiler - modifications in the fpc code that calls the resource compiler so it uses fcl-res when needed Optionally: - test that uses fpcres to compile a resource, extracts the resource and compares them - previously mentioned code to read .res files as resources if necessary | ||||
Additional Information | While a resource compiler is included in the Windows FPC installers, FPC devs/maintainers do not want mingw binutils (containing the windres) resource compiler as a dependency for e.g. Debian see thread http://www.mail-archive.com/fpc-pascal@lists.freepascal.org/msg30191.html and issue 23092 Specs for .rc format - note we only need a subset that covers FPC usage: http://msdn.microsoft.com/en-us/library/windows/desktop/aa381043%28v=vs.85%29.aspx | ||||
Tags | No tags attached. | ||||
Fixed in Revision | 46397 | ||||
FPCOldBugId | 0 | ||||
FPCTarget | - | ||||
Attached Files |
|
has duplicate | 0024544 | resolved | Jonas Maebe | [feature request] FPC doesn't have its own RC compiler |
|
This idea is around since resources were implemented in 2.3.1. No one had the time to do this though, so the usual statement applies: patches are welcome. :) Regards, Sven |
|
Maybe this is of some use: http://www.wilsonc.demon.co.uk/d9resourceutils.htm (via http://www.angusj.com/resourcehacker then http://www.wilsonc.demon.co.uk/d10resourceeditor.htm) Unfortunately, and strangely, the writing&reading of resourcefiles seems to be the least document class and doesn't even include a license header :-/ |
|
There are no problems with manipulating of resources inside *.res files. We already have a good fpc package for that and Lazarus already uses it facilities. The problem is to write a good *.rc file parser. I already started one few years ago. I will try to find and attach it sources here. |
|
|
|
Thanks, Paul. Have meanwhile been working on "resource writer for .rc scripts (+ writing the resources as files)"; will now try to incorporate Paul's .rc parser code to get "resource reader for .rc scripts (+ the referenced files)" Current code at https://bitbucket.org/reiniero/fpc_laz_patch_playground/src directory resource. Will report with workable patch or requests for help. Thanks. |
|
fpcres supports parsing of RC files now, so I'm resolving this. :) |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-05-26 11:57 |
|
New Issue | |
2013-05-26 15:27 | Sven Barth | Note Added: 0067878 | |
2013-05-27 09:10 |
|
Additional Information Updated | View Revisions |
2013-06-03 17:50 | Jonas Maebe | Relationship added | has duplicate 0024544 |
2013-06-04 09:50 | Flávio Etrusco | Note Added: 0068035 | |
2013-06-04 09:51 | Flávio Etrusco | Note Edited: 0068035 | View Revisions |
2013-09-17 10:42 | Paul Ishenin | Note Added: 0070133 | |
2013-09-17 10:57 | Paul Ishenin | File Added: frcc.zip | |
2013-09-17 11:39 |
|
Note Added: 0070135 | |
2014-09-17 19:55 | Marco van de Voort | Severity | minor => feature |
2020-09-28 23:01 | Sven Barth | Assigned To | => Sven Barth |
2020-09-28 23:01 | Sven Barth | Status | new => resolved |
2020-09-28 23:01 | Sven Barth | Resolution | open => fixed |
2020-09-28 23:01 | Sven Barth | Fixed in Version | => 3.3.1 |
2020-09-28 23:01 | Sven Barth | Fixed in Revision | => 46397 |
2020-09-28 23:01 | Sven Barth | FPCTarget | => - |
2020-09-28 23:01 | Sven Barth | Note Added: 0125946 |