Forum > Designer

What file is that ?

(1/2) > >>

dbannon:
I refer to *.res and *.compiled files.

The wiki, https://wiki.freepascal.org/Lazarus_project_files, says that .compiled files should not be under a vcs and does not mention .res files.

The same page refers us to lazarus.gitignore on GitHub that says both should not be saved under git.

The official Lazarus Tree contains both .compiled and .res files.  The .gitignore file does mention link*.res but not .compiled at all.

Thoughts ?

Davo

HeavyUser:

--- Quote from: dbannon on March 09, 2022, 06:03:57 am ---I refer to *.res and *.compiled files.

The wiki, https://wiki.freepascal.org/Lazarus_project_files, says that .compiled files should not be under a vcs and does not mention .res files.

The same page refers us to lazarus.gitignore on GitHub that says both should not be saved under git.

The official Lazarus Tree contains both .compiled and .res files.  The .gitignore file does mention link*.res but not .compiled at all.

Thoughts ?

Davo

--- End quote ---
.compiled files are generated by the compiler every time so no they should not be in vcs. .Res are resource files they are used to link in .... well..... resources the application Icon, the windows manifest, resource strings defined by the components you use sounds mouse cursors and the rest of external resources that are going to be used from your application.
Those are provided by the component developer and they should be included in your vcs.

marcov:
Res is a bit complex in that sense. There are essentially three types in Delphi:


* auto generated .res files (for forms etc).
* other res files for which you have source (.rc) and are declared with the RC file in project or source like {$R 'logo.res' 'logo.rc'}
* other res files for which you don't have source.
So category one shouldn't be in SVN (so essentially same as other pregenerated files like  .dcu/.o or .ppu).  Category two essentially also not, since they can be regenerated.

Finally category 3, that should be kept. In older Delphi these were often files to e.g. enable themes while the Delphi version didn't know that windows version. This is less of a problem with Lazarus.

You can also convert category 2 to 3 to simply including the .res (removing the .rc source), so that you don't have to add e.g. an image to SVN etc)

Note that the .res situation is still in flux as Free Pascal is switching from windres to an own resource compiler, which makes using it easier.

AlexTP:
@marcov,
I added your info to the wiki - https://wiki.freepascal.org/Lazarus_project_files#Project_files_extensions

PascalDragon:

--- Quote from: HeavyUser on March 09, 2022, 06:11:15 am ---.compiled files are generated by the compiler every time so no they should not be in vcs.
--- End quote ---

Just to clarify: the compiler does not generate any .compiled files. They are created by some build system (make, fpmake, lazbuild).

Navigation

[0] Message Index

[#] Next page

Go to full version