Skip to content

Commit

Permalink
* Make sure to include only native libraries in platform specific JA…
Browse files Browse the repository at this point in the history
…R files (pull bytedeco/javacpp#89)

 * Execute the `cppbuild.sh` scripts within the Maven build lifecycle, can be skipped with `-Djavacpp.cppbuild.skip` (pull #175)
  • Loading branch information
saudet committed Mar 12, 2016
1 parent dfaa545 commit 9b4bfeb
Show file tree
Hide file tree
Showing 19 changed files with 81 additions and 8 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@

* Make sure to include only native libraries in platform specific JAR files ([pull bytedeco/javacpp#89](https://github.com/bytedeco/javacpp/pull/89))
* Execute the `cppbuild.sh` scripts within the Maven build lifecycle, can be skipped with `-Djavacpp.cppbuild.skip` ([pull #175](https://github.com/bytedeco/javacpp-presets/pull/175))
* Fix Caffe crashing in GPU mode: Do not define `CPU_ONLY` ([issue #147](https://github.com/bytedeco/javacpp-presets/issues/147))
* Make OpenBLAS build for Caffe more generic ([issue #154](https://github.com/bytedeco/javacpp-presets/issues/154))
* Include missing `graph_constructor.h` header file from the `tensorflow` module ([issue #165](https://github.com/bytedeco/javacpp-presets/issues/165))
* Add missing `GraphDefBuilder.Options.WithAttr()` methods from the `tensorflow` module ([issue #160](https://github.com/bytedeco/javacpp-presets/issues/160))
* Add `linux-armhf` platform to the `cppbuild.sh` scripts of OpenCV and FFmpeg
* Add `linux-armhf` platform to the `cppbuild.sh` scripts of OpenCV, FFmpeg, etc ([pull #177](https://github.com/bytedeco/javacpp-presets/pull/177))
* Add support for Motion JPEG to the minimal configuration proposed for FFmpeg in the `cppbuild.sh` file
* Make `mvn -Djavacpp.platform=...` and `mvn -Djavacpp.platform.dependency=...` commands work correctly
* Add presets for the `dnn` module of OpenCV 3.1 ([issue #145](https://github.com/bytedeco/javacpp-presets/issues/145))
Expand Down
4 changes: 4 additions & 0 deletions artoolkitplus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
Expand Down
4 changes: 4 additions & 0 deletions caffe/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
Expand Down
4 changes: 4 additions & 0 deletions chilitags/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
Expand Down
4 changes: 4 additions & 0 deletions cuda/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
Expand Down
4 changes: 4 additions & 0 deletions ffmpeg/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
Expand Down
4 changes: 4 additions & 0 deletions fftw/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
Expand Down
4 changes: 4 additions & 0 deletions flandmark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
Expand Down
4 changes: 4 additions & 0 deletions flycapture/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
Expand Down
4 changes: 4 additions & 0 deletions gsl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
Expand Down
4 changes: 4 additions & 0 deletions leptonica/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
Expand Down
4 changes: 4 additions & 0 deletions libdc1394/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
Expand Down
4 changes: 4 additions & 0 deletions libfreenect/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
Expand Down
4 changes: 4 additions & 0 deletions llvm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
Expand Down
4 changes: 4 additions & 0 deletions mxnet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
Expand Down
17 changes: 10 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<javacpp.cppbuild.skip>false</javacpp.cppbuild.skip> <!-- To skip execution of cppbuild.sh: -Djavacpp.cppbuild.skip=true -->
<javacpp.parser.skip>false</javacpp.parser.skip> <!-- To skip header file parsing phase: -Djavacpp.parser.skip=true -->
<javacpp.compiler.skip>false</javacpp.compiler.skip> <!-- To skip native compilation phase: -Djavacpp.compiler.skip=true -->
</properties>
Expand All @@ -105,7 +106,7 @@
<version>2.7</version>
<executions>
<execution>
<id>generate-sources</id>
<id>javacpp.parser</id>
<phase>generate-sources</phase>
<goals>
<goal>resources</goal>
Expand All @@ -122,7 +123,7 @@
</configuration>
<executions>
<execution>
<id>generate-sources</id>
<id>javacpp.parser</id>
<phase>generate-sources</phase>
<goals>
<goal>compile</goal>
Expand Down Expand Up @@ -159,7 +160,7 @@
</configuration>
<executions>
<execution>
<id>generate-sources</id>
<id>javacpp.parser</id>
<phase>generate-sources</phase>
<goals>
<goal>build</goal>
Expand All @@ -171,7 +172,7 @@
</configuration>
</execution>
<execution>
<id>process-classes</id>
<id>javacpp.compiler</id>
<phase>process-classes</phase>
<goals>
<goal>build</goal>
Expand Down Expand Up @@ -236,7 +237,7 @@
<skipIfEmpty>true</skipIfEmpty>
<includes>
<include>${javacpp.platform.library.path}/</include>
<include>org/bytedeco/javacpp/${javacpp.platform}/</include>
<include>org/bytedeco/javacpp/${javacpp.platform}/${javacpp.platform.library.prefix}*${javacpp.platform.library.suffix}*</include>
</includes>
</configuration>
</execution>
Expand Down Expand Up @@ -326,17 +327,19 @@
<version>1.4.0</version>
<executions>
<execution>
<id>cppbuild</id>
<id>javacpp.cppbuild</id>
<phase>generate-sources</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>${project.basedir}/../cppbuild.sh</executable>
<skip>${javacpp.cppbuild.skip}</skip>
<workingDirectory>${project.basedir}/..</workingDirectory>
<executable>bash</executable>
<arguments>
<argument>${project.basedir}/../cppbuild.sh</argument>
<argument>install</argument>
<argument>${project.artifactId}</argument>
<argument>-platform</argument>
Expand Down
4 changes: 4 additions & 0 deletions tensorflow/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
Expand Down
4 changes: 4 additions & 0 deletions tesseract/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
Expand Down
4 changes: 4 additions & 0 deletions videoinput/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
Expand Down

0 comments on commit 9b4bfeb

Please sign in to comment.