File: android-build-jpeg.sh

package info (click to toggle)
freerdp2 2.0.0~git20190204.1.2693389a+dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 22,772 kB
  • sloc: ansic: 307,908; xml: 1,676; sh: 770; perl: 231; makefile: 158; python: 65
file content (40 lines) | stat: -rwxr-xr-x 1,110 bytes parent folder | download | duplicates (2)
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
#!/bin/bash
SCM_URL=https://github.com/akallabeth/jpeg8d
SCM_TAG=master

source $(dirname "${BASH_SOURCE[0]}")/android-build-common.sh

function usage {
	echo $0 [arguments]
	echo "\tThe script checks out the OpenH264 git repository"
	echo "\tto a local source directory, builds and installs"
	echo "\tthe library for all architectures defined to"
	echo "\tthe destination directory."
	echo ""
	echo "\t[-s|--source-dir <path>]"
	echo "\t[-d|--destination-dir <path>]"
	echo "\t[-a|--arch <architectures>]"
	echo "\t[-t|--tag <tag or branch>]"
	echo "\t[--scm-url <url>]"
	echo "\t[--ndk <android NDK path>]"
	echo "\t[--sdk <android SDK path>]"
	exit 1
}

function build {
	echo "Building architectures $BUILD_ARCH..."
	BASE=$(pwd)
	common_run cd $BUILD_SRC
	common_run $NDK_BUILD V=1 APP_ABI="${BUILD_ARCH}" NDK_TOOLCHAIN_VERSION=4.9 -j clean
	common_run $NDK_BUILD V=1 APP_ABI="${BUILD_ARCH}" NDK_TOOLCHAIN_VERSION=4.9 -j
	common_run cd $BASE
}

# Run the main program.
common_parse_arguments $@
common_check_requirements
common_update $SCM_URL $SCM_TAG $BUILD_SRC

build

common_copy $BUILD_SRC $BUILD_DST