diff options
| author | Zach Riggle <riggle@google.com> | 2018-10-11 16:01:25 -0500 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-10-12 16:39:26 +0200 |
| commit | caf12900683e434dcd16bdac59b909f13fb09099 (patch) | |
| tree | 95f376cf9cba7a65831072fee8ff8a8dddf7a8a9 /tools/android/Makefile | |
| parent | 751b7baf9499cf287eaaa58e0978e377fa651015 (diff) | |
Android: Add simple test harness for Sandbox
Diffstat (limited to 'tools/android/Makefile')
| -rw-r--r-- | tools/android/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/android/Makefile b/tools/android/Makefile new file mode 100644 index 000000000..556868f97 --- /dev/null +++ b/tools/android/Makefile @@ -0,0 +1,18 @@ +TARGET := libs/arm64-v8a/sandbox_test +SRC := jni/sandbox_test.c + +all: $(TARGET) + +$(TARGET): $(SRC) + ndk-build + +push: $(TARGET) + adb push "$^" /data/local/tmp + +run: push + adb shell /data/local/tmp/sandbox_test + +clean: + rm -rf libs obj + +.PHONY: all push run |
