Skip to content

Commit

Permalink
fix #122 jar files exported from eclipse is too huge.
Browse files Browse the repository at this point in the history
My fix is to lean-into maven, and now dragging a dependency on
`humble-video-all` will figure out what JVM you're running under
and only bring in the native code for the platform you're on.

If you want other profiles, run maven with -P... with the name of
the profile for the OS you want.
  • Loading branch information
artclarke committed Nov 19, 2018
1 parent 0003e46 commit 855f17d
Show file tree
Hide file tree
Showing 2 changed files with 299 additions and 144 deletions.
315 changes: 295 additions & 20 deletions humble-video-all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,304 @@
<url>http://maven.apache.org</url>

<dependencies>
<dependency>
<groupId>io.humble</groupId>
<artifactId>humble-video-arch-x86_64-apple-darwin18</artifactId>
</dependency>
<dependency>
<groupId>io.humble</groupId>
<artifactId>humble-video-arch-i686-pc-linux-gnu6</artifactId>
</dependency>
<dependency>
<groupId>io.humble</groupId>
<artifactId>humble-video-arch-x86_64-pc-linux-gnu6</artifactId>
</dependency>
<dependency>
<groupId>io.humble</groupId>
<artifactId>humble-video-arch-i686-w64-mingw32</artifactId>
</dependency>
<dependency>
<groupId>io.humble</groupId>
<artifactId>humble-video-arch-x86_64-w64-mingw32</artifactId>
</dependency>
<dependency>
<groupId>io.humble</groupId>
<artifactId>humble-video-noarch</artifactId>
</dependency>
</dependencies>
<!-- Choose the OS-dependent version -->
<profiles>
<!-- let's do release versions first -->
<profile>
<id>Windows-x86</id>
<activation>
<property>
<name>!io.humble.debug</name>
</property>
<os>
<family>Windows</family>
<arch>x86</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>io.humble</groupId>
<artifactId>humble-video-arch-i686-w64-mingw32</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>Windows-x86_64</id>
<activation>
<property>
<name>!io.humble.debug</name>
</property>
<os>
<family>Windows</family>
<arch>x86_64</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>io.humble</groupId>
<artifactId>humble-video-arch-x86_64-w64-mingw32</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>Windows-amd64</id>
<activation>
<property>
<name>!io.humble.debug</name>
</property>
<os>
<family>Windows</family>
<arch>amd64</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>io.humble</groupId>
<artifactId>humble-video-arch-x86_64-w64-mingw32</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>Mac-x86_64</id>
<!-- as of Humble Video 0.3.0 x86/i686 versions of MacOS X are no longer supported -->
<activation>
<property>
<name>!io.humble.debug</name>
</property>
<os>
<family>Mac</family>
<arch>x86_64</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>io.humble</groupId>
<artifactId>humble-video-arch-x86_64-apple-darwin18</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>Mac-amd64</id>
<activation>
<property>
<name>!io.humble.debug</name>
</property>
<os>
<family>Mac</family>
<arch>amd64</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>io.humble</groupId>
<artifactId>humble-video-arch-x86_64-apple-darwin18</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>Linux-x86</id>
<activation>
<property>
<name>!io.humble.debug</name>
</property>
<os>
<family>Linux</family>
<arch>x86</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>io.humble</groupId>
<artifactId>humble-video-arch-i686-pc-linux-gnu6</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>Linux-x86_64</id>
<activation>
<property>
<name>!io.humble.debug</name>
</property>
<os>
<family>Linux</family>
<arch>x86_64</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>io.humble</groupId>
<artifactId>humble-video-arch-x86_64-pc-linux-gnu6</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>Linux-amd64</id>
<activation>
<property>
<name>!io.humble.debug</name>
</property>
<os>
<family>Linux</family>
<arch>amd64</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>io.humble</groupId>
<artifactId>humble-video-arch-x86_64-pc-linux-gnu6</artifactId>
</dependency>
</dependencies>
</profile>
<!-- now let's do debug versions. -->
<profile>
<id>Windows-x86-debug</id>
<activation>
<property>
<name>io.humble.debug</name>
</property>
<os>
<family>Windows</family>
<arch>x86</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>io.humble</groupId>
<artifactId>humble-video-arch-i686-w64-mingw32-debug</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>Windows-x86_64-debug</id>
<activation>
<property>
<name>io.humble.debug</name>
</property>
<os>
<family>Windows</family>
<arch>x86_64</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>io.humble</groupId>
<artifactId>humble-video-arch-x86_64-w64-mingw32-debug</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>Windows-amd64-debug</id>
<activation>
<property>
<name>io.humble.debug</name>
</property>
<os>
<family>Windows</family>
<arch>amd64</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>io.humble</groupId>
<artifactId>humble-video-arch-x86_64-w64-mingw32-debug</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>Mac-x86_64-debug</id>
<!-- as of Humble Video 0.3.0 x86/i686 versions of MacOS X are no longer supported -->
<activation>
<property>
<name>io.humble.debug</name>
</property>
<os>
<family>Mac</family>
<arch>x86_64</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>io.humble</groupId>
<artifactId>humble-video-arch-x86_64-apple-darwin18-debug</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>Mac-amd64-debug</id>
<activation>
<property>
<name>io.humble.debug</name>
</property>
<os>
<family>Mac</family>
<arch>amd64</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>io.humble</groupId>
<artifactId>humble-video-arch-x86_64-apple-darwin18-debug</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>Linux-x86-debug</id>
<activation>
<property>
<name>io.humble.debug</name>
</property>
<os>
<family>Linux</family>
<arch>x86</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>io.humble</groupId>
<artifactId>humble-video-arch-i686-pc-linux-gnu6-debug</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>Linux-x86_64-debug</id>
<activation>
<property>
<name>io.humble.debug</name>
</property>
<os>
<family>Linux</family>
<arch>x86_64</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>io.humble</groupId>
<artifactId>humble-video-arch-x86_64-pc-linux-gnu6-debug</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>Linux-amd64-debug</id>
<activation>
<property>
<name>io.humble.debug</name>
</property>
<os>
<family>Linux</family>
<arch>amd64</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>io.humble</groupId>
<artifactId>humble-video-arch-x86_64-pc-linux-gnu6-debug</artifactId>
</dependency>
</dependencies>
</profile>
</profiles>
</project>
Loading

0 comments on commit 855f17d

Please sign in to comment.