[jitsi-dev] In consideration of using OSGI's Bundle-NativeCode: header to deploy native libs


#1

Why doesn't Jitsi package native libraries right into Libjitsi.jar using the Bundle-NativeCode header that's provided as part of the OSGI specification.

As an example:

Bundle-Activator: net.java.sip.communicator.impl.libjitsi.LibJitsiActivator
Bundle-Description: The core of Jitsi as a stand-alone library
Bundle-Name: libjitsi
Bundle-Vendor: jitsi.org
Bundle-Version: 0.0.1
Bundle-NativeCode: lib/mac/libjnspeex.jnilib;
lib/mac/libjnportaudio.jnilib;
lib/mac/libjnawtrenderer.jnilib;
lib/mac/libjng722.jnilib; processor=x86_64; osname=Mac OS X,
lib/mac/libjnspeex.jnilib;
lib/mac/libjnportaudio.jnilib;
lib/mac/libjnawtrenderer.jnilib;

Oren Forer
Engineer - Junction Networks
sip:oren@junctionnetworks.com
212-933-9190 x 7021


#2

Hey Oren,

Why doesn't Jitsi package native libraries right into Libjitsi.jar using
the /Bundle-NativeCode/ header that's provided as part of the OSGI
specification.

We've had the question before and there's no reason really. We just
started without it and then never really needed to change it.

I do agree that things look better that way. We should probably migrate
stuff one of these days.

I don't think we would do this for libjitsi's generic version (at least
not by default) because not everyone will be using it through OSGi, but
it we could package it that when building Jitsi.

Patches to build.xml are most welcome.

Cheers,
Emil

ยทยทยท

On 02.10.12, 23:07, Oren Forer wrote:

As an example:

Bundle-Activator: net.java.sip.communicator.impl.libjitsi.LibJitsiActivator
Bundle-Description: The core of Jitsi as a stand-alone library
Bundle-Name: libjitsi
Bundle-Vendor: jitsi.org <http://jitsi.org>
Bundle-Version: 0.0.1
Bundle-NativeCode: lib/mac/libjnspeex.jnilib;
lib/mac/libjnportaudio.jnilib;
lib/mac/libjnawtrenderer.jnilib;
lib/mac/libjng722.jnilib; processor=x86_64; osname=Mac OS X,
lib/mac/libjnspeex.jnilib;
lib/mac/libjnportaudio.jnilib;
lib/mac/libjnawtrenderer.jnilib;

Oren Forer
Engineer - Junction Networks
sip:oren@junctionnetworks.com
212-933-9190 x 7021

--
https://jitsi.org