Skip to content

Instantly share code, notes, and snippets.

@basharam
Last active March 1, 2018 02:02
Show Gist options
  • Save basharam/9511931 to your computer and use it in GitHub Desktop.
Save basharam/9511931 to your computer and use it in GitHub Desktop.
Link prebuilt static library Android
#Link prebuilt static library Android
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
#run scipt
#ECHO_RESULT := $(info $(shell ($(LOCAL_PATH)/testscript.sh)))
LOCAL_MODULE := NameLib1
LOCAL_C_INCLUDES :=$(LOCAL_PATH)/testfolder
LOCAL_SRC_FILES := location of /libNameLib1.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := NameLib2
LOCAL_CPP_EXTENSION := .cpp
LOCAL_SRC_FILES := file1.cpp \
file2.cpp
LOCAL_STATIC_LIBRARIES= NameLib1
LOCAL_CFLAGS := -DANDROID=1 -fpermissive -fexceptions
LOCAL_C_INCLUDES += $(LOCAL_PATH)/testfolder
include $(BUILD_STATIC_LIBRARY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment