Created
May 17, 2014 17:06
-
-
Save peterhpchen/f9c8bbde7b813c4b8abf to your computer and use it in GitHub Desktop.
ndk-build by self
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
LOCAL_PATH := $(call my-dir) | |
include $(CLEAR_VARS) | |
LOCAL_MODULE := MyLib | |
LOCAL_SRC_FILES := main.c | |
include $(BUILD_SHARED_LIBRARY) |
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
sourceSets.main.jni.srcDirs = [] //disable automatic ndk-build call |
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
cd app/src/main | |
javah -d jni -classpath java com.hpchen.testndk02.app.MainActivity |
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
cd jni | |
ndk-build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment