[jboss-cvs] JBoss Messaging SVN: r3825 - trunk.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Feb 27 12:16:29 EST 2008


Author: clebert.suconic at jboss.com
Date: 2008-02-27 12:16:29 -0500 (Wed, 27 Feb 2008)
New Revision: 3825

Modified:
   trunk/build-messaging.xml
   trunk/build.xml
Log:
Native build

Modified: trunk/build-messaging.xml
===================================================================
--- trunk/build-messaging.xml	2008-02-27 17:15:28 UTC (rev 3824)
+++ trunk/build-messaging.xml	2008-02-27 17:16:29 UTC (rev 3825)
@@ -81,7 +81,8 @@
    <property name="source.java" value="${project.source}/main"/>
    <property name="source.etc" value="${project.source}/etc"/>
    <property name="project.output" value="${project.root}/output"/>
-   <property name="build.classes" value="${project.output}/classes"/>
+   <property name="build.jniheader" value="${project.output}/include"/>
+   <property name="build.classes" value="${project.output}/classes"/>
    <property name="build.lib" value="${project.output}/lib"/>
    <property name="build.api" value="${project.output}/api"/>
    <property name="build.etc" value="${project.output}/etc"/>
@@ -170,7 +171,8 @@
    <path id="compilation.classpath">
       <path refid="external.dependencies.classpath"/>
       <path refid="jboss.dependencies.classpath"/>
-      <pathelement location="${project.root}/lib/je-3.2.44.jar"/>
+      <pathelement location="${project.root}/lib/je-3.2.44.jar"/>
+      <pathelement location="${build.classes}"/> 
    </path>
 
    <!-- ======================================================================================== -->
@@ -238,8 +240,8 @@
          <include name="**/*.java"/>
          <classpath refid="compilation.classpath"/>
       </javac>
-   </target>
-
+   </target>
+	
    <target name="compile-etc">
 
       <mkdir dir="${build.etc}"/>
@@ -653,18 +655,27 @@
    </target>
 
    <!-- ======================================================================================== -->
-   <!-- TCK Tasks                                                                                -->
+   <!-- Native Tasks                                                                             -->
    <!-- ======================================================================================== -->
-
-   <target name="cts-deploy" depends="jar">
-      <copy file="${build.lib}/jboss-${module.name}.sar"
-         todir="${ENV.JBOSS_HOME}/server/cts-messaging/deploy"/>
-   </target>
-
-   <target name="cts-undeploy">
-      <delete file="${ENV.JBOSS_HOME}/server/cts-messaging/deploy/jboss-${module.name}.sar"/>
-   </target>
-
+
+	<property name="native.src" value="./native"/>
+	<property name="native.include" value="${native.src}/src"/>
+	
+	<target name="native-header" depends="compile">
+            <javah class="org.jboss.messaging.core.asyncio.impl.JlibAIO" classpathref="compilation.classpath" destdir="${native.include}">
+            </javah>
+    </target>
+
+	<target name="native" depends="native-header">
+		<exec dir="${native.src}" executable="autoreconf">
+			<arg value="--install"/>
+		</exec>
+		<exec dir="${native.src}" executable="sh">
+			<arg value="./configure"/>
+		</exec>
+		<exec dir="${native.src}" executable="make"/>
+    </target>
+
    <!-- ======================================================================================== -->
    <!-- Cleaning Tasks                                                                           -->
    <!-- ======================================================================================== -->

Modified: trunk/build.xml
===================================================================
--- trunk/build.xml	2008-02-27 17:15:28 UTC (rev 3824)
+++ trunk/build.xml	2008-02-27 17:16:29 UTC (rev 3825)
@@ -92,6 +92,10 @@
       <ant antfile="build-messaging.xml" target="jar"/>
    </target>
 
+   <target name="native" depends="createthirdparty">
+      <ant antfile="build-messaging.xml" target="native"/>
+   </target>
+
    <target name="embedded" depends="createthirdparty">
       <ant antfile="build-messaging.xml" target="embedded"/>
    </target>




More information about the jboss-cvs-commits mailing list