This repository has been archived by the owner on Nov 10, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 168
/
pom.xml
120 lines (107 loc) · 5.16 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.github.fommil.netlib</groupId>
<artifactId>native_system</artifactId>
<version>1.2-SNAPSHOT</version>
</parent>
<artifactId>netlib-native_system-win-i686</artifactId>
<packaging>dll</packaging>
<!--
This build is cross-compiled from OS X using the official MinGW snapshot
downloaded from (I used mingw-w64-bin_i686-darwin_20130622)
http://sourceforge.net/projects/mingw-w64/
with the Windows 32 bit JDK obtained as per
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
http://stackoverflow.com/a/14617087/1041691
mkdir java ; cd java
# obtain the JDK via a browser
WINEPREFIX=$PWD wine jdk-7u25-windows-i686.exe
sudo mkdir -p /opt/win-i686
sudo mv drive_c/Program\ Files\ (x86)/Java/jdk1.7.0_25 /opt/win-i686/jdk7
i686-w64-mingw32-gcc BLAS/*.f CBLAS/*.c CBLAS/*.f -shared -o libblas3.dll -lgfortran -DADD_ -Wl,DOUBLEDASHkill-at
i686-w64-mingw32-gcc LAPACK/*.f -shared -o liblapack3.dll -lgfortran -L. -lblas3 -Wl,DOUBLEDASHkill-at
sudo mv libblas3.dll liblapack3.dll /opt/win-i686/lib
sudo cp CBLAS/*.h /opt/win-i686/include
where DOUBLEDASH should be replaced with a double dash (not valid in XML comments)
-->
<properties>
<netlib.src>../../netlib</netlib.src>
</properties>
<dependencies>
<dependency>
<groupId>${project.parent.groupId}</groupId>
<artifactId>native_system-java</artifactId>
<version>${project.parent.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.github.fommil.netlib</groupId>
<artifactId>generator</artifactId>
<executions>
<execution>
<id>blas</id>
</execution>
<execution>
<id>lapack</id>
</execution>
<execution>
<id>arpack</id>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>native-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<!-- WIN32 is a misnomer -->
<javahOS>win32</javahOS>
<jdkIncludePath>/opt/win-i686/jdk7/include</jdkIncludePath>
<compilerExecutable>i686-w64-mingw32-gcc</compilerExecutable>
<linkerExecutable>i686-w64-mingw32-gcc</linkerExecutable>
<compilerEndOptions>
<!-- silencing warnings because jint* int* are actually safe on this platform -->
<compilerEndOption>-w</compilerEndOption>
<compilerEndOption>-I/opt/win-i686/include</compilerEndOption>
</compilerEndOptions>
<linkerMiddleOptions>
<!-- check binary link with
i686-w64-mingw32-objdump -p target/netlib-native_system-win-i686.dll | grep DLL
-->
<linkerMiddleOption>-shared</linkerMiddleOption>
<linkerMiddleOption>-L/opt/win-i686/lib</linkerMiddleOption>
<linkerMiddleOption>-lblas3</linkerMiddleOption>
<linkerMiddleOption>-llapack3</linkerMiddleOption>
<linkerMiddleOption>/opt/mingw32/mingw/lib/libgfortran.a</linkerMiddleOption>
<linkerMiddleOption>/opt/mingw32/mingw/lib/libquadmath.a</linkerMiddleOption>
<linkerMiddleOption>-static-libgcc</linkerMiddleOption>
<!-- otherwise an "@..." symbol is added to the function name! -->
<linkerMiddleOption>-Wl,--kill-at</linkerMiddleOption>
<linkerMiddleOption>-Wl,--gc-sections</linkerMiddleOption>
<linkerMiddleOption>-Wl,-s</linkerMiddleOption>
<!-- Ignored, see http://sourceforge.net/p/mingw/bugs/1134/ -->
<linkerMiddleOption>-Wl,--version-script=${netlib.src}/symbol.map</linkerMiddleOption>
</linkerMiddleOptions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>runtime</id>
</execution>
<execution>
<id>source</id>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>