<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hm, yes, sorry $(ProjectOpts) may not
work. Not sure where I picked it up, but I had it as a left over.<br>
<br>
If you want to push changed project options, down into the used
packages, then that is going to be tricky. (Dependencies normally
do not go that way)<br>
<br>
IIRC ( I do no longer have my example, but I did have it working
once)<br>
You can define "IDE Macro" or values, in the project (they should
be able to depend on build mode)<br>
<br>
In the package, under IDE macros, you add (in the lower field
"conditionals"<br>
<br>
if defined(MACRONAME) then<br>
CustomOptions := ' -O-1 ';<br>
<br>
<br>
<br>
There is a wiki page about that too (sorry havent got the link).
It is a big page, and a lot to read.<br>
<br>
<br>
On 13/04/2013 20:05, Zaher Dirkey wrote:<br>
</div>
<blockquote
cite="mid:CABKDQHzJRW5K1qPdA=spoWWf_ahZxOdaXjR6Ojng-nSqrfr87g@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_default"
style="font-family:tahoma,sans-serif">Not worked for me, i
Added $(ProjectOpts) to custom options in SynEdit package
(same with my packages but i will take SynEdit as example)<br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif">What i have<br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif">I Have 2 build mode
(Debug, Release) i want when use Debug all compiler option
passed to SynEdit package and have debug info and so on,
When use Release same.<br>
<br>
</div>
<div class="gmail_default"
style="font-family:tahoma,sans-serif">I have tested all
adding $(ProjectOpts) or $(IDEBuildOptions) but debug not
added to the sources.</div>
<br>
<br>
<div class="gmail_quote">On Sat, Apr 13, 2013 at 6:06 PM,
Martin <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:lazarus@mfriebe.de" target="_blank">lazarus@mfriebe.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div>1) If you want a single package only, open the
package and edit the options like for a project. <br>
<br>
2) Do add the same settings as for the IDE (from
"configure build IDE")<br>
<a moz-do-not-send="true"
href="http://imagebin.org/253861" target="_blank">http://imagebin.org/253861</a><br>
Add $(IDEBuildOptions) to the custom options<br>
<br>
Or for the options from the project: $(ProjectOpts)<br>
<br>
Check the compiler output ("test" button) for the order
it applies.<br>
<br>
If one setting has -O1 and the other -O2 then the order
matters. The order can not be changed.<br>
<br>
Afaik (please verify, not sure) an -O1 does NOT undo a
-O2.<br>
But a -O-1 does undo a -O2<br>
<br>
3) For (almost) all packages.<br>
Check package-graph for dependencies on FCL (includes
indirect dependency)<br>
<br>
<a moz-do-not-send="true"
href="http://imagebin.org/253862" target="_blank">http://imagebin.org/253862</a></div>
</blockquote>
</div>
<br>
<br>
<br clear="all">
<br>
-- <br>
<div dir="ltr"><span style="font-family:courier new,monospace">I
am using last revision of Lazarus, FPC 2.6 on Windows XP
SP3<br>
<br>
Best Regards<br>
Zaher Dirkey</span></div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--
_______________________________________________
Lazarus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
</pre>
</blockquote>
<br>
</body>
</html>