File: build_sample-framework

package info (click to toggle)
cegui-mk2 0.8.7%2Bgit20220615-6
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 57,824 kB
  • sloc: cpp: 306,263; python: 1,175; ansic: 812; sh: 616; xml: 191; java: 162; makefile: 21
file content (36 lines) | stat: -rwxr-xr-x 1,175 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/env bash
myScriptsDir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
. "$myScriptsDir/sample-framework_common"

cd "$androidSampleFrameworkDir"
eval echo -n "'$(<AndroidManifest.xml.in)'" >AndroidManifest.xml
eval echo -n "\"$(<ant.properties.in)\"" >ant.properties
eval echo -n "\"$(<jni/Application.mk.in)\"" >jni/Application.mk
eval echo -n "\"$(<jni/Android.mk.in)\"" >jni/Android.mk
eval echo -n "'$(<jni/deps/Android.mk.in)'" >jni/deps/Android.mk
for resolution in h m xh xxh; do
    dest="res/drawable-${resolution}dpi"
    mkdir -p "$dest"
    cp "$ceguiSrcDir/datafiles/imagesets/logo.png" "$dest/"
done
if [ -f project.properties ] && [ -f local.properties ]; then
    ant clean
    ndk-build clean
fi
: \
    &&  android update project --path . --target "android-$androidBuildTargetApiLevel" \
    &&  ndk-build "-j$buildNumOfProcesses"
if [ $? -eq 0 ]; then
    case "$sampleFrameworkAndroidProjectBuildType" in
    Debug)
        ant debug  &&  ant installd
        ;;
    Release)
        ant release  &&  ant installr
        ;;
    *)
        echo 'Error: invalid "$sampleFrameworkAndroidProjectBuildType"'
        exit 1
        ;;
    esac
fi