hendriks73 / ffsampledsp

FFmpeg based service provider for javax.sound.sampled.
GNU Lesser General Public License v2.1
24 stars 5 forks source link

Question on correct usage of Maven dependency #11

Closed armin-reichert closed 3 years ago

armin-reichert commented 3 years ago

I have written a small gaming framework (https://github.com/armin-reichert/easy-game) where I used your great library for supporting mp3 audio.

As described on the website https://www.tagtraum.com/ffsampledsp/ I added the following Maven dependency: `

com.tagtraum ffsampledsp-complete 0.9.32

`

The effect is that the executable archive of a game application contains everything needed, but on the other side, each archive is huge because it contains the DLLs for all operating systems and lots of stuff I do not need.

I tried to use the artifact ffsampledsp-java instead, but in that case the needed Windows DLL is not included in the executable jar file.

My question is: Can I tailor usage of the Maven plugin somehow that it only contains the minimum needed stuff?

hendriks73 commented 3 years ago

Can I tailor usage of the Maven plugin somehow that it only contains the minimum needed stuff?

Not easily via Maven. Sorry.

You could try building the library for your specific case and leave out the unnecessary native libs.