Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-07

Build and macros

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Kjow

Hi all,

with macros (http://wiki.lazarus.freepascal.org/IDE_Macros_in_paths_and_filenames) I see that I can build project binary with the target CPU.

e.g. putting in "Target file name" this: MyProject-$(TargetCPU) the output binary will be something like this: MyProject-arm or MyProject-i386

But I didn't find the way to include the build number at the end of file name (eg. MyProject-$(TargetCPU)-$(BuildVersionNumber) -> MyProject-i386-0.0.0.1). Is it possible in some ways?

Thanks,
Kjow

Reply by email

Mattias Gaertner
to Kjow
Show quoted text 11 lines
Hi all, with macros (http://wiki.lazarus.freepascal.org/IDE_Macros_in_paths_and_filenames) I see that I can build project binary with the target CPU. e.g. putting in "Target file name" this: MyProject-$(TargetCPU) the output binary will be something like this: MyProject-arm or MyProject-i386 But I didn't find the way to include the build number at the end of file name (eg. MyProject-$(TargetCPU)-$(BuildVersionNumber) -> MyProject-i386-0.0.0.1). Is it possible in some ways?

No.

Mattias

Reply by email

Kjow
to Mattias Gaertner

2010/7/24 Mattias Gaertner :

Show quoted text 18 lines
On Sat, 24 Jul 2010 13:11:31 +0200 Kjow wrote: > Hi all, > > with macros (http://wiki.lazarus.freepascal.org/IDE_Macros_in_paths_and_filenames) > I see that I can build project binary with the target CPU. > > e.g. putting in "Target file name" this: MyProject-$(TargetCPU) > the output binary will be something like this: MyProject-arm or MyProject-i386 > > But I didn't find the way to include the build number at the end of > file name (eg. MyProject-$(TargetCPU)-$(BuildVersionNumber) -> > MyProject-i386-0.0.0.1). Is it possible in some ways? No. Mattias

Umm ok, thanks.
And can I access to resources simply with an external program? I mean, if i can access to the versioninfo with a script or a program, I could run it automatically after the build to rename the binary builded...

Thanks,
Kjow

Reply by email

Mattias Gaertner
to Kjow
Show quoted text 24 lines
2010/7/24 Mattias Gaertner : > On Sat, 24 Jul 2010 13:11:31 +0200 > Kjow wrote: > >> Hi all, >> >> with macros (http://wiki.lazarus.freepascal.org/IDE_Macros_in_paths_and_filenames) >> I see that I can build project binary with the target CPU. >> >> e.g. putting in "Target file name" this: MyProject-$(TargetCPU) >> the output binary will be something like this: MyProject-arm or MyProject-i386 >> >> But I didn't find the way to include the build number at the end of >> file name (eg. MyProject-$(TargetCPU)-$(BuildVersionNumber) -> >> MyProject-i386-0.0.0.1). Is it possible in some ways? > > No. > > Mattias Umm ok, thanks. And can I access to resources simply with an external program? I mean, if i can access to the versioninfo with a script or a program, I could run it automatically after the build to rename the binary builded...

Yes, of course.

You can also create a feature request in the bug tracker.

Mattias

Reply by email