forked from OpenNI/OpenNI2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/android_support' into develop
- Loading branch information
1 parent
8750fc8
commit c215522
Showing
108 changed files
with
69,371 additions
and
52 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# OpenNI Android makefile. | ||
# | ||
|
||
include $(call all-subdir-makefiles) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Android >= v2.3 | ||
APP_PLATFORM := android-9 | ||
|
||
# Build ARMv7-A machine code. | ||
APP_ABI := armeabi-v7a | ||
APP_CFLAGS := -O3 -ftree-vectorize -ffast-math -funroll-loops | ||
|
||
APP_CFLAGS += -fPIC | ||
|
||
ifeq ($(APP_ABI),armeabi-v7a) | ||
APP_CFLAGS += -march=armv7-a -mfloat-abi=softfp -mtune=cortex-a9 -mfp=vfpv3-d16 -mfpu=vfp | ||
|
||
# optionally add NEON to compilation flags. | ||
# to activate, run: "ndk-build USE_NEON=1" | ||
ifdef USE_NEON | ||
$(call __ndk_info,Building everything with NEON support!) | ||
APP_CFLAGS += -mfpu=neon -DHAVE_NEON=1 -flax-vector-conversions | ||
endif | ||
endif | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/***************************************************************************** | ||
* * | ||
* OpenNI 2.x Alpha * | ||
* Copyright (C) 2012 PrimeSense Ltd. * | ||
* * | ||
* This file is part of OpenNI. * | ||
* * | ||
* Licensed under the Apache License, Version 2.0 (the "License"); * | ||
* you may not use this file except in compliance with the License. * | ||
* You may obtain a copy of the License at * | ||
* * | ||
* http://www.apache.org/licenses/LICENSE-2.0 * | ||
* * | ||
* Unless required by applicable law or agreed to in writing, software * | ||
* distributed under the License is distributed on an "AS IS" BASIS, * | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * | ||
* See the License for the specific language governing permissions and * | ||
* limitations under the License. * | ||
* * | ||
*****************************************************************************/ | ||
#ifndef _ONI_PLATFORM_ANDROID_ARM_H_ | ||
#define _ONI_PLATFORM_ANDROID_ARM_H_ | ||
|
||
// Start with Linux-x86, and override what's different | ||
#include "../Linux-x86/OniPlatformLinux-x86.h" | ||
|
||
//--------------------------------------------------------------------------- | ||
// Platform Basic Definition | ||
//--------------------------------------------------------------------------- | ||
#undef ONI_PLATFORM | ||
#undef ONI_PLATFORM_STRING | ||
|
||
#define ONI_PLATFORM ONI_PLATFORM_ANDROID_ARM | ||
#define ONI_PLATFORM_STRING "Android-Arm" | ||
|
||
#endif //_ONI_PLATFORM_LINUX_ARM_H_ |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# OpenNI Android makefile. | ||
# | ||
|
||
include $(call all-subdir-makefiles) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# OpenNI Samples Android makefile. | ||
# EventBasedRead | ||
# | ||
|
||
LOCAL_PATH:= $(call my-dir) | ||
include $(CLEAR_VARS) | ||
|
||
# set path to source | ||
MY_PREFIX := $(LOCAL_PATH)/ | ||
|
||
# list all source files | ||
MY_SRC_FILES := \ | ||
$(MY_PREFIX)*.cpp \ | ||
|
||
# expand the wildcards | ||
MY_SRC_FILE_EXPANDED := $(wildcard $(MY_SRC_FILES)) | ||
|
||
# make those paths relative to here | ||
LOCAL_SRC_FILES := $(MY_SRC_FILE_EXPANDED:$(LOCAL_PATH)/%=%) | ||
|
||
LOCAL_C_INCLUDES := \ | ||
$(LOCAL_PATH)/../../Include | ||
|
||
LOCAL_SHARED_LIBRARIES := OpenNI2 | ||
|
||
LOCAL_MODULE := EventBasedRead | ||
|
||
include $(BUILD_EXECUTABLE) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# OpenNI Samples Android makefile. | ||
# MultipleStreamRead | ||
# | ||
|
||
LOCAL_PATH:= $(call my-dir) | ||
include $(CLEAR_VARS) | ||
|
||
# set path to source | ||
MY_PREFIX := $(LOCAL_PATH)/ | ||
|
||
# list all source files | ||
MY_SRC_FILES := \ | ||
$(MY_PREFIX)*.cpp \ | ||
|
||
# expand the wildcards | ||
MY_SRC_FILE_EXPANDED := $(wildcard $(MY_SRC_FILES)) | ||
|
||
# make those paths relative to here | ||
LOCAL_SRC_FILES := $(MY_SRC_FILE_EXPANDED:$(LOCAL_PATH)/%=%) | ||
|
||
LOCAL_C_INCLUDES := \ | ||
$(LOCAL_PATH)/../../Include | ||
|
||
LOCAL_SHARED_LIBRARIES := OpenNI2 | ||
|
||
LOCAL_MODULE := MultipleStreamRead | ||
|
||
include $(BUILD_EXECUTABLE) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# OpenNI Samples Android makefile. | ||
# SimpleRead | ||
# | ||
|
||
LOCAL_PATH:= $(call my-dir) | ||
include $(CLEAR_VARS) | ||
|
||
# set path to source | ||
MY_PREFIX := $(LOCAL_PATH)/ | ||
|
||
# list all source files | ||
MY_SRC_FILES := \ | ||
$(MY_PREFIX)*.cpp \ | ||
|
||
# expand the wildcards | ||
MY_SRC_FILE_EXPANDED := $(wildcard $(MY_SRC_FILES)) | ||
|
||
# make those paths relative to here | ||
LOCAL_SRC_FILES := $(MY_SRC_FILE_EXPANDED:$(LOCAL_PATH)/%=%) | ||
|
||
LOCAL_C_INCLUDES := \ | ||
$(LOCAL_PATH)/../../Include | ||
|
||
LOCAL_SHARED_LIBRARIES := OpenNI2 | ||
|
||
LOCAL_MODULE := SimpleRead | ||
|
||
include $(BUILD_EXECUTABLE) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# OpenNI Android makefile. | ||
# | ||
|
||
include $(call all-subdir-makefiles) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# OpenNI Android makefile. | ||
# libOpenNI2.so | ||
# | ||
|
||
LOCAL_PATH:= $(call my-dir) | ||
include $(CLEAR_VARS) | ||
|
||
# set path to source | ||
MY_PREFIX := $(LOCAL_PATH)/ | ||
|
||
# list all source files | ||
MY_SRC_FILES := \ | ||
$(MY_PREFIX)*.cpp \ | ||
$(MY_PREFIX)../Drivers/OniFile/Formats/XnCodec.cpp \ | ||
$(MY_PREFIX)../Drivers/OniFile/Formats/XnStreamCompression.cpp \ | ||
$(MY_PREFIX)../../ThirdParty/LibJPEG/*.c | ||
|
||
# expand the wildcards | ||
MY_SRC_FILE_EXPANDED := $(wildcard $(MY_SRC_FILES)) | ||
|
||
# make those paths relative to here | ||
LOCAL_SRC_FILES := $(MY_SRC_FILE_EXPANDED:$(LOCAL_PATH)/%=%) | ||
|
||
LOCAL_C_INCLUDES := \ | ||
$(LOCAL_PATH)/../../Include \ | ||
$(LOCAL_PATH)/../../ThirdParty/PSCommon/XnLib/Include \ | ||
$(LOCAL_PATH)/../Drivers/OniFile/Formats \ | ||
$(LOCAL_PATH)/../../ThirdParty/LibJPEG | ||
|
||
LOCAL_CFLAGS := -fvisibility=hidden -DOPENNI2_EXPORT | ||
LOCAL_CPPFLAGS := -frtti | ||
LOCAL_LDFLAGS := -Wl,--export-dynamic -llog | ||
|
||
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../Include | ||
|
||
LOCAL_PREBUILT_LIBS := libc | ||
LOCAL_STATIC_LIBRARIES := XnLib | ||
|
||
LOCAL_MODULE:= OpenNI2 | ||
|
||
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# OpenNI Android makefile. | ||
# | ||
|
||
include $(call all-subdir-makefiles) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# OpenNI OniFile Android makefile. | ||
# libOniFile.so | ||
# | ||
|
||
LOCAL_PATH:= $(call my-dir) | ||
include $(CLEAR_VARS) | ||
|
||
# set path to source | ||
MY_PREFIX := $(LOCAL_PATH)/ | ||
|
||
# list all source files | ||
MY_SRC_FILES := \ | ||
$(MY_PREFIX)*.cpp \ | ||
$(MY_PREFIX)Formats/*.cpp \ | ||
$(MY_PREFIX)XnLibExtensions/*.cpp \ | ||
$(MY_PREFIX)../../../ThirdParty/LibJPEG/*.c | ||
|
||
# expand the wildcards | ||
MY_SRC_FILE_EXPANDED := $(wildcard $(MY_SRC_FILES)) | ||
|
||
# make those paths relative to here | ||
LOCAL_SRC_FILES := $(MY_SRC_FILE_EXPANDED:$(LOCAL_PATH)/%=%) | ||
|
||
LOCAL_C_INCLUDES := \ | ||
$(LOCAL_PATH)/. \ | ||
$(LOCAL_PATH)/../../../Include \ | ||
$(LOCAL_PATH)/../../../ThirdParty/PSCommon/XnLib/Include \ | ||
$(LOCAL_PATH)/../../../ThirdParty/LibJPEG \ | ||
$(LOCAL_PATH)/Formats | ||
|
||
LOCAL_CFLAGS := -fvisibility=hidden | ||
LOCAL_CPPFLAGS := -frtti | ||
LOCAL_LDFLAGS := -Wl,--export-dynamic -llog | ||
|
||
LOCAL_PREBUILT_LIBS := libc | ||
LOCAL_STATIC_LIBRARIES := XnLib | ||
|
||
LOCAL_MODULE:= OniFile | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# OpenNI PS1080 Android makefile. | ||
# libPS1080.so | ||
# | ||
|
||
LOCAL_PATH:= $(call my-dir) | ||
include $(CLEAR_VARS) | ||
|
||
# set path to source | ||
MY_PREFIX := $(LOCAL_PATH)/ | ||
|
||
# list all source files | ||
MY_SRC_FILES := \ | ||
$(MY_PREFIX)Core/*.cpp \ | ||
$(MY_PREFIX)DDK/*.cpp \ | ||
$(MY_PREFIX)DriverImpl/*.cpp\ | ||
$(MY_PREFIX)Formats/*.cpp \ | ||
$(MY_PREFIX)Include/*.cpp \ | ||
$(MY_PREFIX)Sensor/*.cpp \ | ||
$(MY_PREFIX)../../../ThirdParty/LibJPEG/*.c | ||
|
||
# expand the wildcards | ||
MY_SRC_FILE_EXPANDED := $(wildcard $(MY_SRC_FILES)) | ||
|
||
# make those paths relative to here | ||
LOCAL_SRC_FILES := $(MY_SRC_FILE_EXPANDED:$(LOCAL_PATH)/%=%) | ||
|
||
LOCAL_C_INCLUDES := \ | ||
$(LOCAL_PATH)/. \ | ||
$(LOCAL_PATH)/Include \ | ||
$(LOCAL_PATH)/../../../Include \ | ||
$(LOCAL_PATH)/../../../ThirdParty/PSCommon/XnLib/Include | ||
|
||
LOCAL_CFLAGS := -fvisibility=hidden | ||
LOCAL_CPPFLAGS := -frtti | ||
LOCAL_LDFLAGS := -Wl,--export-dynamic -llog | ||
|
||
LOCAL_PREBUILT_LIBS := libc | ||
LOCAL_SHARED_LIBRARIES := libusb | ||
LOCAL_STATIC_LIBRARIES := XnLib | ||
|
||
LOCAL_MODULE:= PS1080 | ||
|
||
include $(BUILD_SHARED_LIBRARY) | ||
|
Oops, something went wrong.