Welcome, Guest
Username: Password: Remember me
General discussions, feature requests for CodeTyphon Project and discussions that don't fit in any of the other specific CodeTyphon forum categories.
  • Page:
  • 1

TOPIC:

LPI files - what are they ? 11 years 9 months ago #3161

  • Arioch
  • Arioch's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 59
  • Thank you received: 1
Does LPI file contain any required info or is it just temporary file created azarus for its internal needs like *.ppu?

The question is - i am, working on 3rd-party library and usually i have demo project open like my testbed.

May main concern is Delphi XE2, while original author insists on Lazarus and D7 support.
While i can not and do not want to have D7, i installed CT 3.10 and check FPC compatibility periodically.

But... when i commit some change in the lib - demo project is also changed. Sometimes it is needed change as when i changed library interface.

But sometimes i seemingly did not changed anything in demo except for running demo project on one or another computer.

Still Git wants to pull LPI file with a Library commit and that to me looks like garbage. Or maybe not ?

Or perhaps i can just ban *.lpi from Git liek i banned *.dcu and *.ppu ?

Please Log in or Create an account to join the conversation.

LPI files - what are they ? 11 years 9 months ago #3260

  • 4aiman
  • 4aiman's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Comix creator
  • Posts: 227
  • Thank you received: 12
Why don't you open it with any text editor and see for yourself?
One look costs 1000 words ;)
コンソールマニアック

Please Log in or Create an account to join the conversation.

LPI files - what are they ? 11 years 9 months ago #3265

  • Arioch
  • Arioch's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 59
  • Thank you received: 1
because it doesn't tell me if this file is temporary cache or important data.

for example open .map file in Notepad - and what ? you can see WHAT is there but not WHY it is where.
Looking into the content without understanding dependencies in the FPC process flow - which is external knowledge i lack about LPI - would not tell you if it is safe to loose/delete the file or just left it non-updated.

Please Log in or Create an account to join the conversation.

LPI files - what are they ? 11 years 9 months ago #3270

  • 4aiman
  • 4aiman's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Comix creator
  • Posts: 227
  • Thank you received: 12
You didn't look, did you?
Ok. I'll stir you:
<LazDoc Paths="\usr\lib\lazarus\components\pl_GLScene\lib\i386-linux"/>
Does this tell you anything? What does it look like? "Like a path to some libraries" should be your answer.
<IncludeFiles Value="$(ProjOutDir)"/>
            <Libraries Value="\usr\lib\lazarus\components\pl_GLScene\source\FileFormats\;\media\2Tb\Рабочий стол\me3_adv\lib-arm-pi\"/>
            <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
Does this tell you anything? What does it look like? "Like an output folder parameter" should be your answer.
<CodeGeneration>
            <TargetCPU Value="arm"/>
            <TargetOS Value="linux"/>
            <Optimizations>
              <OptimizationLevel Value="0"/>
            </Optimizations>
          </CodeGeneration>
Does this tell you anything? What does it look like? "Like a compiler options" should be your answer.

So even with this few examples it should be obvious, that "The main file of a Lazarus project is the .lpi file (Lazarus Project Information)." (from wiki: wiki.freepascal.org/Lazarus_For_Delphi_Users).
コンソールマニアック

Please Log in or Create an account to join the conversation.

Last edit: by 4aiman.

LPI files - what are they ? 11 years 9 months ago #3291

  • Arioch
  • Arioch's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 59
  • Thank you received: 1
Wiki link is good. Thank you.

All the rest is not related. If some setting is contained in some cache - that does not mean cache is primary source.
I saw those settings inside, what i asked was exactly if this is the primary source or a cache that can and should be recreated as hoc.

Please Log in or Create an account to join the conversation.

LPI files - what are they ? 11 years 9 months ago #3294

  • 4aiman
  • 4aiman's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Comix creator
  • Posts: 227
  • Thank you received: 12
The rest IS related, 'cause that should have stirred you to look further and eventualy find an answer w/o wiki ;)

Anyway, I'm glad you're satisfied with wiki link. So, YW!
コンソールマニアック

Please Log in or Create an account to join the conversation.

  • Page:
  • 1