Recent

Author Topic: How to compile project from script  (Read 356 times)

Packs

  • Sr. Member
  • ****
  • Posts: 485
How to compile project from script
« on: March 13, 2025, 02:07:18 pm »
How to compile project from script or bat file

cdbc

  • Hero Member
  • *****
  • Posts: 2084
    • http://www.cdbc.dk
Re: How to compile project from script
« Reply #1 on: March 13, 2025, 04:26:19 pm »
Hi
Hmmm, try 'LazBuild'...
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 3.6 up until Jan 2024 from then on it's both above &: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 4.99

paule32

  • Sr. Member
  • ****
  • Posts: 383
Re: How to compile project from script
« Reply #2 on: March 15, 2025, 11:20:04 am »
in the Lazarus Settings for the current Project, youi can find a Option: "All Options".
Copy this Text and place it in a Bash shell Script.

- dont forget to set a sheba !
- dont forget to add a backslash after each optione line \

like:
Code: Pascal  [Select][+][-]
  1. #!/bin/bash
  2. fpc <the options goes there> \
  3.      <other option goes there> \
  4.      ...
MS-IIS - Internet Information Server, Apache, PHP/HTML/CSS, MinGW-32/64 MSys2 GNU C/C++ 13 (-stdc++20), FPC 3.2.2
A Friend in need, is a Friend indeed.

MarkMLl

  • Hero Member
  • *****
  • Posts: 8364
Re: How to compile project from script
« Reply #3 on: March 15, 2025, 11:43:42 am »
in the Lazarus Settings for the current Project, youi can find a Option: "All Options".
Copy this Text and place it in a Bash shell Script.

- dont forget to set a sheba !

First, it's a shebang, not a sheba.

Second, you're assuming that OP's using Linux or some other variant of unix. I believe that in actual fact he's using Windows, but more fool him for not giving people enough info to answer his question.

Quote
- dont forget to add a backslash after each optione line \

like:
Code: Pascal  [Select][+][-]
  1. #!/bin/bash
  2. fpc <the options goes there> \
  3.      <other option goes there> \
  4.      ...

You don't need any of that crap, since lazbuild picks up the options from the .lpi file: see the earlier answer.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018