[Arakhnę-Dev] [143] Add mingw configuration for 64bit platforms

[ Thread Index | Date Index | More arakhne.org/dev Archives ]


Revision: 143
Author:   galland
Date:     2010-05-18 08:42:18 +0200 (Tue, 18 May 2010)
Log Message:
-----------
Add mingw configuration for 64bit platforms

Added Paths:
-----------
    trunk/arakhneVmutils/native/josuuid/mingw64/
    trunk/arakhneVmutils/native/josuuid/mingw64/pom.xml
    trunk/arakhneVmutils/native/josuuid/mingw64/src/
    trunk/arakhneVmutils/native/josuuid/mingw64/src/main/
    trunk/arakhneVmutils/native/josuuid/mingw64/src/test/

Added: trunk/arakhneVmutils/native/josuuid/mingw64/pom.xml
===================================================================
--- trunk/arakhneVmutils/native/josuuid/mingw64/pom.xml	                        (rev 0)
+++ trunk/arakhneVmutils/native/josuuid/mingw64/pom.xml	2010-05-18 06:42:18 UTC (rev 143)
@@ -0,0 +1,130 @@
+<?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/maven-v4_0_0.xsd";>
+
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+  	<artifactId>josuuid</artifactId>
+	<groupId>org.arakhne.afc</groupId>
+	<version>5.0-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.arakhne.afc</groupId>
+  <artifactId>josuuid-mingw64</artifactId>
+  <packaging>dll</packaging>
+  <version>5.0-SNAPSHOT</version>
+  <name>${pom.artifactId}</name>
+
+	<!-- ======================================= -->
+	<!-- ====       Project Information      === -->
+	<!-- ======================================= -->
+		
+	<dependencies>
+		<dependency>
+			<groupId>org.arakhne.afc</groupId>
+			<artifactId>arakhneVmutils-java</artifactId>
+			<version>${pom.version}</version>
+		</dependency>    
+	</dependencies>
+
+  <build>
+    <finalName>${artifactId}</finalName>
+    
+    <plugins>
+
+     <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>enforce-beanshell</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+                <evaluateBeanshell>
+                  <condition>
+			String path = System.getenv("PATH");
+			String[] parts = path.split(File.pathSeparator);
+			boolean ok = false;
+			for(int i=0; !ok &amp;&amp; i&lt;parts.length; i++) {
+				ok = new File(parts[i],"amd64-mingw32msvc-gcc").canExecute();
+			}
+			ok
+		  </condition>
+                </evaluateBeanshell>
+		<requireOS>
+		  <name>linux</name>
+		  <family>unix</family>
+		</requireOS>
+              </rules>  
+              <fail>true</fail>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>native-maven-plugin</artifactId>
+        <extensions>true</extensions>       
+        <configuration>
+          <compilerProvider>generic</compilerProvider>
+	  <compilerExecutable>amd64-mingw32msvc-gcc</compilerExecutable>
+          <compilerStartOptions>
+            <compilerStartOption>-O0 -Wall -Werror -fmessage-length=0</compilerStartOption>
+          </compilerStartOptions>
+          
+          <javahOS>linux</javahOS> <!-- not 'windows' to retreive the jni_md.h file -->
+          
+          <sources>
+            <source>
+	      <directory>../src/main/native</directory>
+	      <fileNames>
+                <fileName>josuuid.c</fileName>
+                <fileName>winos.c</fileName>
+                <fileName>OperatingSystemJNI.c</fileName>
+	      </fileNames>
+            </source>
+          </sources>
+            
+	  <linkerExecutable>amd64-mingw32msvc-gcc</linkerExecutable>
+          <linkerStartOptions>
+            <linkerStartOption>-L/usr/lib/gcc/i586-mingw32msvc/4.4.2/ -shared</linkerStartOption>
+          </linkerStartOptions>
+                    
+        </configuration>
+        
+        <executions>
+          <execution>
+            <id>javah</id>
+            <phase>generate-sources</phase>
+            <configuration>
+              <classNames>
+                <className>org.arakhne.vmutil.OperatingSystem</className>
+              </classNames>
+            </configuration>
+            <goals>
+              <goal>javah</goal> 
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+
+      <plugin>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <forkMode>once</forkMode>
+          <environmentVariables>
+            <LD_LIBRARY_PATH>${project.build.directory}</LD_LIBRARY_PATH>
+          </environmentVariables>
+        </configuration>
+      </plugin>
+	
+    </plugins>    
+
+  </build>
+
+
+</project>


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/