<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
sorry fot the noise ...<br>
forgot
<title>Konsole output</title>
<div>
<span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;">Task info:
<a class="moz-txt-link-freetext" href="http://koji.fedoraproject.org/koji/taskinfo?taskID=10427445">http://koji.fedoraproject.org/koji/taskinfo?taskID=10427445</a><br>
<br>
</span></span></div>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div class="moz-cite-prefix">Il 21/07/2015 18:03, gil ha scritto:<br>
</div>
<blockquote cite="mid:55AE6D39.8010904@libero.it" type="cite">hi
<br>
i try to import lz4-java
<br>
It use bundle code of lz4 (and some part of xxhash ...)
<br>
but i need an help for optimized the compile-jni task
<br>
at the moment i done these changes
<br>
<br>
<target name="compile-jni"
depends="install-cpptasks,generate-headers"
unless="${skip.jni}">
<br>
<mkdir dir="${build}/objects" />
<br>
<mkdir dir="${build}/jni/${platform}/${os.arch}" />
<br>
<cpptasks:cc
<br>
debug="false"
<br>
optimize="extreme"
<br>
objdir="${build}/objects"
<br>
outfile="${build}/jni/${platform}/${os.arch}/lz4-java"
<br>
outtype="shared">
<br>
<includepath path="${src}/xxhash" />
<br>
- <includepath path="${src}/lz4" />
<br>
+ <includepath path="/usr/include" />
<br>
<includepath path="${java.home}/../include" />
<br>
<includepath path="${java.home}/../include/${platform}/"
/>
<br>
<includepath path="${build}/jni-headers" />
<br>
- <fileset dir="${src}/lz4" includes="lz4.c, lz4hc.c"
/>
<br>
+ <!--fileset dir="${src}/lz4" includes="lz4.c, lz4hc.c"
/-->
<br>
<fileset dir="${src}/xxhash" includes="xxhash.c" />
<br>
<fileset dir="${src}/jni" includes="*.c" />
<br>
- <linker />
<br>
+ <compilerarg value="-llz4"/>
<br>
+ <compilerarg value="-Wall"/>
<br>
+ <compilerarg value="-O2"/>
<br>
+ <linkerarg value="-O2"/>
<br>
+ <linkerarg value="-L${libdir}" />
<br>
+ <linkerarg value="-L${build}/objects" />
<br>
+ <linkerarg value="-llz4" location="end"/>
<br>
</cpptasks:cc>
<br>
</target>
<br>
<br>
my work is available here:
<br>
<a class="moz-txt-link-freetext" href="https://gil.fedorapeople.org/lz4-java-1.3.0-1.fc22.src.rpm">https://gil.fedorapeople.org/lz4-java-1.3.0-1.fc22.src.rpm</a>
<br>
<a class="moz-txt-link-freetext" href="https://gil.fedorapeople.org/lz4-java.spec">https://gil.fedorapeople.org/lz4-java.spec</a>
<br>
<br>
thanks in advance
<br>
gil
<br>
Konsole outpu
<br>
</blockquote>
<br>
</body>
</html>