Skip to content

Commit 634dc57

Browse files
committed
Merge pull request #3 from songchengjiang/v3
add recast(Windows/Android/Linux)
2 parents ab82d8f + c6415ee commit 634dc57

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+29513
-0
lines changed

recast/Android.mk

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
LOCAL_PATH := $(call my-dir)
2+
3+
include $(CLEAR_VARS)
4+
5+
LOCAL_MODULE := recast_static
6+
7+
LOCAL_MODULE_FILENAME := librecast
8+
9+
LOCAL_SRC_FILES := \
10+
DebugUtils/DebugDraw.cpp \
11+
DebugUtils/DetourDebugDraw.cpp \
12+
DebugUtils/RecastDebugDraw.cpp \
13+
DebugUtils/RecastDump.cpp \
14+
Detour/DetourAlloc.cpp \
15+
Detour/DetourCommon.cpp \
16+
Detour/DetourNavMesh.cpp \
17+
Detour/DetourNavMeshBuilder.cpp \
18+
Detour/DetourNavMeshQuery.cpp \
19+
Detour/DetourNode.cpp \
20+
DetourCrowd/DetourCrowd.cpp \
21+
DetourCrowd/DetourLocalBoundary.cpp \
22+
DetourCrowd/DetourObstacleAvoidance.cpp \
23+
DetourCrowd/DetourPathCorridor.cpp \
24+
DetourCrowd/DetourPathQueue.cpp \
25+
DetourCrowd/DetourProximityGrid.cpp \
26+
DetourTileCache/DetourTileCache.cpp \
27+
DetourTileCache/DetourTileCacheBuilder.cpp \
28+
Recast/Recast.cpp \
29+
Recast/RecastAlloc.cpp \
30+
Recast/RecastArea.cpp \
31+
Recast/RecastContour.cpp \
32+
Recast/RecastFilter.cpp \
33+
Recast/RecastLayers.cpp \
34+
Recast/RecastMesh.cpp \
35+
Recast/RecastMeshDetail.cpp \
36+
Recast/RecastRasterization.cpp \
37+
Recast/RecastRegion.cpp
38+
39+
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/..
40+
41+
LOCAL_C_INCLUDES := $(LOCAL_PATH)/..
42+
43+
include $(BUILD_STATIC_LIBRARY)

recast/CMakeLists.txt

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
set(RECAST_SRC
2+
DebugUtils/DebugDraw.cpp
3+
DebugUtils/DetourDebugDraw.cpp
4+
DebugUtils/RecastDebugDraw.cpp
5+
DebugUtils/RecastDump.cpp
6+
Detour/DetourAlloc.cpp
7+
Detour/DetourCommon.cpp
8+
Detour/DetourNavMesh.cpp
9+
Detour/DetourNavMeshBuilder.cpp
10+
Detour/DetourNavMeshQuery.cpp
11+
Detour/DetourNode.cpp
12+
DetourCrowd/DetourCrowd.cpp
13+
DetourCrowd/DetourLocalBoundary.cpp
14+
DetourCrowd/DetourObstacleAvoidance.cpp
15+
DetourCrowd/DetourPathCorridor.cpp
16+
DetourCrowd/DetourPathQueue.cpp
17+
DetourCrowd/DetourProximityGrid.cpp
18+
DetourTileCache/DetourTileCache.cpp
19+
DetourTileCache/DetourTileCacheBuilder.cpp
20+
Recast/Recast.cpp
21+
Recast/RecastAlloc.cpp
22+
Recast/RecastArea.cpp
23+
Recast/RecastContour.cpp
24+
Recast/RecastFilter.cpp
25+
Recast/RecastLayers.cpp
26+
Recast/RecastMesh.cpp
27+
Recast/RecastMeshDetail.cpp
28+
Recast/RecastRasterization.cpp
29+
Recast/RecastRegion.cpp
30+
)
31+
32+
include_directories(
33+
..
34+
)
35+
36+
add_library(recast STATIC
37+
${RECAST_SRC}
38+
)
39+
40+
set_target_properties(recast
41+
PROPERTIES
42+
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
43+
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
44+
)

0 commit comments

Comments
 (0)