Created
August 14, 2014 01:59
-
-
Save kyze8439690/0c69d0e8f74d59481e37 to your computer and use it in GitHub Desktop.
Jni android.mk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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