-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated version strings and unit test config.
The version strings in the CMake file and the code have been updated. The POM has been extended so that the java library path can be set properly for the dependencies, depending on the OS and architecture.
- Loading branch information
Showing
3 changed files
with
99 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,99 @@ | |
<url>[email protected]:gpu/JOCLBlast.git</url> | ||
</scm> | ||
|
||
<!-- | ||
Define properties that are required for naming and identifying the | ||
native libraries, based on the operating system and architecture: | ||
jocl.os : The short name for the operating system | ||
jocl.arch : The architecture of the target platform | ||
jocl.ext : The extension of the native libraries | ||
jocl.prefix : The prefix of the native libraries | ||
The native libraries will be named according to | ||
LibraryName-${jocl.os}-${jocl.arch}.${jocl.ext} | ||
e.g. | ||
joclDriver-windows-x86_64.dll | ||
--> | ||
|
||
<profiles> | ||
<profile> | ||
<id>windows-x86_64</id> | ||
<activation> | ||
<os> | ||
<family>windows</family> | ||
<arch>amd64</arch> | ||
</os> | ||
</activation> | ||
<properties> | ||
<jocl.os>windows</jocl.os> | ||
<jocl.arch>x86_64</jocl.arch> | ||
<jocl.ext>dll</jocl.ext> | ||
<jocl.prefix></jocl.prefix> | ||
</properties> | ||
</profile> | ||
<profile> | ||
<id>windows-x86</id> | ||
<activation> | ||
<os> | ||
<family>windows</family> | ||
<arch>x86</arch> | ||
</os> | ||
</activation> | ||
<properties> | ||
<jocl.os>windows</jocl.os> | ||
<jocl.arch>x86</jocl.arch> | ||
<jocl.ext>dll</jocl.ext> | ||
<jocl.prefix></jocl.prefix> | ||
</properties> | ||
</profile> | ||
<profile> | ||
<id>linux-x86_64</id> | ||
<activation> | ||
<os> | ||
<family>unix</family> | ||
<arch>amd64</arch> | ||
</os> | ||
</activation> | ||
<properties> | ||
<jocl.os>linux</jocl.os> | ||
<jocl.arch>x86_64</jocl.arch> | ||
<jocl.ext>so</jocl.ext> | ||
<jocl.prefix>lib</jocl.prefix> | ||
</properties> | ||
</profile> | ||
<profile> | ||
<id>linux-x86</id> | ||
<activation> | ||
<os> | ||
<family>unix</family> | ||
<arch>x86</arch> | ||
</os> | ||
</activation> | ||
<properties> | ||
<jocl.os>linux</jocl.os> | ||
<jocl.arch>x86</jocl.arch> | ||
<jocl.ext>so</jocl.ext> | ||
<jocl.prefix>lib</jocl.prefix> | ||
</properties> | ||
</profile> | ||
<profile> | ||
<id>apple-x86_64</id> | ||
<activation> | ||
<os> | ||
<family>mac</family> | ||
<arch>x86_64</arch> | ||
</os> | ||
</activation> | ||
<properties> | ||
<jocl.os>apple</jocl.os> | ||
<jocl.arch>x86_64</jocl.arch> | ||
<jocl.ext>dylib</jocl.ext> | ||
<jocl.prefix>lib</jocl.prefix> | ||
</properties> | ||
</profile> | ||
</profiles> | ||
|
||
<build> | ||
<defaultGoal>package</defaultGoal> | ||
|
||
|
@@ -134,13 +227,14 @@ | |
<version>2.18.1</version> | ||
<configuration> | ||
<forkMode>once</forkMode> | ||
<argLine>-Djava.library.path=${project.basedir}/nativeLibraries</argLine> | ||
<argLine>-Djava.library.path=${project.basedir}/nativeLibraries${path.separator}${project.basedir}/nativeLibraries/${jocl.os}/${jocl.arch}/</argLine> | ||
</configuration> | ||
</plugin> | ||
|
||
</plugins> | ||
</build> | ||
|
||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
|
@@ -151,7 +245,7 @@ | |
<dependency> | ||
<groupId>org.jocl</groupId> | ||
<artifactId>jocl</artifactId> | ||
<version>0.2.0-RC01-SNAPSHOT</version> | ||
<version>2.0.0-SNAPSHOT</version> | ||
</dependency> | ||
</dependencies> | ||
</project> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters