-
-
Save initishbhatt/fab6b25d935f14699c4c31f8e0ef7dc2 to your computer and use it in GitHub Desktop.
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) #This variable indicates the location of | |
#the source files in the development tree. | |
# Include shared library in project | |
#################################### | |
include $(CLEAR_VARS) | |
LOCAL_MODULE := examplelib #LOCAL_MODULE variable stores the | |
#name of the module that you wish to build. | |
LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/examplelib.so | |
include $(PREBUILT_SHARED_LIBRARY) | |
# Generate JNI shared library | |
############################## | |
include $(CLEAR_VARS) | |
LOCAL_MODULE := ExampleModule | |
LOCAL_C_INCLUDES +=$(LOCAL_PATH)/xyz $(LOCAL_PATH)/buffer | |
LOCAL_CFLAGS := -DANDROID_NDK -O2 -D__STDC_CONSTANT_MACROS -DFROM_PGMS | |
-D_GXX_EXPERIMENTAL_CXX0X_ -fexceptions | |
FILE_LIST = ExampleFile.cpp\ | |
ExampleFile2,cpp | |
LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%) #LOCAL_SRC_FILES variable must | |
#contain a list of C and/or C++ source files to build into a module | |
LD_LIBRARY_PATH+=$(LOCAL_PATH) | |
LOCAL_LDLIBS := -lGLESv2 -ldl -llog | |
LOCAL_SHARED_LIBRARIES := sharedLib | |
include $(BUILD_SHARED_LIBRARY) #This script determines what to build, | |
#and how to do it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment