File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ else ifeq ($(PLATFORM),android)
115115
116116 OPENSSL := $(BIN)/../sysroot/usr/include/openssl
117117 CC = $(BIN)/$(ARCH)-linux-$(ANDROID_ABI)-clang
118- CURL_CONFIG = --host $(ARCH)-linux-$(ANDROID_ABI) --with-openssl=$(BIN)/../sysroot/usr LIBS="-lssl -lcrypto" AR=$(BIN)/llvm-ar AS=$(BIN)/llvm-as CC=$(CC) CXX=$(BIN)/$(ARCH)-linux-$(ANDROID_ABI)-clang++ LD=$(BIN)/ld RANLIB=$(BIN)/llvm-ranlib STRIP=$(BIN)/llvm-strip
118+ CURL_CONFIG = --host $(ARCH)-linux-$(ANDROID_ABI) --with-openssl=$(BIN)/../sysroot/usr LIBS="-lssl -lcrypto" AR=$(BIN)/llvm-ar AS=$(BIN)/llvm-as CC=$(CC) CXX=$(BIN)/$(ARCH)-linux-$(ANDROID_ABI)-clang++ LD=$(BIN)/ld RANLIB=$(BIN)/llvm-ranlib STRIP=$(BIN)/llvm-strip CFLAGS="-fPIC"
119119 TARGET := $(DIST_DIR)/cloudsync.so
120120 LDFLAGS += -shared -lcrypto -lssl
121121 STRIP = $(BIN)/llvm-strip --strip-unneeded $@
@@ -393,6 +393,10 @@ aar:
393393 cd packages/android && ./gradlew clean assembleRelease
394394 cp packages/android/build/outputs/aar/android-release.aar $(DIST_DIR ) /cloudsync.aar
395395
396+ clean-aar :
397+ rm -rf packages/android/build $(AAR_ARM64 ) $(AAR_ARM ) $(AAR_X86 )
398+ $(AAR_CLEAN )
399+
396400# Tools
397401version :
398402 @echo $(shell sed -n 's/^#define CLOUDSYNC_VERSION[[:space:]]* "\([^"]* \) " .*/\1/p' src/cloudsync.h)
You can’t perform that action at this time.
0 commit comments