forked from elimu-ai/zooshi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom_rules.xml
44 lines (38 loc) · 1.76 KB
/
custom_rules.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project name="setup_fplbase_and_libraries">
<!--Get the location of fplbase by running ndk-build print_dependency.-->
<condition property="ndkbuild_exe" value="ndk-build.cmd" else="ndk-build">
<os family="windows"/>
</condition>
<exec executable="${ndkbuild_exe}" outputproperty="fplbasepath">
<arg value="print_dependency"/>
<arg value="DEP_DIR=FPLBASE"/>
<arg value="NDK_NO_INFO=1"/>
</exec>
<!--Include the common build rules from fplbase.-->
<include file="${fplbasepath}/jni/custom_rules.xml" as="fplbase"/>
<condition property="android_exe" value="android.bat" else="android">
<os family="windows" />
</condition>
<target name="initialize-android-support_lib"
description="Initialize Android Support library in the project.">
<!-- Copy the library to the project. -->
<copy todir="libs">
<fileset file="${sdk.dir}/extras/android/support/v4/android-support-v4.jar"/>
</copy>
</target>
<target name="-pre-build" depends="fplbase.setup-fplbase,
initialize-android-support_lib"/>
<target name="-pre-clean" depends="initialize-android-support_lib" />
</project>