Add Android 10 and 11 and following style(9)
[android-sysinfo/.git] / Makefile
CommitLineData
410f5cae
SB
1ARCH := $(shell adb shell getprop ro.product.cpu.abi)
2SDK_VERSION := $(shell adb shell getprop ro.build.version.sdk)
e4b66277 3DESTDIR := /data/local/tmp
410f5cae
SB
4
5all: install
6
7build:
8 ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk APP_PLATFORM=android-$(SDK_VERSION) APP_ABI=$(ARCH)
9
10push: build
11 adb push libs/$(ARCH)/android-sysinfo $(DESTDIR)/android-sysinfo
12
13run:
14 adb shell $(DESTDIR)/android-sysinfo
15
16clean:
17 rm -rf libs
18 rm -rf obj
19