Skip to content

Commit

Permalink
add recast(Windows/Android/Linux)
Browse files Browse the repository at this point in the history
  • Loading branch information
songchengjiang committed May 5, 2015
1 parent c7f823b commit 7ca9550
Show file tree
Hide file tree
Showing 56 changed files with 29,513 additions and 0 deletions.
43 changes: 43 additions & 0 deletions recast/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := recast_static

LOCAL_MODULE_FILENAME := librecast

LOCAL_SRC_FILES := \
DebugUtils/DebugDraw.cpp \
DebugUtils/DetourDebugDraw.cpp \
DebugUtils/RecastDebugDraw.cpp \
DebugUtils/RecastDump.cpp \
Detour/DetourAlloc.cpp \
Detour/DetourCommon.cpp \
Detour/DetourNavMesh.cpp \
Detour/DetourNavMeshBuilder.cpp \
Detour/DetourNavMeshQuery.cpp \
Detour/DetourNode.cpp \
DetourCrowd/DetourCrowd.cpp \
DetourCrowd/DetourLocalBoundary.cpp \
DetourCrowd/DetourObstacleAvoidance.cpp \
DetourCrowd/DetourPathCorridor.cpp \
DetourCrowd/DetourPathQueue.cpp \
DetourCrowd/DetourProximityGrid.cpp \
DetourTileCache/DetourTileCache.cpp \
DetourTileCache/DetourTileCacheBuilder.cpp \
Recast/Recast.cpp \
Recast/RecastAlloc.cpp \
Recast/RecastArea.cpp \
Recast/RecastContour.cpp \
Recast/RecastFilter.cpp \
Recast/RecastLayers.cpp \
Recast/RecastMesh.cpp \
Recast/RecastMeshDetail.cpp \
Recast/RecastRasterization.cpp \
Recast/RecastRegion.cpp

LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/..

LOCAL_C_INCLUDES := $(LOCAL_PATH)/..

include $(BUILD_STATIC_LIBRARY)
44 changes: 44 additions & 0 deletions recast/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
set(RECAST_SRC
DebugUtils/DebugDraw.cpp
DebugUtils/DetourDebugDraw.cpp
DebugUtils/RecastDebugDraw.cpp
DebugUtils/RecastDump.cpp
Detour/DetourAlloc.cpp
Detour/DetourCommon.cpp
Detour/DetourNavMesh.cpp
Detour/DetourNavMeshBuilder.cpp
Detour/DetourNavMeshQuery.cpp
Detour/DetourNode.cpp
DetourCrowd/DetourCrowd.cpp
DetourCrowd/DetourLocalBoundary.cpp
DetourCrowd/DetourObstacleAvoidance.cpp
DetourCrowd/DetourPathCorridor.cpp
DetourCrowd/DetourPathQueue.cpp
DetourCrowd/DetourProximityGrid.cpp
DetourTileCache/DetourTileCache.cpp
DetourTileCache/DetourTileCacheBuilder.cpp
Recast/Recast.cpp
Recast/RecastAlloc.cpp
Recast/RecastArea.cpp
Recast/RecastContour.cpp
Recast/RecastFilter.cpp
Recast/RecastLayers.cpp
Recast/RecastMesh.cpp
Recast/RecastMeshDetail.cpp
Recast/RecastRasterization.cpp
Recast/RecastRegion.cpp
)

include_directories(
..
)

add_library(recast STATIC
${RECAST_SRC}
)

set_target_properties(recast
PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
)
Loading

0 comments on commit 7ca9550

Please sign in to comment.