This repository was archived by the owner on Jan 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathbuild.sh
More file actions
24 lines (22 loc) · 1.31 KB
/
build.sh
File metadata and controls
24 lines (22 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
basedir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
midilibgiturl="https://github.com/LeffelMania/android-midi-lib.git"
brlttygiturl="https://github.com/brltty/brltty.git"
liblouisgiturl="https://github.com/liblouis/liblouis.git"
git clone $midilibgiturl $basedir/third_party/midilib
git clone --branch v3.4.0 $liblouisgiturl $basedir/third_party/liblouislib
git clone --branch BRLTTY-5.6 $brlttygiturl $basedir/third_party/brlttylib
cp -r $basedir/third_party/midilib/src/main/java/* $basedir/braille/libraries/utils/src
cp $basedir/third_party/midilib/LICENSE $basedir/braille/libraries/utils
mkdir $basedir/braille/service/jni/brlttywrapper/brltty
cp -r $basedir/third_party/brlttylib/Drivers $basedir/braille/service/jni/brlttywrapper/brltty
cp -r $basedir/third_party/brlttylib/Headers $basedir/braille/service/jni/brlttywrapper/brltty
cp -r $basedir/third_party/brlttylib/Programs $basedir/braille/service/jni/brlttywrapper/brltty
mkdir $basedir/braille/service/jni/liblouiswrapper/liblouis
cp -r $basedir/third_party/liblouislib/liblouis $basedir/braille/service/jni/liblouiswrapper/liblouis
cp -r $basedir/third_party/liblouislib/tables $basedir/braille/service/jni/liblouiswrapper/liblouis
cd $basedir
patch -p1 < brltty.patch
patch -p1 < liblouis.patch
cd braille
./gradlew assembleDebug