Results 1 to 4 of 4

Thread: Which files are required to compile a project?

  1. #1

    Which files are required to compile a project?

    Hey everyone,

    I started writing pascal code again after a month of web-development.

    I'm currently setting up a repository for my engine. Both Delphi and Lazarus generate a lot of files and I'm pretty sure I don't have to commit them all into my repository, to make the project compile when I pull it out somwhere else. So:

    Which files are required to compile a Lazarus project?

    Thanks!
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  2. #2
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,108
    Blog Entries
    25
    Well depending on how much LCL you've used, all you should need at a bare minimum is:

    Project.lpi (xml setting for your project)
    Project.lpr (main body code)
    Units.pas (extra units)

    Stuff you may have added due to making an application instead of just a program are the Unit.lfm files which are the Lazarus form data.

    The rest of the compiler generated files such as .o, .ppu and .compiled are just for FPC to do it's magic for the linker.

    Here is a Windows batch file that I use called Clean.bat:
    Code:
    del *.o
    del *.ppu
    del *.a
    
    del *.compiled
    
    del *.ini
    del *.log
    
    del *.dcu
    del *.~pas
    del *.~dpr
    del *.bak
    Jason McMillen
    Pascal Game Development
    Co-Founder





  3. #3
    Thanks.

    Here, Lazarus also seems to generate .manifest files and a directory called "backup". I guess I can ignore/delete those too?

    I'm also not sure about .res and .rc files.
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  4. #4
    PGDCE Developer de_jean_7777's Avatar
    Join Date
    Nov 2006
    Location
    Bosnia and Herzegovina (Herzegovina)
    Posts
    243
    Quote Originally Posted by chronozphere View Post
    Thanks.

    Here, Lazarus also seems to generate .manifest files and a directory called "backup". I guess I can ignore/delete those too?

    I'm also not sure about .res and .rc files.
    Those files are automatically generated on compile time and you don't need them, so it's safe to delete them. The "backup" directory are backups of source files, so you can revert changes you made.
    In defeat we learn.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Comodo SSL