Skip to content

Instantly share code, notes, and snippets.

@wf9a5m75
Created February 7, 2015 02:08
Show Gist options
  • Select an option

  • Save wf9a5m75/c6804d731b0fc1bbbee3 to your computer and use it in GitHub Desktop.

Select an option

Save wf9a5m75/c6804d731b0fc1bbbee3 to your computer and use it in GitHub Desktop.
Android.mk
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := OpenNI2
LOCAL_SRC_FILES = openni-android/libOpenNI2.so
LOCAL_EXPORT_C_INCLUDES := OpenNI2/Include
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := test.cpp
LOCAL_CFLAGS += -Wall
LOCAL_C_INCLUDES := OpenNI2/Include\
OpenNI2/ThirdParty/PSCommon/XnLib/Include
LOCAL_LDFLAGS := -Wl,--export-dynamic
LOCAL_LDLIBS += -llog -lOpenNI2 -LOpenNI2/Packaging/OpenNI-android-2.2 -lPS1080 -lOniFile -lPSLink
LOCAL_SHARED_LIBRARIES := OpenNI2 liblog
LOCAL_MODULE := test
include $(BUILD_SHARED_LIBRARY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment