forked from pelya/android-shmem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·25 lines (19 loc) · 1.15 KB
/
build.sh
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
#!/bin/sh
[ -e libancillary/ancillary.h ] || git submodule update --init libancillary || exit 1
mkdir -p output
mkdir -p output/aarch64
mkdir -p output/armhf
mkdir -p output/amd64
mkdir -p output/i386
/usr/bin/aarch64-linux-gnu-gcc -shared -fpic -std=gnu99 -Wall *.c -I . -I libancillary \
-o output/aarch64/libandroid-shmem.so -Wl,--version-script=exports.txt -lc -lpthread && \
/usr/bin/aarch64-linux-gnu-strip output/aarch64/libandroid-shmem.so
/usr/bin/arm-linux-gnueabihf-gcc -shared -fpic -std=gnu99 -Wall *.c -I . -I libancillary \
-o output/armhf/libandroid-shmem.so -Wl,--version-script=exports.txt -lc -lpthread && \
/usr/bin/arm-linux-gnueabihf-strip output/armhf/libandroid-shmem.so
/usr/bin/x86_64-linux-gnu-gcc -shared -fpic -std=gnu99 -Wall *.c -I . -I libancillary \
-o output/amd64/libandroid-shmem.so -Wl,--version-script=exports.txt -lc -lpthread && \
/usr/bin/x86_64-linux-gnu-strip output/amd64/libandroid-shmem.so
/usr/bin/i686-linux-gnu-gcc -shared -fpic -std=gnu99 -Wall *.c -I . -I libancillary \
-o output/i386/libandroid-shmem.so -Wl,--version-script=exports.txt -lc -lpthread && \
/usr/bin/i686-linux-gnu-strip output/i386/libandroid-shmem.so