ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 4900] New: - CC or JNI C compilation task
Date Thu, 15 Nov 2001 21:10:41 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4900>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4900

CC or JNI C compilation task

           Summary: CC or JNI C compilation task
           Product: Ant
           Version: 1.4.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: David.Holscher@nav-international.com


It would be very useful for those of us forced to use JNI to have a way of 
compiling a C file. Even limited support would be useful.
Here is an example of what I have to do now to use MinGW to compile a JNI 
source file:
  <target name="rp1210a.check">
    <uptodate targetfile="itec/util/rp1210a/RP1210A_Adaptor.dll" 
property="rp1210a.newer">
      <srcfiles dir="itec/util/rp1210a" includes="RP1210A_Adaptor.c" />
    </uptodate>
  </target>
  <target name="rp1210a" depends="rp1210a.check" unless="rp1210a.newer">
    <exec executable="gcc">
      <arg line="-g -O2 -c -I${jdk}/include -I${jdk}/include/win32 -g 
itec/util/rp1210a/RP1210A_Adaptor.c -o build/RP1210A_Adaptor.o" />
    </exec>
    <exec executable="dllwrap">
      <arg line="--add-stdcall-alias -o itec/util/rp1210a/RP1210A_Adaptor.dll -
s build/RP1210A_Adaptor.o" />
    </exec>
  </target>

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message