p7zip-rar/CPP/ANDROID/makefile.inc
2017-10-11 12:40:22 +02:00

34 lines
606 B
PHP
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# For emulator
# DEVICE_DIR=/data/app
# DEVICE_DIR=/sdcard/P7ZIP # cannot do "chmod 777"
# For ACER ICONIA A500
# For SAMSUNG S II
# DEVICE_DIR=/data/local/P7ZIP
# For Samsung Galaxy Note 3
DEVICE_DIR=/data/local/tmp/P7ZIP
all: build
build:
cd jni ; ndk-build NDK_DEBUG=0 V=1
install::
adb shell mkdir $(DEVICE_DIR)
adb push ./libs/armeabi/$(TARGET) $(DEVICE_DIR)
adb shell chmod 777 $(DEVICE_DIR)/$(TARGET)
# adb push ./libs/armeabi-v7a/$(TARGET) $(DEVICE_DIR)/$(TARGET)-v7a
# adb shell chmod 777 $(DEVICE_DIR)/$(TARGET)-v7a
mkdir:
adb shell mkdir $(DEVICE_DIR)
clean:
rm -fr libs obj