How'd you know it was for rxtx? :)
________________________________________
From: Clement Escoffier [[email protected]]
Sent: Thursday, July 02, 2009 12:45 PM
To: [email protected]
Subject: Re: bnd/ipojo ant tasks
Hi,
Here is an example for RXTX :
<Bundle-NativeCode>
Windows/i386-mingw32/rxtxSerial.dll;Windows/i386-mingw32/
rxtxParallel.dll;processor=x86;osname=Windows XP,
Linux/x86_64-unknown-linux-gnu/
librxtxSerial.so;processor=x86_64;osname=Linux,
Linux/i686-unknown-linux-gnu/librxtxSerial.so;Linux/i686-unknown-
linux-gnu/librxtxParallel.so;processor=x86;osname=Linux,
Linux/ia64-unknown-linux-gnu/
librxtxSerial.so;processor=ia64;osname=Linux,
Mac_OS_X/librxtxSerial.jnilib;osname=Mac OS X; processor=x86;
processor=PowerPC,
Solaris/sparc-solaris/sparc32-sun-solaris2.8/
librxtxSerial.so;processor=sparc;osname=Solaris;osversion=2.8,
Solaris/sparc-solaris/sparc64-sun-solaris2.8/
librxtxSerial.so;processor=sparc64;osname=Solaris;osversion=2.8
Solaris/sparc-solaris/sparc64-sun-solaris2.8/
librxtxSerial.so;processor=sparc64;osname=Solaris;osversion=2.8
</Bundle-NativeCode>
Of course, the targeted libraries must be inside the bundle.
Regards,
Clement
On 02.07.2009, at 20:27, Stuart McCulloch wrote:
> 2009/7/3 Joel Schuster <[email protected]>
>
>> A bundle that I'm creating has dependencies on native libraries.
>> Thus I
>> need to use the Bundle-NativeCode: in the MANIFEST.MF.
>>
>> However, I don't see anything in the BND or IPOJO tasks that would
>> allow me
>> to do this. I've found Include-Resource for the BND file, which
>> then copies
>> the libraries into the bundle jar, but I can't seem to figure out
>> how to
>> include Bundle-NativeCode:
>>
>
> the Bnd Tool will copy any instructions which start with an upper-case
> letter directly to the manifest
>
> so just put:
>
> Bundle-NativeCode: ...etc...
>
> in your Bnd instructions - if you're using the bundleplugin this
> would be:
>
> <instructions>
> <Bundle-NativeCode>...etc...</Bundle-NativeCode>
> </instructions>
>
> HTH
>
>
>> ________________________________
>>
>> Joel Schuster
>> Senior Software Engineer
>> NAVSYS Corporation
>> 14960 Woodcarver Road, Colorado Springs, CO 80921
>> 719-481-4877
>>
>
> --
> Cheers, Stuart
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]