Sign in Join

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

Mailing lists / lazarus / 2013-06

[BuildModes] When show options of package it show partial for the current project

7 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Zaher Dirkey

Hi,

From object inspector show Options, there is 2 build modes. From object inspector when double click on my package, it show the package

then click options you will see the same build modes of the current project. Is the normal or bug?

I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3

Best Regards
Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130611/c58d6ca3/attachment.html>

Reply by email

Mattias Gaertner
to Zaher Dirkey
Zaher Dirkey hat am 11. Juni 2013 um 14:25 geschrieben: Hi, From object inspector show Options, there is 2 build modes.

I guess you mean the "Project Inspector".

From object inspector when double click on my package, it show the package then click options you will see the same build modes of the current project. Is the normal or bug?

This is normal.
A project has build modes. A package has not. There is always only one build mode active and that effects the project and all packages.

I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3

Mattias

Reply by email

Zaher Dirkey
to Mattias Gaertner

On Tue, Jun 11, 2013 at 3:41 PM, Mattias Gaertner <

Show quoted text 6 lines
wrote: A project has build modes. A package has not. There is always only one build mode active and that effects the project and all packages.

?Yes, that sound good, but make me confused, because it is hide the compile options for that package.

Let me start from "Unit output directory (-FU)
units\$(TargetCPU)-$(TargetOS)

Now i will add new mode Debug, and rename Default to Release, in release i will change path above to become (i added folder "release") units\release\$(TargetCPU)-$(TargetOS)

Build all will make new folder in units for that package also, yay it is so good if it take the same compile options?.

I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130611/ee05c320/attachment.html>

Reply by email

patspiper
to Zaher Dirkey
Zaher Dirkey wrote 19 lines
On Tue, Jun 11, 2013 at 3:41 PM, Mattias Gaertner < <mailto:>> wrote: A project has build modes. A package has not. There is always only one build mode active and that effects the project and all packages. Yes, that sound good, but make me confused, because it is hide the compile options for that package. Let me start from "Unit output directory (-FU) units\$(TargetCPU)-$(TargetOS) Now i will add new mode Debug, and rename Default to Release, in release i will change path above to become (i added folder "release") units\release\$(TargetCPU)-$(TargetOS)

You can use for both:

units\$(BuildMode)\$(TargetCPU)-$(TargetOS)

Stephano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130611/47307f2a/attachment.html>

Reply by email

Zaher Dirkey
to patspiper
patspiper wrote
You can use for both: units\$(BuildMode)\$(TargetCPU)-$(TargetOS)

?Thanks, but i found if i changed in Compile Options in project, it will changed in Compile options in Package to same value, is that normal?

I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130611/1eec81c0/attachment.html>

Reply by email

patspiper
to Zaher Dirkey
Zaher Dirkey wrote 12 lines
On Tue, Jun 11, 2013 at 5:24 PM, patspiper < <mailto:>> wrote: You can use for both: units\$(BuildMode)\$(TargetCPU)-$(TargetOS) Thanks, but i found if i changed in Compile Options in project, it will changed in Compile options in Package to same value, is that normal?

If you are putting this in Compiler options/Paths then it should not propagate to the packages. However if you use it in Additions and Overrides (Override output directory), then I guess it will affect all packages based on the target filter.

Stephano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130611/ea504e23/attachment.html>

Reply by email

Zaher Dirkey
to patspiper
patspiper wrote 5 lines
If you are putting this in Compiler options/Paths then it should not propagate to the packages. However if you use it in Additions and Overrides (Override output directory), then I guess it will affect all packages based on the target filter.

?Yes, it was a bug and fixed see other thread :)?

I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130611/d36cb822/attachment.html>

Reply by email