PageRenderTime 264ms CodeModel.GetById 141ms app.highlight 3ms RepoModel.GetById 117ms app.codeStats 1ms

/script/build.xml

http://android-rcs-ims-stack.googlecode.com/
XML | 200 lines | 171 code | 10 blank | 19 comment | 0 complexity | 1bdabc4fc4f56ed4d2c4ed82b72a680a MD5 | raw file
  1<!-- ******************************************************************* -->
  2<!--                         Joyn Opensource Stack                       -->
  3<!-- ******************************************************************* -->
  4
  5<project
  6    name="Joyn Opensource Stack"
  7    basedir=".">
  8
  9    <!-- ********************* -->
 10    <!-- Properties            -->
 11    <!-- ********************* -->
 12
 13    <property environment="env" />
 14    <property
 15        name="android.root"
 16        value="${env.ANDROID_SDK}" />
 17    <property
 18        name="stack.root"
 19        value="../core" />
 20    <property
 21        name="stack.api"
 22        value="${stack.root}/rcs_api.jar" />
 23    <property
 24        name="stack.build"
 25        value="${stack.root}/build" />
 26    <property
 27        name="ri.root"
 28        value="../ri" />
 29    <property
 30        name="apidemo.root"
 31        value="../apidemo" />
 32    <property
 33        name="generate.root"
 34        value="../gen" />
 35    <property
 36        name="javadoc.root"
 37        value="${generate.root}/javadoc" />
 38    <property
 39        name="javadoc.zip"
 40        value="${generate.root}/javadoc.zip" />
 41    <property
 42        name="sdk.zip"
 43        value="${generate.root}/sdk.zip" />
 44    <property
 45        name="doc.root"
 46        value=".." />
 47
 48
 49    <path id="j2se.lib">
 50        <fileset dir="${env.JAVA_HOME}/lib/">
 51            <include name="**/*.jar" />
 52        </fileset>
 53    </path>
 54    <property
 55        name="j2se.classpath"
 56        refid="j2se.lib" />
 57    <path id="stack.classpath">
 58        <pathelement
 59            path="${j2se.classpath};${android.root}/android.jar;${stack.build}/classes;${stack.root}/build/classes" />
 60    </path>
 61
 62    <!-- ********************* -->
 63    <!-- Generate RCS API JAR  -->
 64    <!-- ********************* -->
 65    <target name="generate_api">
 66        <echo>Generate ${stack.api} file</echo>
 67        <delete file="${stack.api}" />
 68        <jar
 69            destfile="${stack.api}"
 70            basedir="${stack.root}/bin/classes"
 71            includesfile="${stack.root}/jarfiles.txt">
 72        </jar>
 73    </target>
 74
 75    <!-- ********************* -->
 76    <!-- Copy rcs_api.jar in   -->
 77    <!-- each project          -->
 78    <!-- ********************* -->
 79    <target name="copy_api">
 80        <echo>Copy ${stack.api} file</echo>
 81        <copy
 82            file="${stack.api}"
 83            todir="${stack.root}/../ri/libs" />
 84        <copy
 85            file="${stack.api}"
 86            todir="${stack.root}/../apidemo/extension/libs" />
 87        <copy
 88            file="${stack.api}"
 89            todir="${stack.root}/../apidemo/gsma/libs" />
 90        <copy
 91            file="${stack.api}"
 92            todir="${stack.root}/../apidemo/sip/libs" />
 93    </target>
 94
 95    <!-- ********************* -->
 96    <!-- Generate javadoc      -->
 97    <!-- ********************* -->
 98    <target name="generate_javadoc">
 99        <mkdir dir="${javadoc.root}" />
100        <javadoc
101            classpath="${android.root}/platforms/android-8/android.jar"
102            destdir="${javadoc.root}"
103            author="true"
104            version="true"
105            use="true"
106            windowtitle="RCS API">
107            <packageset
108                dir="${stack.root}/src"
109                defaultexcludes="yes">
110                <include name="com/orangelabs/rcs/service/api/client/**" />
111                <include name="com/orangelabs/rcs/provider/**" />
112            </packageset>
113            <fileset dir="${stack.root}/src">
114                <include
115                    name="com/orangelabs/rcs/core/ims/service/ImsServiceError.java" />
116                <include
117                    name="com/orangelabs/rcs/core/ims/service/ImsSessionBasedServiceError.java" />
118                <include
119                    name="com/orangelabs/rcs/core/ims/service/richcall/ContentSharingError.java" />
120                <include
121                    name="com/orangelabs/rcs/core/ims/service/im/chat/ChatError.java" />
122                <include
123                    name="com/orangelabs/rcs/core/ims/service/im/filetransfer/FileSharingError.java" />
124                <include
125                    name="com/orangelabs/rcs/core/ims/service/ipcall/IPCallError.java" />
126                <include
127                    name="com/orangelabs/rcs/core/ims/service/sip/SipSessionError.java" />
128                <include
129                    name="com/orangelabs/rcs/core/ims/service/im/chat/imdn/ImdnDocument.java" />
130                <include
131                    name="com/orangelabs/rcs/core/ims/service/im/chat/event/User.java" />
132            </fileset>
133            <doctitle><![CDATA[<h1>Joyn API</h1>]]></doctitle>
134            <bottom><![CDATA[<i>Joyn stack for Android</i>]]></bottom>
135            <link href="${android.root}/docs/reference" />
136        </javadoc>
137        <zip destfile="${javadoc.zip}">
138            <zipfileset
139                dir="${javadoc.root}"
140                prefix="api/javadoc" />
141        </zip>
142    </target>
143
144    <!-- ********************* -->
145    <!-- Generate sdk.zip      -->
146    <!-- ********************* -->
147    <target name="generate_sdk">
148        <zip destfile="${sdk.zip}">
149            <fileset
150                dir="${stack.root}"
151                includes="LICENSE*.txt" />
152            <fileset
153                dir="${stack.root}"
154                includes="README.txt" />
155			<fileset
156                dir="${stack.root}"
157                includes="template-ota_config-generic.xml" />
158            <zipfileset
159                dir="${stack.root}"
160                includes="rcs_api.jar"
161                prefix="api" />
162            <zipfileset
163                dir="${doc.root}/spec"
164                includes="RCS-e_API_specification.pdf"
165                prefix="api" />
166            <zipfileset
167                dir="${stack.root}/../ri/libs/armeabi"
168                includes="lib*.so"
169                prefix="api/codecs" />
170            <zipgroupfileset
171                dir="${generate.root}"
172                includes="javadoc.zip" />
173            <zipfileset
174                dir="."
175                includes="under_construction"
176                prefix="api/tutorial" />
177            <zipfileset
178                dir="${apidemo.root}/extension/bin"
179                includes="*debug.apk"
180                fullpath="samples/RCS_extension.apk" />
181            <zipfileset
182                dir="${apidemo.root}/gsma/bin"
183                includes="*debug.apk"
184                fullpath="samples/RCS_gsma.apk" />
185            <zipfileset
186                dir="${apidemo.root}/sip/bin"
187                includes="*debug.apk"
188                fullpath="samples/RCS_sip.apk" />
189            <zipfileset
190                dir="${stack.root}/bin"
191                includes="*debug.apk"
192                fullpath="stack/RCS_core.apk" />
193            <zipfileset
194                dir="${ri.root}/bin"
195                includes="*debug.apk"
196                fullpath="tools/RCS_RI.apk" />
197        </zip>
198    </target>
199
200</project>