On 30/07/2020 19:11, Bo Berglund via lazarus wrote:
When talking about project files, I wonder what is the advantage of
adding the files into the project over just having them reside in the
project source directory?
I have noted that whenever I start a new unit in the IDE File menu
this file gets added to the project along with the lpr file.
The compiler always searches the whole directory/ies, when encounter a unit in uses.

The IDE, I don't know what it uses, and when, and whatfor.

And are "project files" going to be listed in the lpi or lps file?
Because they are not in the lpr file...
They will go into:  lpi  Lazarus Project Info

"lps" / Project Session is optional. And stores info such as which files are open in which tab, how are they scrolled/folded, where is the cursor ......
lps can be embedded in lpi, can be in its on file, or not exist at all

Which of these should go into SVN control?
<project>.lpi is what I have there now.
*.lpr ( that is actually a normal source, but generated by the IDE)
*.lpi
.res / .ico (if you did nothing special it can be regenerated, but otherwise)

Not in version control is usually .lps (because if there are several people working on the project, they have each there own session). You can even tell the IDE to store lps files in the primary-conf-path, instead of the project folder.

--
_______________________________________________
lazarus mailing list
[email protected]
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to