feat(physics): wire physx sdk into build
This commit is contained in:
120
engine/third_party/physx/source/compiler/cmake/CMakeLists.txt
vendored
Normal file
120
engine/third_party/physx/source/compiler/cmake/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,120 @@
|
||||
## Redistribution and use in source and binary forms, with or without
|
||||
## modification, are permitted provided that the following conditions
|
||||
## are met:
|
||||
## * Redistributions of source code must retain the above copyright
|
||||
## notice, this list of conditions and the following disclaimer.
|
||||
## * Redistributions in binary form must reproduce the above copyright
|
||||
## notice, this list of conditions and the following disclaimer in the
|
||||
## documentation and/or other materials provided with the distribution.
|
||||
## * Neither the name of NVIDIA CORPORATION nor the names of its
|
||||
## contributors may be used to endorse or promote products derived
|
||||
## from this software without specific prior written permission.
|
||||
##
|
||||
## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
|
||||
## EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
## PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
## EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
## PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
## PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
## OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
##
|
||||
## Copyright (c) 2008-2025 NVIDIA Corporation. All rights reserved.
|
||||
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
project(PhysX C CXX)
|
||||
|
||||
CMAKE_POLICY(SET CMP0057 NEW) # Enable IN_LIST
|
||||
|
||||
# Check if this is a public release build
|
||||
IF(NOT DEFINED PUBLIC_RELEASE)
|
||||
SET(PUBLIC_RELEASE 0) # Default to private release
|
||||
ENDIF()
|
||||
IF(PUBLIC_RELEASE)
|
||||
MESSAGE("Building for PUBLIC RELEASE")
|
||||
ENDIF()
|
||||
|
||||
OPTION(PX_SCALAR_MATH "Disable SIMD math" OFF)
|
||||
OPTION(PX_GENERATE_STATIC_LIBRARIES "Generate static libraries" OFF)
|
||||
OPTION(PX_EXPORT_LOWLEVEL_PDB "Export low level pdb's" OFF)
|
||||
|
||||
IF(NOT DEFINED PHYSX_ROOT_DIR)
|
||||
|
||||
STRING(REPLACE "\\" "/" BRD_TEMP $ENV{PHYSX_ROOT_DIR})
|
||||
|
||||
# This env variable is set by GenerateProjects.bat, and is no longer available when CMake rebuilds, so this stores it in the cache
|
||||
SET(PHYSX_ROOT_DIR ${BRD_TEMP} CACHE INTERNAL "Root of the PhysX source tree")
|
||||
|
||||
ENDIF()
|
||||
|
||||
MESSAGE("PHYSX ROOT ${PHYSX_ROOT_DIR}")
|
||||
|
||||
IF(NOT EXISTS ${PHYSX_ROOT_DIR})
|
||||
MESSAGE(FATAL_ERROR "PHYSX_ROOT_DIR environment variable wasn't set or was invalid.")
|
||||
ENDIF()
|
||||
|
||||
MESSAGE("PhysX Build Platform: " ${TARGET_BUILD_PLATFORM})
|
||||
MESSAGE("Using CXX Compiler: " ${CMAKE_CXX_COMPILER})
|
||||
|
||||
INCLUDE(NvidiaBuildOptions)
|
||||
|
||||
IF(CMAKE_CONFIGURATION_TYPES)
|
||||
SET(CMAKE_CONFIGURATION_TYPES debug checked profile release)
|
||||
SET(CMAKE_CONFIGURATION_TYPES "${CMAKE_CONFIGURATION_TYPES}" CACHE STRING
|
||||
"Reset config to what we need"
|
||||
FORCE)
|
||||
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS_CHECKED "")
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS_PROFILE "")
|
||||
|
||||
# Build PDBs for all configurations
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS "/DEBUG")
|
||||
|
||||
ENDIF()
|
||||
|
||||
# Prevent failure due to command line limitations
|
||||
IF(USE_RESPONSE_FILES)
|
||||
SET(CMAKE_C_USE_RESPONSE_FILE_FOR_OBJECTS 1)
|
||||
SET(CMAKE_C_USE_RESPONSE_FILE_FOR_INCLUDES 1)
|
||||
SET(CMAKE_C_USE_RESPONSE_FILE_FOR_LIBRARIES 1)
|
||||
SET(CMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS 1)
|
||||
SET(CMAKE_CXX_USE_RESPONSE_FILE_FOR_INCLUDES 1)
|
||||
SET(CMAKE_CXX_USE_RESPONSE_FILE_FOR_LIBRARIES 1)
|
||||
ENDIF()
|
||||
|
||||
IF($ENV{PHYSX_AUTOBUILD})
|
||||
IF($ENV{PHYSX_AUTOBUILD} STREQUAL "1")
|
||||
SET(PHYSX_AUTOBUILD "PHYSX_AUTOBUILD")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
SET(PROJECT_CMAKE_FILES_DIR source/compiler/cmake)
|
||||
SET(PLATFORM_CMAKELISTS ${PHYSX_ROOT_DIR}/${PROJECT_CMAKE_FILES_DIR}/${TARGET_BUILD_PLATFORM}/CMakeLists.txt)
|
||||
|
||||
IF(NOT EXISTS ${PLATFORM_CMAKELISTS})
|
||||
MESSAGE(FATAL_ERROR "Unable to find platform CMakeLists.txt for ${TARGET_BUILD_PLATFORM} at ${PLATFORM_CMAKELISTS}")
|
||||
ENDIF()
|
||||
|
||||
SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
SET(SOURCE_DISTRO_FILE_LIST "")
|
||||
|
||||
SET(HEADER_GUARD_NAME "CONFIG")
|
||||
SET(HEADER_CONTENT "")
|
||||
FILE(READ ${PHYSX_ROOT_DIR}/buildtools/templates/boilerplate_bsd.txt BOILERPLATE_CONTENT)
|
||||
|
||||
# Include the platform specific CMakeLists
|
||||
INCLUDE(${PHYSX_ROOT_DIR}/${PROJECT_CMAKE_FILES_DIR}/${TARGET_BUILD_PLATFORM}/CMakeLists.txt)
|
||||
|
||||
# generate PxConfig.h header that will contain PhysX configuration defines like PX_PHYSX_STATIC_LIB
|
||||
CONFIGURE_FILE(${PHYSX_ROOT_DIR}/buildtools/templates/PxIncludeTemplate.h ${PHYSX_ROOT_DIR}/include/PxConfig.h)
|
||||
|
||||
IF(PX_GENERATE_SOURCE_DISTRO)
|
||||
FOREACH(FILE_NAME ${SOURCE_DISTRO_FILE_LIST})
|
||||
FILE(APPEND "${CMAKE_CURRENT_BINARY_DIR}/source_distro_list.txt" "${FILE_NAME}\n")
|
||||
ENDFOREACH()
|
||||
ENDIF()
|
||||
252
engine/third_party/physx/source/compiler/cmake/linux/CMakeLists.txt
vendored
Normal file
252
engine/third_party/physx/source/compiler/cmake/linux/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,252 @@
|
||||
## Redistribution and use in source and binary forms, with or without
|
||||
## modification, are permitted provided that the following conditions
|
||||
## are met:
|
||||
## * Redistributions of source code must retain the above copyright
|
||||
## notice, this list of conditions and the following disclaimer.
|
||||
## * Redistributions in binary form must reproduce the above copyright
|
||||
## notice, this list of conditions and the following disclaimer in the
|
||||
## documentation and/or other materials provided with the distribution.
|
||||
## * Neither the name of NVIDIA CORPORATION nor the names of its
|
||||
## contributors may be used to endorse or promote products derived
|
||||
## from this software without specific prior written permission.
|
||||
##
|
||||
## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
|
||||
## EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
## PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
## EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
## PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
## PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
## OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
##
|
||||
## Copyright (c) 2008-2025 NVIDIA Corporation. All rights reserved.
|
||||
|
||||
STRING(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWERCASE)
|
||||
|
||||
#TODO: Fix warnings
|
||||
SET(CLANG_WARNINGS "-ferror-limit=0 -Wall -Wextra -Werror -Weverything\
|
||||
-Wno-unused-but-set-variable \
|
||||
-Wno-switch-default \
|
||||
-Wno-cast-qual \
|
||||
-Wno-invalid-offsetof \
|
||||
-Wno-unsafe-buffer-usage \
|
||||
-Wno-alloca \
|
||||
-Wno-atomic-implicit-seq-cst \
|
||||
-Wno-c++98-compat-pedantic \
|
||||
-Wno-c++98-compat \
|
||||
-Wno-cast-align \
|
||||
-Wno-conversion \
|
||||
-Wno-covered-switch-default \
|
||||
-Wno-deprecated \
|
||||
-Wno-documentation-deprecated-sync \
|
||||
-Wno-documentation-unknown-command \
|
||||
-Wno-exit-time-destructors \
|
||||
-Wno-extra-semi-stmt \
|
||||
-Wno-float-equal \
|
||||
-Wno-format-nonliteral \
|
||||
-Wno-global-constructors \
|
||||
-Wno-implicit-fallthrough \
|
||||
-Wno-inconsistent-missing-destructor-override \
|
||||
-Wno-inconsistent-missing-override \
|
||||
-Wno-missing-noreturn \
|
||||
-Wno-missing-prototypes \
|
||||
-Wno-missing-variable-declarations \
|
||||
-Wno-newline-eof \
|
||||
-Wno-non-virtual-dtor \
|
||||
-Wno-old-style-cast \
|
||||
-Wno-padded \
|
||||
-Wno-reserved-id-macro \
|
||||
-Wno-suggest-destructor-override \
|
||||
-Wno-suggest-override \
|
||||
-Wno-switch-enum \
|
||||
-Wno-undef \
|
||||
-Wno-undefined-reinterpret-cast \
|
||||
-Wno-unknown-warning-option \
|
||||
-Wno-unreachable-code \
|
||||
-Wno-unused-function \
|
||||
-Wno-unused-macros \
|
||||
-Wno-unused-member-function \
|
||||
-Wno-unused-private-field \
|
||||
-Wno-used-but-marked-unused \
|
||||
-Wno-weak-template-vtables \
|
||||
-Wno-weak-vtables \
|
||||
-Wno-zero-as-null-pointer-constant \
|
||||
-Wno-reserved-identifier \
|
||||
-Wno-undefined-func-template \
|
||||
")
|
||||
|
||||
SET(GCC_WARNINGS "-Wall -Werror \
|
||||
-Wno-address \
|
||||
-Wno-aligned-new \
|
||||
-Wno-array-bounds \
|
||||
-Wno-class-memaccess \
|
||||
-Wno-conversion-null \
|
||||
-Wno-format \
|
||||
-Wno-format-overflow \
|
||||
-Wno-invalid-offsetof \
|
||||
-Wno-misleading-indentation \
|
||||
-Wno-mismatched-new-delete \
|
||||
-Wno-nonnull \
|
||||
-Wno-nonnull-compare \
|
||||
-Wno-pragmas \
|
||||
-Wno-restrict \
|
||||
-Wno-stringop-overflow \
|
||||
-Wno-stringop-overread \
|
||||
-Wno-subobject-linkage \
|
||||
-Wno-template-id-cdtor \
|
||||
-Wno-uninitialized \
|
||||
-Wno-unused-but-set-variable \
|
||||
-Wno-unused-function \
|
||||
-Wno-unused-result \
|
||||
-Wno-unknown-pragmas \
|
||||
-Wno-use-after-free \
|
||||
")
|
||||
|
||||
IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
|
||||
# gw: these optimizations are disabled for now. fp-contract causes floating point inaccuracy and deviation in behavior,
|
||||
# tree-vrp and delete-null-pointer-checks cause known bugs on some versions of gcc
|
||||
IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
SET(AARCH64_FLAGS "-ffp-contract=off -fno-delete-null-pointer-checks -faligned-new")
|
||||
ELSEIF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
SET(AARCH64_FLAGS "-ffp-contract=off -Wno-unsupported-floating-point-opt")
|
||||
ENDIF()
|
||||
ELSE()
|
||||
SET(AARCH64_FLAGS "")
|
||||
ENDIF()
|
||||
|
||||
SET(COMMON_CXX_FLAGS "-std=c++14 -D_GLIBCXX_USE_CXX11_ABI=1 -fno-rtti -fno-exceptions -ffunction-sections -fdata-sections -fvisibility=hidden ${AARCH64_FLAGS}")
|
||||
|
||||
IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
IF ("${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "10.0.0")
|
||||
SET(PHYSX_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMMON_CXX_FLAGS} -fstrict-aliasing -Wstrict-aliasing=2 -Wno-shadow ${CLANG_WARNINGS}" CACHE INTERNAL "PhysX CXX")
|
||||
ELSE()
|
||||
SET(PHYSX_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMMON_CXX_FLAGS} -fstrict-aliasing -Wstrict-aliasing=2 -ffp-exception-behavior=maytrap ${CLANG_WARNINGS}" CACHE INTERNAL "PhysX CXX")
|
||||
ENDIF()
|
||||
ELSEIF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
SET(PHYSX_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMMON_CXX_FLAGS} -fno-strict-aliasing ${GCC_WARNINGS}" CACHE INTERNAL "PhysX CXX")
|
||||
ENDIF()
|
||||
|
||||
IF (PX_USE_MOLD_LINKER)
|
||||
SET (PHYSX_CXX_FLAGS "${PHYSX_CXX_FLAGS} -Wno-unused-command-line-argument -fuse-ld=mold " CACHE INTERNAL "PhysX CXX")
|
||||
ENDIF()
|
||||
|
||||
# Build debug info for all configurations
|
||||
SET(PHYSX_CXX_FLAGS_DEBUG "-O0 -g3 -gdwarf-2" CACHE INTERNAL "PhysX Debug CXX Flags")
|
||||
SET(PHYSX_CXX_FLAGS_CHECKED "-O3 -g3 -gdwarf-2" CACHE INTERNAL "PhysX Checked CXX Flags")
|
||||
SET(PHYSX_CXX_FLAGS_PROFILE "-O3" CACHE INTERNAL "PhysX Profile CXX Flags")
|
||||
SET(PHYSX_CXX_FLAGS_RELEASE "-O3" CACHE INTERNAL "PhysX Release CXX Flags")
|
||||
|
||||
# These flags are local to the directory the CMakeLists.txt is in, so don't get carried over to OTHER CMakeLists.txt (thus the CACHE variables above)
|
||||
SET(CMAKE_CXX_FLAGS ${PHYSX_CXX_FLAGS})
|
||||
|
||||
SET(CMAKE_CXX_FLAGS_DEBUG ${PHYSX_CXX_FLAGS_DEBUG})
|
||||
SET(CMAKE_CXX_FLAGS_CHECKED ${PHYSX_CXX_FLAGS_CHECKED})
|
||||
SET(CMAKE_CXX_FLAGS_PROFILE ${PHYSX_CXX_FLAGS_PROFILE})
|
||||
SET(CMAKE_CXX_FLAGS_RELEASE ${PHYSX_CXX_FLAGS_RELEASE})
|
||||
|
||||
IF(PUBLIC_RELEASE)
|
||||
SET(PUBLIC_RELEASE_FLAG "PX_PUBLIC_RELEASE=1")
|
||||
ELSE()
|
||||
SET(PUBLIC_RELEASE_FLAG "PX_PUBLIC_RELEASE=0")
|
||||
ENDIF()
|
||||
|
||||
# Controls PX_NVTX for all projects
|
||||
SET(NVTX_FLAG "PX_NVTX=0")
|
||||
IF(${CMAKE_CROSSCOMPILING} AND CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
|
||||
SET(PX_SUPPORT_OMNI_PVD_FLAG "PX_SUPPORT_OMNI_PVD=0")
|
||||
ELSE()
|
||||
SET(PX_SUPPORT_OMNI_PVD_FLAG "PX_SUPPORT_OMNI_PVD=1")
|
||||
ENDIF()
|
||||
|
||||
# Set DISABLE_CUDA_PHYSX when GPU projects are not enabled
|
||||
IF(NOT PX_GENERATE_GPU_PROJECTS_ONLY AND NOT PX_GENERATE_GPU_PROJECTS)
|
||||
# CMake automatically adds the appropriate prefix (-D for GCC/Clang) when the definition
|
||||
# is added to the target via target_compile_definitions or add_definitions
|
||||
SET(DISABLE_CUDA_DEF "DISABLE_CUDA_PHYSX")
|
||||
ENDIF()
|
||||
|
||||
SET(PHYSX_LINUX_COMPILE_DEFS "${PHYSX_AUTOBUILD};${PUBLIC_RELEASE_FLAG};${DISABLE_CUDA_DEF}" CACHE INTERNAL "Base PhysX preprocessor definitions")
|
||||
SET(PHYSX_LINUX_DEBUG_COMPILE_DEFS "PX_DEBUG=1;PX_CHECKED=1;${NVTX_FLAG};PX_SUPPORT_PVD=1;${PX_SUPPORT_OMNI_PVD_FLAG}" CACHE INTERNAL "Debug PhysX preprocessor definitions")
|
||||
SET(PHYSX_LINUX_CHECKED_COMPILE_DEFS "NDEBUG;PX_CHECKED=1;${NVTX_FLAG};PX_SUPPORT_PVD=1;${PX_SUPPORT_OMNI_PVD_FLAG}" CACHE INTERNAL "Checked PhysX preprocessor definitions")
|
||||
SET(PHYSX_LINUX_PROFILE_COMPILE_DEFS "NDEBUG;PX_PROFILE=1;${NVTX_FLAG};PX_SUPPORT_PVD=1;${PX_SUPPORT_OMNI_PVD_FLAG}" CACHE INTERNAL "Profile PhysX preprocessor definitions")
|
||||
SET(PHYSX_LINUX_RELEASE_COMPILE_DEFS "NDEBUG;PX_SUPPORT_PVD=0;PX_SUPPORT_OMNI_PVD=0" CACHE INTERNAL "Release PhysX preprocessor definitions")
|
||||
|
||||
# IF(PUBLIC_RELEASE)
|
||||
# IF(NOT PHYSX_PHYSXGPU_PATH)
|
||||
# SET(PHYSX_PHYSXGPU_PATH "$ENV{PM_PhysXGpu_PATH}/bin" CACHE INTERNAL "PhysXGpu copy path")
|
||||
# ENDIF()
|
||||
# IF(NOT GPU_LIB_COPIED)
|
||||
# IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
|
||||
# SET(GPU_LIB_COPIED 1 CACHE INTERNAL "PhysX GPU so files copied")
|
||||
# FILE(COPY ${PHYSX_PHYSXGPU_PATH}/linux.aarch64/checked/libPhysXGpu_64.so DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_DEBUG})
|
||||
# FILE(COPY ${PHYSX_PHYSXGPU_PATH}/linux.aarch64/checked/libPhysXGpu_64.so DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_CHECKED})
|
||||
# FILE(COPY ${PHYSX_PHYSXGPU_PATH}/linux.aarch64/profile/libPhysXGpu_64.so DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_PROFILE})
|
||||
# FILE(COPY ${PHYSX_PHYSXGPU_PATH}/linux.aarch64/release/libPhysXGpu_64.so DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_RELEASE})
|
||||
# INSTALL(PROGRAMS ${PHYSX_PHYSXGPU_PATH}/linux.aarch64/$<$<CONFIG:debug>:checked>$<$<CONFIG:release>:release>$<$<CONFIG:checked>:checked>$<$<CONFIG:profile>:profile>/libPhysXGpu_64.so
|
||||
# DESTINATION $<$<CONFIG:debug>:${PX_ROOT_LIB_DIR}/debug>$<$<CONFIG:release>:${PX_ROOT_LIB_DIR}/release>$<$<CONFIG:checked>:${PX_ROOT_LIB_DIR}/checked>$<$<CONFIG:profile>:${PX_ROOT_LIB_DIR}/profile> OPTIONAL)
|
||||
# ELSEIF(UNIX)
|
||||
# SET(GPU_LIB_COPIED 1 CACHE INTERNAL "PhysX GPU so files copied")
|
||||
# FILE(COPY ${PHYSX_PHYSXGPU_PATH}/linux.x86_64/checked/libPhysXGpu_64.so DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_DEBUG})
|
||||
# FILE(COPY ${PHYSX_PHYSXGPU_PATH}/linux.x86_64/checked/libPhysXGpu_64.so DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_CHECKED})
|
||||
# FILE(COPY ${PHYSX_PHYSXGPU_PATH}/linux.x86_64/profile/libPhysXGpu_64.so DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_PROFILE})
|
||||
# FILE(COPY ${PHYSX_PHYSXGPU_PATH}/linux.x86_64/release/libPhysXGpu_64.so DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_RELEASE})
|
||||
# INSTALL(PROGRAMS ${PHYSX_PHYSXGPU_PATH}/linux.x86_64/$<$<CONFIG:debug>:checked>$<$<CONFIG:release>:release>$<$<CONFIG:checked>:checked>$<$<CONFIG:profile>:profile>/libPhysXGpu_64.so
|
||||
# DESTINATION $<$<CONFIG:debug>:${PX_ROOT_LIB_DIR}/debug>$<$<CONFIG:release>:${PX_ROOT_LIB_DIR}/release>$<$<CONFIG:checked>:${PX_ROOT_LIB_DIR}/checked>$<$<CONFIG:profile>:${PX_ROOT_LIB_DIR}/profile> OPTIONAL)
|
||||
# ENDIF()
|
||||
# ENDIF()
|
||||
# ENDIF()
|
||||
|
||||
# Include all of the projects
|
||||
IF(PX_GENERATE_GPU_PROJECTS_ONLY)
|
||||
INCLUDE(PhysXCommon.cmake)
|
||||
INCLUDE(PhysXFoundation.cmake)
|
||||
INCLUDE(LowLevelAABB.cmake)
|
||||
|
||||
SET_PROPERTY(TARGET PhysXCommon PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET PhysXFoundation PROPERTY FOLDER "PhysX SDK")
|
||||
ELSE()
|
||||
INCLUDE(PhysXFoundation.cmake)
|
||||
INCLUDE(LowLevel.cmake)
|
||||
INCLUDE(LowLevelAABB.cmake)
|
||||
INCLUDE(LowLevelDynamics.cmake)
|
||||
INCLUDE(PhysX.cmake)
|
||||
INCLUDE(PhysXCharacterKinematic.cmake)
|
||||
INCLUDE(PhysXCommon.cmake)
|
||||
INCLUDE(PhysXCooking.cmake)
|
||||
INCLUDE(PhysXExtensions.cmake)
|
||||
INCLUDE(PhysXVehicle.cmake)
|
||||
INCLUDE(SceneQuery.cmake)
|
||||
INCLUDE(SimulationController.cmake)
|
||||
INCLUDE(PhysXPvdSDK.cmake)
|
||||
INCLUDE(PhysXTask.cmake)
|
||||
|
||||
# Set folder PhysX SDK to all common SDK source projects
|
||||
SET_PROPERTY(TARGET PhysX PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET PhysXCharacterKinematic PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET PhysXCommon PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET PhysXCooking PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET PhysXExtensions PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET PhysXVehicle2 PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET LowLevel PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET LowLevelAABB PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET LowLevelDynamics PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET SceneQuery PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET SimulationController PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET PhysXPvdSDK PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET PhysXTask PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET PhysXFoundation PROPERTY FOLDER "PhysX SDK")
|
||||
|
||||
|
||||
SET(PHYSXDISTRO_LIBS PhysXFoundation PhysX PhysXCharacterKinematic PhysXPvdSDK PhysXCommon PhysXCooking PhysXExtensions PhysXVehicle2)
|
||||
|
||||
|
||||
INSTALL(
|
||||
TARGETS ${PHYSXDISTRO_LIBS}
|
||||
EXPORT PhysXSDK
|
||||
DESTINATION $<$<CONFIG:debug>:${PX_ROOT_LIB_DIR}/debug>$<$<CONFIG:release>:${PX_ROOT_LIB_DIR}/release>$<$<CONFIG:checked>:${PX_ROOT_LIB_DIR}/checked>$<$<CONFIG:profile>:${PX_ROOT_LIB_DIR}/profile>
|
||||
)
|
||||
|
||||
ENDIF()
|
||||
239
engine/third_party/physx/source/compiler/cmake/windows/CMakeLists.txt
vendored
Normal file
239
engine/third_party/physx/source/compiler/cmake/windows/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,239 @@
|
||||
## Redistribution and use in source and binary forms, with or without
|
||||
## modification, are permitted provided that the following conditions
|
||||
## are met:
|
||||
## * Redistributions of source code must retain the above copyright
|
||||
## notice, this list of conditions and the following disclaimer.
|
||||
## * Redistributions in binary form must reproduce the above copyright
|
||||
## notice, this list of conditions and the following disclaimer in the
|
||||
## documentation and/or other materials provided with the distribution.
|
||||
## * Neither the name of NVIDIA CORPORATION nor the names of its
|
||||
## contributors may be used to endorse or promote products derived
|
||||
## from this software without specific prior written permission.
|
||||
##
|
||||
## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
|
||||
## EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
## PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
## EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
## PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
## PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
## OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
##
|
||||
## Copyright (c) 2008-2025 NVIDIA Corporation. All rights reserved.
|
||||
|
||||
OPTION(PX_COPY_EXTERNAL_DLL "Copy external dlls into SDK bin directory" OFF)
|
||||
OPTION(PX_FLOAT_POINT_PRECISE_MATH "Float point precise math" OFF)
|
||||
OPTION(PX_USE_NVTX "Enabled NVTX profiling" OFF)
|
||||
|
||||
# We define the CXX flags for this CMakeLists and all others that are included afterwards. This is a GLOBAL setting.
|
||||
# If/when the solutions go standalone (say, visual tests) - those CMakeLists will need to be fixed.
|
||||
|
||||
SET(PHYSX_WARNING_DISABLES "/wd4514 /wd4820 /wd4127 /wd4710 /wd4711 /wd4577 /wd4996")
|
||||
|
||||
# Cache the CXX flags so the other CMakeLists.txt can use them if needed
|
||||
IF(PX_FLOAT_POINT_PRECISE_MATH)
|
||||
SET(PHYSX_FP_MODE "/fp:precise")
|
||||
ELSE()
|
||||
SET(PHYSX_FP_MODE "/fp:fast")
|
||||
ENDIF()
|
||||
|
||||
# Common Flags
|
||||
# PT: changed /Ox to /O2 because "the /Ox compiler option enables only a subset of the speed optimization options enabled by /O2."
|
||||
# See https://docs.microsoft.com/en-us/cpp/build/reference/ox-full-optimization?view=vs-2019
|
||||
SET(PHYSX_COMMON_FLAGS "/std:c++14 /d2Zi+ /MP /WX /W4 /GF /GS- /Gd ${PHYSX_FP_MODE} /Oy ${PHYSX_WARNING_DISABLES}")
|
||||
SET(PHYSX_COMMON_FLAGS_DEBUG "/Od ${WINCRT_DEBUG} /RTCu /Zi")
|
||||
SET(PHYSX_COMMON_FLAGS_CHECKED "/O2 ${WINCRT_NDEBUG} /Zi")
|
||||
SET(PHYSX_COMMON_FLAGS_PROFILE "/O2 ${WINCRT_NDEBUG} /Zi")
|
||||
SET(PHYSX_COMMON_FLAGS_RELEASE "/O2 ${WINCRT_NDEBUG} /Zi")
|
||||
|
||||
# C++ Specific Flags
|
||||
IF(CMAKE_CL_64)
|
||||
SET(PHYSX_CXX_FLAGS "${PHYSX_COMMON_FLAGS} /GR-" CACHE INTERNAL "PhysX CXX")
|
||||
ELSE()
|
||||
SET(PHYSX_CXX_FLAGS "/arch:SSE2 ${PHYSX_COMMON_FLAGS} /GR-" CACHE INTERNAL "PhysX CXX")
|
||||
ENDIF()
|
||||
|
||||
# C Flags
|
||||
IF(CMAKE_CL_64)
|
||||
SET(PHYSX_C_FLAGS "${PHYSX_COMMON_FLAGS}" CACHE INTERNAL "PhysX C")
|
||||
ELSE()
|
||||
SET(PHYSX_C_FLAGS "/arch:SSE2 ${PHYSX_COMMON_FLAGS}" CACHE INTERNAL "PhysX C")
|
||||
ENDIF()
|
||||
|
||||
SET(PHYSX_CXX_FLAGS_DEBUG "${PHYSX_COMMON_FLAGS_DEBUG}" CACHE INTERNAL "PhysX Debug CXX Flags")
|
||||
SET(PHYSX_CXX_FLAGS_CHECKED "${PHYSX_COMMON_FLAGS_CHECKED}" CACHE INTERNAL "PhysX Checked CXX Flags")
|
||||
SET(PHYSX_CXX_FLAGS_PROFILE "${PHYSX_COMMON_FLAGS_PROFILE}" CACHE INTERNAL "PhysX Profile CXX Flags")
|
||||
SET(PHYSX_CXX_FLAGS_RELEASE "${PHYSX_COMMON_FLAGS_RELEASE}" CACHE INTERNAL "PhysX Release CXX Flags")
|
||||
|
||||
SET(PHYSX_C_FLAGS_DEBUG "${PHYSX_COMMON_FLAGS_DEBUG}" CACHE INTERNAL "PhysX Debug C Flags")
|
||||
SET(PHYSX_C_FLAGS_CHECKED "${PHYSX_COMMON_FLAGS_CHECKED}" CACHE INTERNAL "PhysX Checked C Flags")
|
||||
SET(PHYSX_C_FLAGS_PROFILE "${PHYSX_COMMON_FLAGS_PROFILE}" CACHE INTERNAL "PhysX Profile C Flags")
|
||||
SET(PHYSX_C_FLAGS_RELEASE "${PHYSX_COMMON_FLAGS_RELEASE}" CACHE INTERNAL "PhysX Release C Flags")
|
||||
|
||||
IF(PUBLIC_RELEASE)
|
||||
SET(PUBLIC_RELEASE_FLAG "PX_PUBLIC_RELEASE=1")
|
||||
ELSE()
|
||||
SET(PUBLIC_RELEASE_FLAG "PX_PUBLIC_RELEASE=0")
|
||||
ENDIF()
|
||||
|
||||
# cache lib type defs
|
||||
IF(PX_GENERATE_STATIC_LIBRARIES)
|
||||
SET(PHYSX_LIBTYPE_DEFS "PX_PHYSX_STATIC_LIB;" CACHE INTERNAL "PhysX lib type defs")
|
||||
ENDIF()
|
||||
|
||||
# These flags are local to the directory the CMakeLists.txt is in, so don't get carried over to OTHER CMakeLists.txt (thus the CACHE variables above)
|
||||
SET(CMAKE_CXX_FLAGS ${PHYSX_CXX_FLAGS})
|
||||
|
||||
SET(CMAKE_CXX_FLAGS_DEBUG ${PHYSX_CXX_FLAGS_DEBUG})
|
||||
SET(CMAKE_CXX_FLAGS_CHECKED ${PHYSX_CXX_FLAGS_CHECKED})
|
||||
SET(CMAKE_CXX_FLAGS_PROFILE ${PHYSX_CXX_FLAGS_PROFILE})
|
||||
SET(CMAKE_CXX_FLAGS_RELEASE ${PHYSX_CXX_FLAGS_RELEASE})
|
||||
|
||||
# Build PDBs for all configurations
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS "/DEBUG /INCREMENTAL:NO")
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS_DEBUG "/DEBUG /INCREMENTAL:NO")
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS_CHECKED "/DEBUG /INCREMENTAL:NO /OPT:REF")
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS_PROFILE "/DEBUG /INCREMENTAL:NO /OPT:REF")
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS_RELEASE "/DEBUG /INCREMENTAL:NO /OPT:REF")
|
||||
|
||||
IF(CMAKE_CL_64)
|
||||
SET(WIN64_FLAG "WIN64")
|
||||
ENDIF(CMAKE_CL_64)
|
||||
|
||||
IF(PX_SCALAR_MATH)
|
||||
SET(SCALAR_MATH_FLAG "PX_SIMD_DISABLED")
|
||||
ENDIF()
|
||||
|
||||
# Controls PX_NVTX for all projects
|
||||
IF(PX_USE_NVTX)
|
||||
SET(NVTX_FLAG "PX_NVTX=1")
|
||||
ELSE()
|
||||
SET(NVTX_FLAG "PX_NVTX=0")
|
||||
ENDIF()
|
||||
|
||||
IF(NOT PX_GENERATE_GPU_PROJECTS_ONLY AND NOT PX_GENERATE_GPU_PROJECTS)
|
||||
# CMake automatically adds the appropriate prefix (/D for MSVC) when the definition
|
||||
# is added to the target via target_compile_definitions or add_definitions
|
||||
SET(DISABLE_CUDA_DEF "DISABLE_CUDA_PHYSX")
|
||||
ENDIF()
|
||||
|
||||
# Now set PHYSX_WINDOWS_COMPILE_DEFS including the additional definition if applicable.
|
||||
SET(PHYSX_WINDOWS_COMPILE_DEFS "WIN32;${WIN64_FLAG};${SCALAR_MATH_FLAG};_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_WINSOCK_DEPRECATED_NO_WARNINGS;${PHYSX_AUTOBUILD};${PUBLIC_RELEASE_FLAG};${DISABLE_CUDA_DEF}"
|
||||
CACHE INTERNAL "Base PhysX preprocessor definitions")
|
||||
|
||||
IF(CMAKE_CL_64)
|
||||
SET(PX_SUPPORT_OMNI_PVD_FLAG "PX_SUPPORT_OMNI_PVD=1")
|
||||
ELSE()
|
||||
SET(PX_SUPPORT_OMNI_PVD_FLAG "PX_SUPPORT_OMNI_PVD=0")
|
||||
ENDIF()
|
||||
SET(PHYSX_WINDOWS_DEBUG_COMPILE_DEFS "PX_DEBUG=1;PX_CHECKED=1;${NVTX_FLAG};PX_SUPPORT_PVD=1;${PX_SUPPORT_OMNI_PVD_FLAG}" CACHE INTERNAL "Debug PhysX preprocessor definitions")
|
||||
SET(PHYSX_WINDOWS_CHECKED_COMPILE_DEFS "PX_CHECKED=1;${NVTX_FLAG};PX_SUPPORT_PVD=1;${PX_SUPPORT_OMNI_PVD_FLAG}" CACHE INTERNAL "Checked PhysX preprocessor definitions")
|
||||
SET(PHYSX_WINDOWS_PROFILE_COMPILE_DEFS "PX_PROFILE=1;${NVTX_FLAG};PX_SUPPORT_PVD=1;${PX_SUPPORT_OMNI_PVD_FLAG}" CACHE INTERNAL "Profile PhysX preprocessor definitions")
|
||||
SET(PHYSX_WINDOWS_RELEASE_COMPILE_DEFS "PX_SUPPORT_PVD=0;PX_SUPPORT_OMNI_PVD=0" CACHE INTERNAL "Release PhysX preprocessor definitions")
|
||||
|
||||
# copy the external dlls
|
||||
IF(PX_COPY_EXTERNAL_DLL OR PUBLIC_RELEASE)
|
||||
IF(NOT PHYSX_SLN_PHYSXDEVICE_PATH)
|
||||
SET(PHYSX_SLN_PHYSXDEVICE_PATH "$ENV{PM_PhysXDevice_PATH}/bin/x86/" CACHE INTERNAL "PhysX device copy path")
|
||||
ENDIF()
|
||||
|
||||
IF(NOT PHYSX_SLN_FREEGLUT_PATH)
|
||||
SET(PHYSX_SLN_FREEGLUT_PATH "$ENV{PM_freeglut_PATH}/bin/" CACHE INTERNAL "PhysX freeglut copy path")
|
||||
ENDIF()
|
||||
|
||||
IF(CMAKE_CL_64)
|
||||
IF(NOT PUBLIC_RELEASE)
|
||||
FILE(COPY ${PHYSX_SLN_PHYSXDEVICE_PATH}/PhysXDevice64.dll DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_DEBUG})
|
||||
FILE(COPY ${PHYSX_SLN_PHYSXDEVICE_PATH}/PhysXDevice64.dll DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_PROFILE})
|
||||
FILE(COPY ${PHYSX_SLN_PHYSXDEVICE_PATH}/PhysXDevice64.dll DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_RELEASE})
|
||||
FILE(COPY ${PHYSX_SLN_PHYSXDEVICE_PATH}/PhysXDevice64.dll DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_CHECKED})
|
||||
ENDIF()
|
||||
|
||||
FILE(COPY ${PHYSX_SLN_FREEGLUT_PATH}/win64/freeglutd.dll DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_DEBUG})
|
||||
FILE(COPY ${PHYSX_SLN_FREEGLUT_PATH}/win64/freeglut.dll DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_PROFILE})
|
||||
FILE(COPY ${PHYSX_SLN_FREEGLUT_PATH}/win64/freeglut.dll DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_RELEASE})
|
||||
FILE(COPY ${PHYSX_SLN_FREEGLUT_PATH}/win64/freeglut.dll DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_CHECKED})
|
||||
# ELSE()
|
||||
# FILE(COPY ${PHYSX_SLN_PHYSXDEVICE_PATH}/PhysXDevice.dll DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_DEBUG})
|
||||
# FILE(COPY ${PHYSX_SLN_PHYSXDEVICE_PATH}/PhysXDevice.dll DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_PROFILE})
|
||||
# FILE(COPY ${PHYSX_SLN_PHYSXDEVICE_PATH}/PhysXDevice.dll DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_RELEASE})
|
||||
# FILE(COPY ${PHYSX_SLN_PHYSXDEVICE_PATH}/PhysXDevice.dll DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_CHECKED})
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
# for public release we copy the dlls for GPU other platforms so we dont keep duplicates around the repository
|
||||
# IF(PUBLIC_RELEASE)
|
||||
# IF(NOT PHYSX_SLN_PHYSXGPU_PATH)
|
||||
# SET(PHYSX_SLN_PHYSXGPU_PATH "$ENV{PM_PhysXGpu_PATH}/bin/" CACHE INTERNAL "PhysXGpu copy path")
|
||||
# ENDIF()
|
||||
# IF(NOT GPU_DLL_COPIED)
|
||||
# SET(GPU_DLL_COPIED 1 CACHE INTERNAL "PhysX GPU dlls copied")
|
||||
# IF(CMAKE_CL_64)
|
||||
# FILE(COPY ${PHYSX_SLN_PHYSXGPU_PATH}/win.x86_64.vc142.mt/checked/PhysXGpu_64.dll DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_CHECKED})
|
||||
# FILE(COPY ${PHYSX_SLN_PHYSXGPU_PATH}/win.x86_64.vc142.mt/profile/PhysXGpu_64.dll DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_PROFILE})
|
||||
# FILE(COPY ${PHYSX_SLN_PHYSXGPU_PATH}/win.x86_64.vc142.mt/release/PhysXGpu_64.dll DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_RELEASE})
|
||||
# FILE(COPY ${PHYSX_SLN_PHYSXGPU_PATH}/win.x86_64.vc142.mt/checked/PhysXGpu_64.dll DESTINATION ${PX_EXE_OUTPUT_DIRECTORY_DEBUG})
|
||||
# ENDIF()
|
||||
# ENDIF()
|
||||
# ENDIF()
|
||||
|
||||
# Include all of the projects
|
||||
IF(PX_GENERATE_GPU_PROJECTS_ONLY)
|
||||
INCLUDE(PhysXFoundation.cmake)
|
||||
INCLUDE(PhysXCommon.cmake)
|
||||
INCLUDE(LowLevelAABB.cmake)
|
||||
|
||||
SET_PROPERTY(TARGET PhysXFoundation PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET PhysXCommon PROPERTY FOLDER "PhysX SDK")
|
||||
ELSE()
|
||||
INCLUDE(PhysXFoundation.cmake)
|
||||
INCLUDE(LowLevel.cmake)
|
||||
INCLUDE(LowLevelAABB.cmake)
|
||||
INCLUDE(LowLevelDynamics.cmake)
|
||||
INCLUDE(PhysX.cmake)
|
||||
INCLUDE(PhysXCharacterKinematic.cmake)
|
||||
INCLUDE(PhysXCommon.cmake)
|
||||
INCLUDE(PhysXCooking.cmake)
|
||||
INCLUDE(PhysXExtensions.cmake)
|
||||
INCLUDE(PhysXVehicle.cmake)
|
||||
INCLUDE(SceneQuery.cmake)
|
||||
INCLUDE(SimulationController.cmake)
|
||||
INCLUDE(PhysXPvdSDK.cmake)
|
||||
INCLUDE(PhysXTask.cmake)
|
||||
|
||||
# Set folder PhysX SDK to all common SDK source projects
|
||||
SET_PROPERTY(TARGET PhysX PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET PhysXCharacterKinematic PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET PhysXCommon PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET PhysXCooking PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET PhysXExtensions PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET PhysXVehicle2 PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET LowLevel PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET LowLevelAABB PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET LowLevelDynamics PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET SceneQuery PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET SimulationController PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET PhysXPvdSDK PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET PhysXTask PROPERTY FOLDER "PhysX SDK")
|
||||
SET_PROPERTY(TARGET PhysXFoundation PROPERTY FOLDER "PhysX SDK")
|
||||
|
||||
|
||||
IF(PX_GENERATE_STATIC_LIBRARIES)
|
||||
SET(PHYSXDISTRO_LIBS PhysXFoundation PhysX PhysXCharacterKinematic PhysXPvdSDK PhysXCommon PhysXCooking PhysXExtensions PhysXVehicle2)
|
||||
ELSE()
|
||||
SET(PHYSXDISTRO_LIBS PhysXFoundation PhysX PhysXCharacterKinematic PhysXPvdSDK PhysXCommon PhysXCooking PhysXExtensions PhysXVehicle2 PhysXTask)
|
||||
ENDIF()
|
||||
|
||||
INSTALL(
|
||||
TARGETS ${PHYSXDISTRO_LIBS}
|
||||
EXPORT PhysXSDK
|
||||
DESTINATION $<$<CONFIG:debug>:${PX_ROOT_LIB_DIR}/debug>$<$<CONFIG:release>:${PX_ROOT_LIB_DIR}/release>$<$<CONFIG:checked>:${PX_ROOT_LIB_DIR}/checked>$<$<CONFIG:profile>:${PX_ROOT_LIB_DIR}/profile>
|
||||
)
|
||||
|
||||
ENDIF()
|
||||
|
||||
IF(PX_GENERATE_STATIC_LIBRARIES)
|
||||
STRING(APPEND HEADER_CONTENT "#define PX_PHYSX_STATIC_LIB\n")
|
||||
ENDIF()
|
||||
108
engine/third_party/physx/source/compiler/cmakegpu/CMakeLists.txt
vendored
Normal file
108
engine/third_party/physx/source/compiler/cmakegpu/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,108 @@
|
||||
## Redistribution and use in source and binary forms, with or without
|
||||
## modification, are permitted provided that the following conditions
|
||||
## are met:
|
||||
## * Redistributions of source code must retain the above copyright
|
||||
## notice, this list of conditions and the following disclaimer.
|
||||
## * Redistributions in binary form must reproduce the above copyright
|
||||
## notice, this list of conditions and the following disclaimer in the
|
||||
## documentation and/or other materials provided with the distribution.
|
||||
## * Neither the name of NVIDIA CORPORATION nor the names of its
|
||||
## contributors may be used to endorse or promote products derived
|
||||
## from this software without specific prior written permission.
|
||||
##
|
||||
## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
|
||||
## EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
## PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
## EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
## PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
## PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
## OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
##
|
||||
## Copyright (c) 2008-2025 NVIDIA Corporation. All rights reserved.
|
||||
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
# PROJECT(CUDA) will enable building CUDA files ( .cu )
|
||||
PROJECT(PhysX C CXX CUDA)
|
||||
|
||||
IF(DEFINED ENV{PM_winsdk_PATH} AND NOT "$ENV{PM_winsdk_PATH}" STREQUAL "" AND DEFINED ENV{PM_msvc_PATH} AND NOT "$ENV{PM_msvc_PATH}" STREQUAL "")
|
||||
SET(CMAKE_VS_SDK_INCLUDE_DIRECTORIES "$ENV{PM_winsdk_PATH}/include/ucrt;$ENV{PM_winsdk_PATH}/include/um;$ENV{PM_winsdk_PATH}/include/shared")
|
||||
SET(CMAKE_VS_SDK_LIBRARY_DIRECTORIES "$ENV{PM_winsdk_PATH}/lib/ucrt/x64;$ENV{PM_winsdk_PATH}/lib/um/x64;$ENV{VCToolsInstallDir}/lib/x64;$ENV{VCToolsInstallDir}/atlmfc/lib/x64")
|
||||
ENDIF()
|
||||
|
||||
OPTION(PX_GENERATE_GPU_STATIC_LIBRARIES "Generate PhysXGPU static libraries" OFF)
|
||||
OPTION(PX_GENERATE_GPU_REDUCED_ARCHITECTURES "Generate only a reduced number of GPU architectures for faster compilation" OFF)
|
||||
|
||||
CMAKE_POLICY(SET CMP0057 NEW) # Enable IN_LIST
|
||||
|
||||
# This is required to be defined by external callers!
|
||||
IF(NOT DEFINED PHYSX_ROOT_DIR)
|
||||
MESSAGE(FATAL_ERROR "PHYSX_ROOT_DIR variable wasn't set.")
|
||||
ENDIF()
|
||||
|
||||
IF(NOT EXISTS ${PHYSX_ROOT_DIR})
|
||||
MESSAGE(FATAL_ERROR "PHYSX_ROOT_DIR variable was invalid.")
|
||||
ENDIF()
|
||||
|
||||
INCLUDE(NvidiaBuildOptions)
|
||||
INCLUDE(SetCudaArch)
|
||||
|
||||
SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
IF(CMAKE_CONFIGURATION_TYPES)
|
||||
SET(CMAKE_CONFIGURATION_TYPES debug checked profile release)
|
||||
SET(CMAKE_CONFIGURATION_TYPES "${CMAKE_CONFIGURATION_TYPES}" CACHE STRING
|
||||
"Reset config to what we need"
|
||||
FORCE)
|
||||
|
||||
# Need to define these at least once.
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS_CHECKED "/DEBUG")
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS_PROFILE "/DEBUG")
|
||||
SET(CMAKE_EXE_LINKER_FLAGS_PROFILE "/DEBUG")
|
||||
SET(CMAKE_EXE_LINKER_FLAGS_CHECKED "/DEBUG")
|
||||
ENDIF()
|
||||
|
||||
SET(PROJECT_CMAKE_FILES_DIR source/compiler/cmakegpu)
|
||||
SET(PLATFORM_CMAKELISTS ${PHYSX_ROOT_DIR}/${PROJECT_CMAKE_FILES_DIR}/${TARGET_BUILD_PLATFORM}/CMakeLists.txt)
|
||||
|
||||
IF(NOT EXISTS ${PLATFORM_CMAKELISTS})
|
||||
MESSAGE(FATAL_ERROR "Unable to find platform CMakeLists.txt for ${TARGET_BUILD_PLATFORM} at ${PLATFORM_CMAKELISTS}")
|
||||
ENDIF()
|
||||
|
||||
SET(SOURCE_DISTRO_FILE_LIST "")
|
||||
|
||||
# CUDA Flags that are common to all platforms:
|
||||
# Note: We need to compile to sass for all architectures we want to support.
|
||||
# However, to enable forward compatibility with new architectures,
|
||||
# we need to compile ptx for the latest arch supported by the cuda toolkit.
|
||||
# This will allow the jit compiler in the driver to compile ptx to sass of the newer arch.
|
||||
|
||||
# No need to set --generate-code=arch=compute_75,code=[compute_75,sm_75]
|
||||
# since that's the default set in: compiler\internal\CMakeLists.txt (using CMAKE_CUDA_ARCHITECTURES)
|
||||
# see policy CMP0104
|
||||
IF(PX_GENERATE_GPU_REDUCED_ARCHITECTURES)
|
||||
GENERATE_ARCH_CODE_LIST(SASS "80,86,89,90,100,120" PTX "120")
|
||||
ELSE()
|
||||
# Volta is the minimum compute arch required because NGC supports V100
|
||||
GENERATE_ARCH_CODE_LIST(SASS "70,80,86,89,90,100,120" PTX "120")
|
||||
ENDIF()
|
||||
|
||||
# Force response files off because clangd does not parse them
|
||||
set(CMAKE_CUDA_USE_RESPONSE_FILE_FOR_INCLUDES 0)
|
||||
set(CMAKE_CUDA_USE_RESPONSE_FILE_FOR_LIBRARIES 0)
|
||||
set(CMAKE_CUDA_USE_RESPONSE_FILE_FOR_OBJECTS 0)
|
||||
|
||||
# Cuda setup that is the same for all platforms and sub-projects
|
||||
SET(PHYSX_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Werror=all-warnings -use_fast_math -ftz=true -prec-div=false -prec-sqrt=false -t0 -D_CONSOLE" CACHE INTERNAL "PhysX CUDA")
|
||||
# Include the platform specific CMakeLists (The other CUDA flags that are specific to each platform are defined there)
|
||||
INCLUDE(${PHYSX_ROOT_DIR}/${PROJECT_CMAKE_FILES_DIR}/${TARGET_BUILD_PLATFORM}/CMakeLists.txt)
|
||||
|
||||
IF(PX_GENERATE_SOURCE_DISTRO)
|
||||
FOREACH(FILE_NAME ${SOURCE_DISTRO_FILE_LIST})
|
||||
FILE(APPEND "${CMAKE_CURRENT_BINARY_DIR}/source_distro_list.txt" "${FILE_NAME}\n")
|
||||
ENDFOREACH()
|
||||
ENDIF()
|
||||
102
engine/third_party/physx/source/compiler/cmakegpu/linux/CMakeLists.txt
vendored
Normal file
102
engine/third_party/physx/source/compiler/cmakegpu/linux/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,102 @@
|
||||
## Redistribution and use in source and binary forms, with or without
|
||||
## modification, are permitted provided that the following conditions
|
||||
## are met:
|
||||
## * Redistributions of source code must retain the above copyright
|
||||
## notice, this list of conditions and the following disclaimer.
|
||||
## * Redistributions in binary form must reproduce the above copyright
|
||||
## notice, this list of conditions and the following disclaimer in the
|
||||
## documentation and/or other materials provided with the distribution.
|
||||
## * Neither the name of NVIDIA CORPORATION nor the names of its
|
||||
## contributors may be used to endorse or promote products derived
|
||||
## from this software without specific prior written permission.
|
||||
##
|
||||
## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
|
||||
## EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
## PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
## EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
## PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
## PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
## OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
##
|
||||
## Copyright (c) 2008-2025 NVIDIA Corporation. All rights reserved.
|
||||
|
||||
IF(NOT DEFINED PHYSX_LINUX_COMPILE_DEFS)
|
||||
MESSAGE(FATAL ERROR "Snippets uses the PhysX compile defs, and they're not defined when they need to be.")
|
||||
ENDIF()
|
||||
|
||||
IF (NOT DEFINED PHYSX_CXX_FLAGS)
|
||||
MESSAGE(FATAL ERROR "Snippets uses the PhysX CXX flags, and they're not defined when they need to be.")
|
||||
ENDIF()
|
||||
|
||||
# Get the CXX Flags from the Cached variables set by the PhysX CMakeLists
|
||||
SET(CMAKE_CXX_FLAGS "${PHYSX_CXX_FLAGS}")
|
||||
|
||||
SET(CMAKE_CXX_FLAGS_DEBUG "${PHYSX_CXX_FLAGS_DEBUG}")
|
||||
SET(CMAKE_CXX_FLAGS_CHECKED ${PHYSX_CXX_FLAGS_CHECKED})
|
||||
SET(CMAKE_CXX_FLAGS_PROFILE ${PHYSX_CXX_FLAGS_PROFILE})
|
||||
SET(CMAKE_CXX_FLAGS_RELEASE ${PHYSX_CXX_FLAGS_RELEASE})
|
||||
|
||||
# CUDA flags specific to Linux:
|
||||
IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
|
||||
SET(MSSE2_OPTIONS "")
|
||||
# Add the diagnostic suppression flag specifically for aarch64
|
||||
SET(AARCH64_DIAG_SUPPRESS_FLAGS "-diag-suppress 20054")
|
||||
ELSE()
|
||||
SET(MSSE2_OPTIONS "-msse2,-mfpmath=sse,-m64,")
|
||||
SET(AARCH64_DIAG_SUPPRESS_FLAGS "")
|
||||
ENDIF()
|
||||
|
||||
# CUDA flags specific to linux:
|
||||
SET(CUDA_SUPPRESS_WARNINGS "-Wno-unused-function -Wno-inconsistent-missing-override -Wno-parentheses -Wno-unknown-warning-option")
|
||||
|
||||
SET(PHYSX_CUDA_FLAGS "${PHYSX_CUDA_FLAGS} ${CUDA_SUPPRESS_WARNINGS} ${AARCH64_DIAG_SUPPRESS_FLAGS}")
|
||||
|
||||
SET(PHYSX_CUDA_FLAGS_DEBUG "${CUDA_DEBUG_FLAG} --compiler-options=-Wall,-O3,-fPIC,${MSSE2_OPTIONS}-fvisibility=hidden -G -g" CACHE INTERNAL "PhysX Debug CUDA Flags")
|
||||
SET(PHYSX_CUDA_FLAGS_CHECKED "${CUDA_NDEBUG_FLAG} -lineinfo --compiler-options=-Wall,-O3,-fPIC,${MSSE2_OPTIONS}-fvisibility=hidden" CACHE INTERNAL "PhysX Checked CUDA Flags")
|
||||
SET(PHYSX_CUDA_FLAGS_PROFILE "${CUDA_NDEBUG_FLAG} -lineinfo --compiler-options=-Wall,-O3,-fPIC,${MSSE2_OPTIONS}-fvisibility=hidden" CACHE INTERNAL "PhysX Profile CUDA Flags")
|
||||
SET(PHYSX_CUDA_FLAGS_RELEASE "${CUDA_NDEBUG_FLAG} -lineinfo --compiler-options=-Wall,-O3,-fPIC,${MSSE2_OPTIONS}-fvisibility=hidden" CACHE INTERNAL "PhysX Release CUDA Flags")
|
||||
|
||||
# These flags are local to the directory the CMakeLists.txt is in, so don't get carried over to OTHER CMakeLists.txt (thus the CACHE variables above)
|
||||
SET(CMAKE_CUDA_FLAGS ${PHYSX_CUDA_FLAGS})
|
||||
|
||||
SET(CMAKE_CUDA_FLAGS_DEBUG ${PHYSX_CUDA_FLAGS_DEBUG})
|
||||
SET(CMAKE_CUDA_FLAGS_CHECKED ${PHYSX_CUDA_FLAGS_CHECKED})
|
||||
SET(CMAKE_CUDA_FLAGS_PROFILE ${PHYSX_CUDA_FLAGS_PROFILE})
|
||||
SET(CMAKE_CUDA_FLAGS_RELEASE ${PHYSX_CUDA_FLAGS_RELEASE})
|
||||
|
||||
|
||||
# SET(GENERATED_GPU_CUDA_FILES "")
|
||||
|
||||
# Include all of the projects
|
||||
INCLUDE(PhysXBroadphaseGpu.cmake)
|
||||
INCLUDE(PhysXCommonGpu.cmake)
|
||||
INCLUDE(PhysXNarrowphaseGpu.cmake)
|
||||
INCLUDE(PhysXSimulationControllerGpu.cmake)
|
||||
INCLUDE(PhysXSolverGpu.cmake)
|
||||
INCLUDE(PhysXCudaContextManager.cmake)
|
||||
INCLUDE(PhysXArticulationGpu.cmake)
|
||||
INCLUDE(PhysXGpuDependencies.cmake)
|
||||
INCLUDE(PhysXGpu.cmake) # must be last
|
||||
|
||||
SET_PROPERTY(TARGET PhysXBroadphaseGpu PROPERTY FOLDER "PhysX SDK/GPU")
|
||||
SET_PROPERTY(TARGET PhysXCommonGpu PROPERTY FOLDER "PhysX SDK/GPU")
|
||||
SET_PROPERTY(TARGET PhysXNarrowphaseGpu PROPERTY FOLDER "PhysX SDK/GPU")
|
||||
SET_PROPERTY(TARGET PhysXSimulationControllerGpu PROPERTY FOLDER "PhysX SDK/GPU")
|
||||
SET_PROPERTY(TARGET PhysXArticulationGpu PROPERTY FOLDER "PhysX SDK/GPU")
|
||||
SET_PROPERTY(TARGET PhysXSolverGpu PROPERTY FOLDER "PhysX SDK/GPU")
|
||||
SET_PROPERTY(TARGET PhysXGpuDependencies PROPERTY FOLDER "PhysX SDK/GPU")
|
||||
SET_PROPERTY(TARGET PhysXGpu PROPERTY FOLDER "PhysX SDK/GPU")
|
||||
SET_PROPERTY(TARGET PhysXCudaContextManager PROPERTY FOLDER "PhysX SDK/GPU")
|
||||
|
||||
SET(PHYSXDISTRO_LIBS PhysXGpu)
|
||||
|
||||
INSTALL(
|
||||
TARGETS ${PHYSXDISTRO_LIBS}
|
||||
EXPORT PhysXSDK
|
||||
DESTINATION $<$<CONFIG:debug>:${PX_ROOT_LIB_DIR}/debug>$<$<CONFIG:release>:${PX_ROOT_LIB_DIR}/release>$<$<CONFIG:checked>:${PX_ROOT_LIB_DIR}/checked>$<$<CONFIG:profile>:${PX_ROOT_LIB_DIR}/profile>
|
||||
)
|
||||
|
||||
109
engine/third_party/physx/source/compiler/cmakegpu/windows/CMakeLists.txt
vendored
Normal file
109
engine/third_party/physx/source/compiler/cmakegpu/windows/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,109 @@
|
||||
## Redistribution and use in source and binary forms, with or without
|
||||
## modification, are permitted provided that the following conditions
|
||||
## are met:
|
||||
## * Redistributions of source code must retain the above copyright
|
||||
## notice, this list of conditions and the following disclaimer.
|
||||
## * Redistributions in binary form must reproduce the above copyright
|
||||
## notice, this list of conditions and the following disclaimer in the
|
||||
## documentation and/or other materials provided with the distribution.
|
||||
## * Neither the name of NVIDIA CORPORATION nor the names of its
|
||||
## contributors may be used to endorse or promote products derived
|
||||
## from this software without specific prior written permission.
|
||||
##
|
||||
## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
|
||||
## EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
## PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
## EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
## PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
## PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
## OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
##
|
||||
## Copyright (c) 2008-2025 NVIDIA Corporation. All rights reserved.
|
||||
|
||||
IF(NOT DEFINED PHYSX_WINDOWS_COMPILE_DEFS)
|
||||
MESSAGE(FATAL ERROR "PHYSXGPU uses the PhysX compile defs, and they're not defined when they need to be.")
|
||||
ENDIF()
|
||||
|
||||
IF (NOT DEFINED PHYSX_CXX_FLAGS)
|
||||
MESSAGE(FATAL ERROR "PHYSXGPU uses the PhysX CXX flags, and they're not defined when they need to be.")
|
||||
ENDIF()
|
||||
|
||||
# Get the CXX Flags from the Cached variables set by the PhysX CMakeLists
|
||||
SET(CMAKE_CXX_FLAGS "${PHYSX_CXX_FLAGS}")
|
||||
|
||||
SET(CMAKE_CXX_FLAGS_DEBUG ${PHYSX_CXX_FLAGS_DEBUG})
|
||||
SET(CMAKE_CXX_FLAGS_CHECKED ${PHYSX_CXX_FLAGS_CHECKED})
|
||||
SET(CMAKE_CXX_FLAGS_PROFILE ${PHYSX_CXX_FLAGS_PROFILE})
|
||||
SET(CMAKE_CXX_FLAGS_RELEASE ${PHYSX_CXX_FLAGS_RELEASE})
|
||||
|
||||
# Get the CXX Flags from the Cached variables set by the PhysX CMakeLists
|
||||
SET(CMAKE_C_FLAGS "${PHYSX_C_FLAGS}")
|
||||
|
||||
SET(CMAKE_C_FLAGS_DEBUG ${PHYSX_C_FLAGS_DEBUG})
|
||||
SET(CMAKE_C_FLAGS_CHECKED ${PHYSX_C_FLAGS_CHECKED})
|
||||
SET(CMAKE_C_FLAGS_PROFILE ${PHYSX_C_FLAGS_PROFILE})
|
||||
SET(CMAKE_C_FLAGS_RELEASE ${PHYSX_C_FLAGS_RELEASE})
|
||||
|
||||
# CUDA flags specific to windows:
|
||||
SET(CUDA_SUPPRESS_WARNINGS "-Xptxas -w -ftemplate-backtrace-limit=2")
|
||||
|
||||
SET(PHYSX_CUDA_FLAGS "${PHYSX_CUDA_FLAGS} -D_WIN32_WINNT=0x0601 ${CUDA_SUPPRESS_WARNINGS}")
|
||||
|
||||
# Build debug info for all configurations
|
||||
SET(PHYSX_CUDA_FLAGS_DEBUG "${CUDA_DEBUG_FLAG} --compiler-options=/W4,/nologo,/Zi,/Od,/RTC1,/wd4505,/wd4459,/wd4324,/wd4244 -G -g" CACHE INTERNAL "PhysX Debug CUDA Flags")
|
||||
SET(PHYSX_CUDA_FLAGS_CHECKED "${CUDA_NDEBUG_FLAG} -lineinfo --compiler-options=/W4,/nologo,/Ot,/Ox,/Zi,/wd4505,/wd4459,/wd4324,/wd4244" CACHE INTERNAL "PhysX Checked CUDA Flags")
|
||||
SET(PHYSX_CUDA_FLAGS_PROFILE "${CUDA_NDEBUG_FLAG} -lineinfo --compiler-options=/W4,/nologo,/Ot,/Ox,/Zi,/wd4505,/wd4459,/wd4324,/wd4244" CACHE INTERNAL "PhysX Profile CUDA Flags")
|
||||
SET(PHYSX_CUDA_FLAGS_RELEASE "${CUDA_NDEBUG_FLAG} -lineinfo --compiler-options=/W4,/nologo,/Ot,/Ox,/Zi,/wd4505,/wd4459,/wd4324,/wd4244" CACHE INTERNAL "PhysX Release CUDA Flags")
|
||||
|
||||
# These flags are local to the directory the CMakeLists.txt is in, so don't get carried over to OTHER CMakeLists.txt (thus the CACHE variables above)
|
||||
SET(CMAKE_CUDA_FLAGS ${PHYSX_CUDA_FLAGS})
|
||||
|
||||
SET(CMAKE_CUDA_FLAGS_DEBUG ${PHYSX_CUDA_FLAGS_DEBUG})
|
||||
SET(CMAKE_CUDA_FLAGS_CHECKED ${PHYSX_CUDA_FLAGS_CHECKED})
|
||||
SET(CMAKE_CUDA_FLAGS_PROFILE ${PHYSX_CUDA_FLAGS_PROFILE})
|
||||
SET(CMAKE_CUDA_FLAGS_RELEASE ${PHYSX_CUDA_FLAGS_RELEASE})
|
||||
|
||||
IF(PX_GENERATE_GPU_STATIC_LIBRARIES)
|
||||
SET(PHYSXGPU_LIBTYPE_DEFS "PX_PHYSX_GPU_STATIC;" CACHE INTERNAL "PhysX GPU lib type defs")
|
||||
ENDIF()
|
||||
|
||||
# Build PDBs for all configurations
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS "/DEBUG /INCREMENTAL:NO")
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS_DEBUG "/DEBUG /INCREMENTAL:NO")
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS_CHECKED "/DEBUG /INCREMENTAL:NO /OPT:REF")
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS_PROFILE "/DEBUG /INCREMENTAL:NO /OPT:REF")
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS_RELEASE "/DEBUG /INCREMENTAL:NO /OPT:REF")
|
||||
|
||||
# SET(GENERATED_GPU_CUDA_FILES "")
|
||||
|
||||
# Include all of the GPU projects
|
||||
INCLUDE(PhysXBroadphaseGpu.cmake)
|
||||
INCLUDE(PhysXCommonGpu.cmake)
|
||||
INCLUDE(PhysXNarrowphaseGpu.cmake)
|
||||
INCLUDE(PhysXSimulationControllerGpu.cmake)
|
||||
INCLUDE(PhysXSolverGpu.cmake)
|
||||
INCLUDE(PhysXCudaContextManager.cmake)
|
||||
INCLUDE(PhysXArticulationGpu.cmake)
|
||||
INCLUDE(PhysXGpuDependencies.cmake)
|
||||
INCLUDE(PhysXGpu.cmake) # must be the last PhysXGPU
|
||||
|
||||
SET_PROPERTY(TARGET PhysXBroadphaseGpu PROPERTY FOLDER "PhysX SDK/GPU")
|
||||
SET_PROPERTY(TARGET PhysXCommonGpu PROPERTY FOLDER "PhysX SDK/GPU")
|
||||
SET_PROPERTY(TARGET PhysXNarrowphaseGpu PROPERTY FOLDER "PhysX SDK/GPU")
|
||||
SET_PROPERTY(TARGET PhysXSimulationControllerGpu PROPERTY FOLDER "PhysX SDK/GPU")
|
||||
SET_PROPERTY(TARGET PhysXArticulationGpu PROPERTY FOLDER "PhysX SDK/GPU")
|
||||
SET_PROPERTY(TARGET PhysXSolverGpu PROPERTY FOLDER "PhysX SDK/GPU")
|
||||
SET_PROPERTY(TARGET PhysXGpuDependencies PROPERTY FOLDER "PhysX SDK/GPU")
|
||||
SET_PROPERTY(TARGET PhysXGpu PROPERTY FOLDER "PhysX SDK/GPU")
|
||||
SET_PROPERTY(TARGET PhysXCudaContextManager PROPERTY FOLDER "PhysX SDK/GPU")
|
||||
|
||||
SET(PHYSXDISTRO_LIBS PhysXGpu)
|
||||
INSTALL(
|
||||
TARGETS ${PHYSXDISTRO_LIBS}
|
||||
EXPORT PhysXSDK
|
||||
DESTINATION $<$<CONFIG:debug>:${PX_ROOT_LIB_DIR}/debug>$<$<CONFIG:release>:${PX_ROOT_LIB_DIR}/release>$<$<CONFIG:checked>:${PX_ROOT_LIB_DIR}/checked>$<$<CONFIG:profile>:${PX_ROOT_LIB_DIR}/profile>
|
||||
)
|
||||
90
engine/third_party/physx/source/compiler/windows/resource/PhysX.rc
vendored
Normal file
90
engine/third_party/physx/source/compiler/windows/resource/PhysX.rc
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
// Microsoft Visual C++ generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "windows.h"
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.S.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE
|
||||
BEGIN
|
||||
"#include ""windows.h""\r\r\r\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE
|
||||
BEGIN
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION RC_PHYSX_VER
|
||||
PRODUCTVERSION RC_PHYSX_VER
|
||||
FILEFLAGSMASK 0x17L
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x4L
|
||||
FILETYPE 0x2L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904b0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", RC_COMPANY_NAME_STR
|
||||
VALUE "FileDescription", "PhysX " RC_PTR_STR "bit Dynamic Link Library"
|
||||
VALUE "FileVersion", RC_PHYSX_VER_STR
|
||||
VALUE "InternalName", "PhysX_" RC_PTR_STR
|
||||
VALUE "LegalCopyright", RC_LEGAL_COPYRIGHT_STR
|
||||
VALUE "OriginalFilename", "PhysX_" RC_PTR_STR ".dll"
|
||||
VALUE "ProductName", RC_PRODUCT_NAME_STR
|
||||
VALUE "ProductVersion", RC_PHYSX_VER_STR
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
|
||||
#endif // English (U.S.) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
90
engine/third_party/physx/source/compiler/windows/resource/PhysXCommon.rc
vendored
Normal file
90
engine/third_party/physx/source/compiler/windows/resource/PhysXCommon.rc
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
// Microsoft Visual C++ generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "windows.h"
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.S.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE
|
||||
BEGIN
|
||||
"#include ""windows.h""\r\r\r\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE
|
||||
BEGIN
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION RC_PHYSX_VER
|
||||
PRODUCTVERSION RC_PHYSX_VER
|
||||
FILEFLAGSMASK 0x17L
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x4L
|
||||
FILETYPE 0x2L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904b0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", RC_COMPANY_NAME_STR
|
||||
VALUE "FileDescription", "PhysXCommon " RC_PTR_STR "bit Dynamic Link Library"
|
||||
VALUE "FileVersion", RC_PHYSX_VER_STR
|
||||
VALUE "InternalName", "PhysXCommon_" RC_PTR_STR
|
||||
VALUE "LegalCopyright", RC_LEGAL_COPYRIGHT_STR
|
||||
VALUE "OriginalFilename", "PhysXCommon_" RC_PTR_STR ".dll"
|
||||
VALUE "ProductName", RC_PRODUCT_NAME_STR
|
||||
VALUE "ProductVersion", RC_PHYSX_VER_STR
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
|
||||
#endif // English (U.S.) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
91
engine/third_party/physx/source/compiler/windows/resource/PhysXCooking.rc
vendored
Normal file
91
engine/third_party/physx/source/compiler/windows/resource/PhysXCooking.rc
vendored
Normal file
@@ -0,0 +1,91 @@
|
||||
// Microsoft Visual C++ generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "windows.h"
|
||||
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.S.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE
|
||||
BEGIN
|
||||
"#include ""windows.h""\r\r\r\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE
|
||||
BEGIN
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION RC_PHYSX_VER
|
||||
PRODUCTVERSION RC_PHYSX_VER
|
||||
FILEFLAGSMASK 0x17L
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x4L
|
||||
FILETYPE 0x2L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904b0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", RC_COMPANY_NAME_STR
|
||||
VALUE "FileDescription", "PhysXCooking " RC_PTR_STR "bit Dynamic Link Library"
|
||||
VALUE "FileVersion", RC_PHYSX_VER_STR
|
||||
VALUE "InternalName", "PhysXCooking_" RC_PTR_STR
|
||||
VALUE "LegalCopyright", RC_LEGAL_COPYRIGHT_STR
|
||||
VALUE "OriginalFilename", "PhysXCooking_" RC_PTR_STR ".dll"
|
||||
VALUE "ProductName", RC_PRODUCT_NAME_STR
|
||||
VALUE "ProductVersion", RC_PHYSX_VER_STR
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
|
||||
#endif // English (U.S.) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
BIN
engine/third_party/physx/source/compiler/windows/resource/PhysXFoundation.rc
vendored
Normal file
BIN
engine/third_party/physx/source/compiler/windows/resource/PhysXFoundation.rc
vendored
Normal file
Binary file not shown.
89
engine/third_party/physx/source/compiler/windows/resource/PhysXGpu.rc
vendored
Normal file
89
engine/third_party/physx/source/compiler/windows/resource/PhysXGpu.rc
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
// Microsoft Visual C++ generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "windows.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.S.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE
|
||||
BEGIN
|
||||
"#include ""windows.h""\r\r\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE
|
||||
BEGIN
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION RC_PHYSX_VER
|
||||
PRODUCTVERSION RC_PHYSX_VER
|
||||
FILEFLAGSMASK 0x17L
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x4L
|
||||
FILETYPE 0x2L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904b0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", RC_COMPANY_NAME_STR
|
||||
VALUE "FileDescription", "PhysXGpu " RC_PTR_STR "bit Dynamic Link Library"
|
||||
VALUE "FileVersion", RC_PHYSX_VER_STR
|
||||
VALUE "InternalName", "PhysXGpu_" RC_PTR_STR
|
||||
VALUE "LegalCopyright", RC_LEGAL_COPYRIGHT_STR
|
||||
VALUE "OriginalFilename", "PhysXGpu_" RC_PTR_STR ".dll"
|
||||
VALUE "ProductName", RC_PRODUCT_NAME_STR
|
||||
VALUE "ProductVersion", RC_PHYSX_VER_STR
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
|
||||
#endif // English (U.S.) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
62
engine/third_party/physx/source/compiler/windows/resource/resource.h
vendored
Normal file
62
engine/third_party/physx/source/compiler/windows/resource/resource.h
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
// * Neither the name of NVIDIA CORPORATION nor the names of its
|
||||
// contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
|
||||
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// Copyright (c) 2008-2025 NVIDIA Corporation. All rights reserved.
|
||||
// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
|
||||
// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
|
||||
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Visual C++ generated include file.
|
||||
// Used by *.rc files
|
||||
//
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 101
|
||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
||||
#define _APS_NEXT_CONTROL_VALUE 1000
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "..\..\..\..\include\foundation\PxPhysicsVersion.h"
|
||||
|
||||
#define RC_STRINGIFY(x) #x
|
||||
#define RC_GETSTR(x) RC_STRINGIFY(x)
|
||||
|
||||
#define RC_PHYSX_VER PX_PHYSICS_VERSION_MAJOR,PX_PHYSICS_VERSION_MINOR,PX_PHYSICS_VERSION_BUGFIX,0
|
||||
#define RC_PHYSX_VER_STR RC_GETSTR(PX_PHYSICS_VERSION_MAJOR) "." RC_GETSTR(PX_PHYSICS_VERSION_MINOR) "." RC_GETSTR(PX_PHYSICS_VERSION_BUGFIX) ".0"
|
||||
|
||||
#define RC_COMPANY_NAME_STR "NVIDIA Corporation"
|
||||
#define RC_LEGAL_COPYRIGHT_STR "Copyright (C) 2023 NVIDIA Corporation"
|
||||
|
||||
#if defined(_WIN64)
|
||||
#define RC_PTR_STR "64"
|
||||
#elif defined(_WIN32)
|
||||
#define RC_PTR_STR "32"
|
||||
#endif
|
||||
|
||||
#define RC_PRODUCT_NAME_STR "PhysX"
|
||||
Reference in New Issue
Block a user