1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-03 09:49:19 +02:00

messages and comments have been updated to be more consistent

This commit is contained in:
Nikolay Pultsin 2010-11-20 10:34:44 +00:00
parent fcaba4b4fe
commit 10bf65b892

View file

@ -19,7 +19,7 @@
<setup /> <setup />
<target name="init" description="Initialization..."> <target name="init" description="Initialization...">
<fail message="ANT with version at least 1.7 should be present !!! Update your local '${ant.version}' first."> <fail message="Ant 1.7.0 or higher is required. Please upgrade your ant.">
<condition> <condition>
<not> <not>
<antversion property="ant.version" atleast="1.7.0"/> <antversion property="ant.version" atleast="1.7.0"/>
@ -28,70 +28,67 @@
</fail> </fail>
</target> </target>
<target name="native" unless="native.lib.is.built"> <target name="native" unless="native.libraries.are.uptodate">
<fail message="Native libraries are not up-to-date. Please run ndk-build manually."> <fail message="Native libraries are not up-to-date. Please run ndk-build manually.">
<condition> <condition>
<os family="windows" /> <os family="windows" />
</condition> </condition>
</fail> </fail>
<echo message="Try to build 'libDeflatingDecompressor.so', 'libLineBreak.so'...."/> <echo message="Building native libraries..."/>
<exec executable="${ndk.dir}/ndk-build" /> <exec executable="${ndk.dir}/ndk-build" />
<echo message="DONE (Building native libraries)"/>
</target> </target>
<target name="check.native.libs.are.present" depends="init"> <target name="check.native.libraries" depends="init">
<echo message="Check if Native Libs 'libDeflatingDecompressor.so', 'libLineBreak.so' are present and uptodate..."/> <echo message="Checking if native libraries are up-to-date..."/>
<condition property="native.libs.are.uptodate" value="true">
<!-- Evaluate if it's necessary build 'C' sources and property 'native.lib.is.built' GETS VALUE , otherwise stays UNDEFINED -->
<condition property="native.lib.is.built" value="true">
<and> <and>
<!-- Check if 'DeflatingDecompressor' C++ sources are up to date --> <!-- Check if libDeflatingDecompressor exists and is up to date -->
<uptodate property="libDeflatingDecompressor-build-is-not-required" targetfile="libs/armeabi/libDeflatingDecompressor.so"> <available file="./libs/armeabi/libDeflatingDecompressor.so" />
<uptodate targetfile="libs/armeabi/libDeflatingDecompressor.so">
<srcfiles dir="jni/DeflatingDecompressor" includes="**/*.cpp"/> <srcfiles dir="jni/DeflatingDecompressor" includes="**/*.cpp"/>
</uptodate> </uptodate>
<!-- Check if 'LineBreak' C++, C sources are up to date --> <!-- Check if libLineBreak exists and is up to date -->
<available file="./libs/armeabi/libLineBreak.so" />
<uptodate property="libLineBreak-build-is-not-required" targetfile="libs/armeabi/libLineBreak.so"> <uptodate property="libLineBreak-build-is-not-required" targetfile="libs/armeabi/libLineBreak.so">
<srcfiles dir="jni/LineBreak" includes="**/*.cpp,**/*.c,**/*.h"/> <srcfiles dir="jni/LineBreak" includes="**/*.cpp,**/*.c,**/*.h"/>
</uptodate> </uptodate>
<!-- Check if *.so libraries are built and present in folder -->
<available file="./libs/armeabi/libDeflatingDecompressor.so" />
<available file="./libs/armeabi/libLineBreak.so" />
</and> </and>
</condition> </condition>
<echo message="Is property 'native.lib.is.built' evaluated and setup to some VALUE ? value = '${native.lib.is.built}'"/> <echo message="DONE (Checking if native libraries are up-to-date)"/>
<echo message="DONE! Check if Native Libs 'libDeflatingDecompressor.so', 'libLineBreak.so' are present and uptodate..."/>
</target> </target>
<target name="resources" depends="init, check.native.libs.are.present"> <target name="resources" depends="init, check.native.libraries">
<!-- Delete all files from gen/text_search and res/drawable --> <echo message="Cleaning up the 'res/drawable' folder..." />
<echo message="Clean up 'res/drawable' folder..." />
<delete dir="res/drawable/"> <delete dir="res/drawable/">
<files includes="**"/> <files includes="**"/>
</delete> </delete>
<echo message="DONE! Clean up 'res/drawable' folder" /> <echo message="DONE (Cleaning up the 'res/drawable' folder)" />
<!-- Copy all icons/ files into res/drawable EXCEPT /icons/text_search folder -->
<echo message="Copying icons files to 'res/drawable/' folder..." /> <echo message="Copying icons files to 'res/drawable/' folder..." />
<copy todir="res/drawable" verbose="false" overwrite="true" flatten="true"> <copy todir="res/drawable" verbose="false" overwrite="true" flatten="true">
<fileset file="icons/fbreader.png" /> <fileset file="icons/fbreader.png" />
<fileset dir="icons/" includes="*/*" /> <fileset dir="icons/" includes="*/*" />
</copy> </copy>
<echo message="DONE! Copying icons files to 'res/drawable/' folder" /> <echo message="DONE (Copying icons files to 'res/drawable/' folder)" />
</target> </target>
<target name="package" depends="init, resources, native, release" /> <target name="package" depends="init, resources, native, release" />
<target name="dbg" depends="init, resources, native, debug" /> <target name="dbg" depends="init, resources, native, debug" />
<target name="clean"> <target name="clean">
<echo message="Clean all temporary folders..." /> <echo message="Deleting temporary files..." />
<delete dir="gen" /> <delete dir="gen" />
<delete dir="bin" /> <delete dir="bin" />
<delete dir="res/drawable" /> <delete dir="res/drawable" />
<delete dir="out" /> <delete dir="out" />
<delete dir="obj" /> <delete dir="obj" />
<echo message="DONE! Clean all temporary folders" /> <echo message="DONE (Deleting temporary files)" />
</target> </target>
<target name="distclean" depends="clean"> <target name="distclean" depends="clean">
<echo message="Deleting native libraries..." />
<delete dir="libs" /> <delete dir="libs" />
<echo message="DONE (Deleting native libraries)" />
</target> </target>
</project> </project>