Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Create a multi-architecture jar #10

Open
DavyLandman opened this issue Dec 7, 2016 · 1 comment
Open

Create a multi-architecture jar #10

DavyLandman opened this issue Dec 7, 2016 · 1 comment

Comments

@DavyLandman
Copy link

Have you thought about creating a multi-architecture jar and at init time look at the current architecture and load that native library?

zstd-jni and lz4-java do this. This turns it into one big jar instead of several jars. This in turn simplifies releases of applications that use jbrotli.

For the furture, for unsupported platforms, we could use the java decoder implementation that has surfaced in the brotli repo. Would be a nice fallback.

@xiaodongw
Copy link

+1 for it.
And also can we have brotli packaged as a static lib? Just like netty-tcnative-boringssl-static (http://netty.io/wiki/forked-tomcat-native.html), so we do not have to worry about platform library versions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants