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