[fpc-pascal] Resource compilation

Martok listbox at martoks-place.de
Sat Sep 23 22:31:12 CEST 2017


Hi all,

the $R directive accepts resource scripts (RC) and compiles the RES file from it
on demand.

However, that only happens if the RES file does not exist - if it does, the
resource compiler is never invoked. Even clean-building the unit from source
does not recompile the resource file. This is a bit awkward when the resource
script (or any of the linked files) is changed: the only way to recreate the
resource unit appears to be removing both the compiled unit and resource file.

Is there some sort of flag for this? I'd be fine with just recompiling the
resource file every time the unit is compiled, windres is fast enough...

Thanks,
Martok




More information about the fpc-pascal mailing list