Skip to content

Instantly share code, notes, and snippets.

@kyze8439690
Created August 14, 2014 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyze8439690/0c69d0e8f74d59481e37 to your computer and use it in GitHub Desktop.
Save kyze8439690/0c69d0e8f74d59481e37 to your computer and use it in GitHub Desktop.
Jni android.mk
#Start from here
LOCAL+PATH:= $(call my-dir)
#Module1 definition start
include $(CLEAR_VARS)
LOCAL_MODULE := modulename1
LOCAL_SRC_FILES := modulesource1.c
include $(BUILD_STATIC_LIBRARY)
#Module1 definition end, this is a lib module, so it is "BUILD_STATIC_LIBRARY"
#Module2 difinition start
include $(CLEAR_VARS)
LOCAL_MODULE := modulename2
LOCAL_SRC_FILES := modulesource2.c
LOCAL_STATIC_LIBRARIES := modulename1
include $(BUILD_SHARED_LIBRARY)
#Module2 definition end, this is a normal module, use module1 as a library, so call "LOCAL_STATIC_LIBRARIES := modulename1"
#And it is "BUILD_SHARED_LIBRARY"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment