Skip to content

Commit cfc2e2e

Browse files
author
PythonCoders45
committed
feat: Initial commit with Jolt Physics, AI, Networking backends and py3dgame Python package
1 parent 1b36f3c commit cfc2e2e

603 files changed

Lines changed: 141722 additions & 0 deletions

File tree

Some content is hidden

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

.gitignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
cat << 'EOF' > .gitignore
2+
# Compiled binaries & C++ libraries
3+
*.so
4+
*.dll
5+
*.dylib
6+
*.a
7+
*.o
8+
9+
# Python build artifacts
10+
__pycache__/
11+
*.pyc
12+
*.egg-info/
13+
dist/
14+
build/
15+
16+
# Temporary vendor files
17+
vendor_tmp/
18+
EOF

ai/CMakeLists.txt

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
2+
add_library(Recast)
3+
add_library(RecastNavigation::Recast ALIAS Recast)
4+
5+
set_target_properties(Recast PROPERTIES
6+
DEBUG_POSTFIX -d
7+
SOVERSION ${SOVERSION}
8+
VERSION ${LIB_VERSION}
9+
COMPILE_PDB_OUTPUT_DIRECTORY .
10+
COMPILE_PDB_NAME "Recast-d"
11+
CXX_STANDARD 98
12+
CXX_STANDARD_REQUIRED ON
13+
CXX_EXTENSIONS OFF # Disable compiler-specific extensions
14+
)
15+
16+
target_compile_definitions(Recast PUBLIC "$<$<NOT:${RECASTNAVIGATION_ENABLE_ASSERTS}>:RC_DISABLE_ASSERTS>")
17+
18+
target_include_directories(Recast PUBLIC
19+
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/Include>"
20+
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/recastnavigation>"
21+
)
22+
23+
target_sources(Recast PRIVATE
24+
Source/Recast.cpp
25+
Source/RecastAlloc.cpp
26+
Source/RecastArea.cpp
27+
Source/RecastAssert.cpp
28+
Source/RecastContour.cpp
29+
Source/RecastFilter.cpp
30+
Source/RecastLayers.cpp
31+
Source/RecastMesh.cpp
32+
Source/RecastMeshDetail.cpp
33+
Source/RecastRasterization.cpp
34+
Source/RecastRegion.cpp
35+
)
36+
37+
install(TARGETS Recast
38+
EXPORT recastnavigation-targets
39+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
40+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
41+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT library
42+
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} ${CMAKE_INSTALL_INCLUDEDIR}/recastnavigation
43+
)
44+
45+
install(DIRECTORY Include/
46+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/recastnavigation
47+
FILES_MATCHING PATTERN "*.h"
48+
)
49+
50+
if(MSVC)
51+
install(FILES "$<TARGET_FILE_DIR:Recast>/Recast-d.pdb"
52+
CONFIGURATIONS "Debug"
53+
DESTINATION "lib"
54+
OPTIONAL)
55+
endif()

0 commit comments

Comments
 (0)