Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Real-Time Software Components (RTSC) » not able to add an executable to a release
not able to add an executable to a release [message #529069] Thu, 22 April 2010 19:50 Go to next message
Patrick Geremia is currently offline Patrick Geremia
Messages: 79
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------090805000609020206080009
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

I do not seem to be able to add the executable I just build to my
release. It worked fine for libraries. Am I missing something?
Attached the package.bld I use.

--
Patrick Geremia
Texas Instruments (http://www.ti.com)
Phone: +33 4 93 22 26 33
Email: p-geremia@ti.com
Availability: http://meetwith.me/patrickgeremia

--------------090805000609020206080009
Content-Type: text/plain;
name="package.bld"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="package.bld"

ZnVuY3Rpb24gbGlzdEZpbGVzKGV4dCwgZGlyKQp7ICAgCiAgICB2YXIgc3Jj RmlsZSA9IFtd
OwogICAgdmFyIGQ7CgogICAgaWYgKGRpciA9PSB1bmRlZmluZWQpIAogICAg ICAgIGQgPSAi
LiI7CiAgICBlbHNlIAogICAgICAgIGQgPSBkaXI7CgogICAgLyogR2V0IGFj Y2VzcyB0byB0
aGUgY3VycmVudCBkaXJlY3RvcnkuICovCiAgICB2YXIgZmlsZSA9IG5ldyBq YXZhLmlvLkZp
bGUoZCk7CgogICAgLyogQ2hlY2sgaWYgdGhlIGZpbGUgZXhpc3RzIGFuZCBp dCBpcyBhIGRp
cmVjdG9yeS4gKi8KICAgIGlmIChmaWxlLmV4aXN0cygpICYmIGZpbGUuaXNE aXJlY3Rvcnko
KSkgCiAgICB7CiAgICAgICAgLyogR2V0IGEgbGlzdCBvZiBhbGwgZmlsZXMg aW4gdGhlIHNw
ZWNpZmljIGRpcmVjdG9yeS4gKi8KICAgICAgICB2YXIgZmlsZUxpc3QgPSBm aWxlLmxpc3RG
aWxlcygpOwogICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgZ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AgICAgICAg
ICAgICAgICAgICAgICAgLyogUmV0dXJuIGEgbGlzdCBvZiBhbGwgZmlsZSBu YW1lcyBpbiB0
aGUgZGlyZWN0b3J5LiAqLwogICAgICAgICAgICAgICAgICAgICAgICBmb3Ig KHZhciBqID0g
MCA7IGogPCBmaWxlTGlzdGluZy5sZW5ndGg7IGorKykgCiAgICAgICAgICAg ICAgICAgICAg
ICAgICAgICBzcmNGaWxlW3NyY0ZpbGUubGVuZ3RoKytdID0gZmlsZUxpc3Rp bmdbal07CiAg
ICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAg ICAgICAgICAg
ZWxzZQogICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIC8q IFRoaXMgd2Fz
IGEgZmlsZS4gQ2hlY2sgaWYgdGhlIGZpbGUgbmFtZSBtYXRjaGVzIHRoZSBl eHRlbnNpb24g
Ki8KICAgICAgICAgICAgICAgICAgICBpZiAoZmlsZUxpc3RbaV0uZ2V0TmFt ZSgpLmVuZHNX
aXRoKGV4dCkgPT0gdHJ1ZSkKICAgICAgICAgICAgICAgICAgICAgICAgc3Jj RmlsZVtzcmNG
aWxlLmxlbmd0aCsrXSA9IGQgKyAiLyIgKyBmaWxlTGlzdFtpXS5nZXROYW1l KCk7CiAgICAg
ICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAg cmV0dXJuIHNy
Y0ZpbGU7CiAgICB9CiAgICByZXR1cm4gbnVsbDsKfQoKZnVuY3Rpb24gZXhl QnVpbGQoKQp7
CiAgICB2YXIgcGtnID0gUGtnOwogICAgdmFyIHBrZ05hbWUgPSBwa2cubmFt ZS5yZXBsYWNl
KC9cLi9nLCAiXyIpOwogICAgdmFyIHNyY0RpciA9ICJzcmMiCgogICAgdmFy IHNyY0ZpbGVz
ID0gbGlzdEZpbGVzKCJjIixzcmNEaXIpOwoKICAgIHZhciBleGVjdXRhYmxl ID0geGRjLnVz
ZU1vZHVsZSg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ICAgICAgICAgICAgICAoYnVpbGQudGFyZ2V0c1t0YXJnZXRdLm5hbWUgPT0g IkM2NFAiKSkK
ICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICBleGVBdHRy cy5jb3B0cyAr
PSAiLWZiPS4vIiArIHBrZy5jZmdEaXIgKyBuYW1lICsgIi8iICsgc3JjRGly ICsgIiAiOwog
ICAgICAgICAgICAgICAgICAgIGV4ZUF0dHJzLmNvcHRzICs9ICItZnQ9Li8i ICsgcGtnLmNm
Z0RpciArIG5hbWUgKyAiLyIgKyBzcmNEaXIgKyAiICI7CiAgICAgICAgICAg ICAgICAgICAg
ZXhlQXR0cnMuY29wdHMgKz0gIi1mZj0uLyIgKyBwa2cuY2ZnRGlyICsgbmFt ZSArICIvIiAr
IHNyY0RpciArICIgIjsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAg ICAgIGlmICgo
cHJvZmlsZS5zZWFyY2goIm55cXVpc3RfYXNzZXJ0X29uX3RyYWNlX29uIikh PS0xKSB8fAog
ICAgICAgICAgICAgICAgICAgICAgICAocHJvZmlsZS5zZWFyY2goIm55cXVp c3RfYXNzZXJ0
X29mZl90cmFjZV9vZmYiKSE9LTEpKQogICAgICAgICAgICAgICAgewogICAg ICAgICAgICAg
ICAgICAgIGlmIChzdWZmaXg9PSJlNjRQIikKICAgICAgICAgICAgICAgICAg ICB7CgkJCXBy
aW50KCJhZGRpbmcgdG8gbnlxdWlzdCIpOwogICAgICAgICAgICAgICAgICAg ICAgICBleGVB
dHRycy5yZWxlYXNlcy4kYWRkKHJlbE55cXVpc3QpOwogICAgICAgICAgICAg ICAgICAgIH0K
ICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIGlmICgocHJvZmls ZS5zZWFyY2go
ImZhcmFkYXlfYXNzZXJ0X29uX3RyYWNlX29uIikhPS0xKSB8fAogICAgICAg ICAgICAgICAg
ICAgICAgICAocHJvZmlsZS5zZWFyY2goImZhcmFkYXlfYXNzZXJ0X29mZl90 cmFjZV9vZmYi
KSE9LTEpKQogICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAg IGlmIChzdWZm
aXg9PSJlNjRQZSIpCiAgICAgICAgICAgICAgICAgICAgewoJCQlwcmludCgi YWRkaW5nIHRv
IGZhcmFkYXkiKTsKICAgICAgICAgICAgICAgICAgICAgICAgZXhlQXR0cnMu cmVsZWFzZXMu
JGFkZChyZWxGYXJhZGF5KTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAg ICAgICAgICAg
ICB9CiAgICAgICAgICAgICAgICB2YXIgZXhlID0gcGtnLmFkZEV4ZWN1dGFi bGUobmFtZSwg
YnVpbGQudGFyZ2V0c1t0YXJnZXRdLCBidWlsZC50YXJnZXRzW3RhcmdldF0u cGxhdGZvcm0s
IGV4ZUF0dHJzKTsKICAgICAgICAgICAgICAgIGV4ZS5hZGRPYmplY3RzIChz cmNGaWxlcyk7
CiAgICAgICAgICAgICAgICBwcmludCAoIkV4ZWN1dGFibGVHb2FsOiAiICsg ZXhlLm5hbWUg
KyAiLngiICsgc3VmZml4KTsgCiAgICAgICAgICAgIH0KICAgICAgICB9CiAg ICB9Cgp9Cgpl
eGVCdWlsZCgpOwoKCg==
--------------090805000609020206080009--
Re: not able to add an executable to a release [message #529246 is a reply to message #529069] Fri, 23 April 2010 14:52 Go to previous messageGo to next message
Dave Russo is currently offline Dave Russo
Messages: 172
Registered: July 2009
Senior Member
Unlike libraries, executable's linked binaries are not automatically
added to releases. Executables are often unit tests for the library in
the package, so the default is different.

Try adding the following to your package.bld:
Pkg.attrs.exportExe = true;

This sets the default behavior for all executables to add the linked
binary to the specified releases.

On 4/22/2010 12:50 PM, Patrick Geremia wrote:
> I do not seem to be able to add the executable I just build to my
> release. It worked fine for libraries. Am I missing something?
> Attached the package.bld I use.
>
Re: not able to add an executable to a release [message #529272 is a reply to message #529246] Fri, 23 April 2010 15:46 Go to previous message
Patrick Geremia is currently offline Patrick Geremia
Messages: 79
Registered: July 2009
Member
-------- Original Message --------
Subject: Re: not able to add an executable to a release
From: dave russo <d-russo@ti.com>
To:
Date: Fri Apr 23 2010 16:52:18 GMT+0200 (CEST)

>
> Unlike libraries, executable's linked binaries are not automatically
> added to releases. Executables are often unit tests for the library in
> the package, so the default is different.
>
> Try adding the following to your package.bld:
> Pkg.attrs.exportExe = true;
>
> This sets the default behavior for all executables to add the linked
> binary to the specified releases.
>
> On 4/22/2010 12:50 PM, Patrick Geremia wrote:
>> I do not seem to be able to add the executable I just build to my
>> release. It worked fine for libraries. Am I missing something?
>> Attached the package.bld I use.
>>
it works! Thanks.
Previous Topic:prog.build.target.findSuffix(pkg) returns NULL!?
Next Topic:Invalid macro definition error
Goto Forum:
  


Current Time: Thu Oct 23 15:25:39 GMT 2014

Powered by FUDForum. Page generated in 0.02325 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software