Init
This commit is contained in:
120
physx/source/compiler/cmake/linux/CMakeLists.txt
Normal file
120
physx/source/compiler/cmake/linux/CMakeLists.txt
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-2021 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 -Wno-alloca -Wno-anon-enum-enum-conversion -Wstrict-aliasing=2 -Weverything -Wno-documentation-deprecated-sync -Wno-documentation-unknown-command -Wno-gnu-anonymous-struct -Wno-undef -Wno-unused-function -Wno-nested-anon-types -Wno-float-equal -Wno-padded -Wno-weak-vtables -Wno-cast-align -Wno-conversion -Wno-missing-noreturn -Wno-missing-variable-declarations -Wno-shift-sign-overflow -Wno-covered-switch-default -Wno-exit-time-destructors -Wno-global-constructors -Wno-missing-prototypes -Wno-unreachable-code -Wno-unused-macros -Wno-unused-member-function -Wno-used-but-marked-unused -Wno-weak-template-vtables -Wno-deprecated -Wno-non-virtual-dtor -Wno-invalid-noreturn -Wno-return-type-c-linkage -Wno-reserved-id-macro -Wno-c++98-compat-pedantic -Wno-unused-local-typedef -Wno-old-style-cast -Wno-newline-eof -Wno-unused-private-field -Wno-format-nonliteral -Wno-implicit-fallthrough -Wno-undefined-reinterpret-cast -Wno-disabled-macro-expansion -Wno-zero-as-null-pointer-constant -Wno-shadow -Wno-unknown-warning-option -Wno-atomic-implicit-seq-cst -Wno-extra-semi-stmt")
|
||||
SET(GCC_WARNINGS "-Wall -Wno-invalid-offsetof -Wno-uninitialized")
|
||||
|
||||
IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
# using Clang
|
||||
SET(PHYSX_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-rtti -fno-exceptions -ffunction-sections -fdata-sections -fstrict-aliasing ${CLANG_WARNINGS}" CACHE INTERNAL "PhysX CXX")
|
||||
ELSEIF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
SET(PHYSX_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-rtti -fno-exceptions -ffunction-sections -fdata-sections -fno-strict-aliasing ${GCC_WARNINGS}" 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})
|
||||
|
||||
|
||||
# Controls PX_NVTX for all projects
|
||||
SET(NVTX_FLAG "PX_NVTX=0")
|
||||
|
||||
IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
|
||||
SET(CUDA_FLAG "DISABLE_CUDA_PHYSX")
|
||||
ENDIF()
|
||||
|
||||
SET(PHYSX_LINUX_COMPILE_DEFS "${CUDA_FLAG};${PHYSX_AUTOBUILD}" CACHE INTERNAL "Base PhysX preprocessor definitions")
|
||||
|
||||
SET(PHYSX_LINUX_DEBUG_COMPILE_DEFS "NDEBUG;PX_DEBUG=1;PX_CHECKED=1;${NVTX_FLAG};PX_SUPPORT_PVD=1" CACHE INTERNAL "Debug PhysX preprocessor definitions")
|
||||
SET(PHYSX_LINUX_CHECKED_COMPILE_DEFS "NDEBUG;PX_CHECKED=1;${NVTX_FLAG};PX_SUPPORT_PVD=1" CACHE INTERNAL "Checked PhysX preprocessor definitions")
|
||||
SET(PHYSX_LINUX_PROFILE_COMPILE_DEFS "NDEBUG;PX_PROFILE=1;${NVTX_FLAG};PX_SUPPORT_PVD=1" CACHE INTERNAL "Profile PhysX preprocessor definitions")
|
||||
SET(PHYSX_LINUX_RELEASE_COMPILE_DEFS "NDEBUG;PX_SUPPORT_PVD=0" CACHE INTERNAL "Release PhysX preprocessor definitions")
|
||||
|
||||
|
||||
# Include all of the projects
|
||||
IF(PX_GENERATE_GPU_PROJECTS_ONLY)
|
||||
INCLUDE(PhysXCommon.cmake)
|
||||
INCLUDE(PhysXFoundation.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(FastXml.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 PhysXVehicle 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 FastXml 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 PhysXVehicle)
|
||||
|
||||
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()
|
||||
43
physx/source/compiler/cmake/linux/FastXml.cmake
Normal file
43
physx/source/compiler/cmake/linux/FastXml.cmake
Normal file
@ -0,0 +1,43 @@
|
||||
##
|
||||
## 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-2021 NVIDIA Corporation. All rights reserved.
|
||||
|
||||
#
|
||||
# Build FastXml
|
||||
#
|
||||
|
||||
# Use generator expressions to set config specific preprocessor definitions
|
||||
SET(FASTXML_COMPILE_DEFS
|
||||
# Common to all configurations
|
||||
${PHYSX_LINUX_COMPILE_DEFS};
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_LINUX_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_LINUX_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_LINUX_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_LINUX_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
SET(FASTXML_LIBTYPE OBJECT)
|
||||
67
physx/source/compiler/cmake/linux/LowLevel.cmake
Normal file
67
physx/source/compiler/cmake/linux/LowLevel.cmake
Normal file
@ -0,0 +1,67 @@
|
||||
##
|
||||
## 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-2021 NVIDIA Corporation. All rights reserved.
|
||||
|
||||
#
|
||||
# Build LowLevel
|
||||
#
|
||||
|
||||
|
||||
SET(LOWLEVEL_PLATFORM_INCLUDES
|
||||
${PHYSX_SOURCE_DIR}/Common/src/linux
|
||||
${PHYSX_SOURCE_DIR}/LowLevel/software/include/linux
|
||||
${PHYSX_SOURCE_DIR}/LowLevelDynamics/include/linux
|
||||
${PHYSX_SOURCE_DIR}/LowLevel/common/include/pipeline/linux
|
||||
)
|
||||
|
||||
SET(LOWLEVEL_COMPILE_DEFS
|
||||
# Common to all configurations
|
||||
${PHYSX_LINUX_COMPILE_DEFS};PX_PHYSX_STATIC_LIB
|
||||
)
|
||||
|
||||
IF(PX_GENERATE_GPU_STATIC_LIBRARIES)
|
||||
SET(LOWLEVEL_GPU_LIBTYPE_DEFS
|
||||
PX_PHYSX_GPU_STATIC;
|
||||
)
|
||||
ENDIF()
|
||||
|
||||
SET(LOWLEVEL_COMPILE_DEFS
|
||||
# Common to all configurations
|
||||
${PHYSX_LINUX_COMPILE_DEFS};PX_PHYSX_STATIC_LIB;${LOWLEVEL_GPU_LIBTYPE_DEFS}
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_LINUX_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_LINUX_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_LINUX_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_LINUX_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
SET(LOWLEVEL_PLATFORM_LINK_FLAGS " ")
|
||||
|
||||
SET(LOWLEVEL_LIBTYPE OBJECT)
|
||||
|
||||
# NOTE: Is this a UE4 specific change?
|
||||
# enable -fPIC so we can link static libs with the editor
|
||||
#SET_TARGET_PROPERTIES(LowLevel PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
|
||||
53
physx/source/compiler/cmake/linux/LowLevelAABB.cmake
Normal file
53
physx/source/compiler/cmake/linux/LowLevelAABB.cmake
Normal file
@ -0,0 +1,53 @@
|
||||
##
|
||||
## 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-2021 NVIDIA Corporation. All rights reserved.
|
||||
|
||||
#
|
||||
# Build LowLevelAABB
|
||||
#
|
||||
|
||||
SET(LOWLEVELAABB_PLATFORM_INCLUDES
|
||||
${PHYSX_SOURCE_DIR}/Common/src/linux
|
||||
${PHYSX_SOURCE_DIR}/LowLevelAABB/linux/include
|
||||
${PHYSX_SOURCE_DIR}/GpuBroadPhase/include
|
||||
${PHYSX_SOURCE_DIR}/GpuBroadPhase/src
|
||||
)
|
||||
|
||||
|
||||
SET(LOWLEVELAABB_COMPILE_DEFS
|
||||
|
||||
# Common to all configurations
|
||||
${PHYSX_LINUX_COMPILE_DEFS};PX_PHYSX_STATIC_LIB
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_LINUX_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_LINUX_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_LINUX_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_LINUX_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
SET(LOWLEVELAABB_LIBTYPE OBJECT)
|
||||
|
||||
SET(LOWLEVELAABB_PLATFORM_LINK_FLAGS " ")
|
||||
53
physx/source/compiler/cmake/linux/LowLevelDynamics.cmake
Normal file
53
physx/source/compiler/cmake/linux/LowLevelDynamics.cmake
Normal file
@ -0,0 +1,53 @@
|
||||
##
|
||||
## 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-2021 NVIDIA Corporation. All rights reserved.
|
||||
|
||||
#
|
||||
# Build LowLevelDynamics
|
||||
#
|
||||
|
||||
|
||||
SET(LOWLEVELDYNAMICS_PLATFORM_INCLUDES
|
||||
${PHYSX_SOURCE_DIR}/common/src/linux
|
||||
${PHYSX_SOURCE_DIR}/lowlevel/software/include/linux
|
||||
${PHYSX_SOURCE_DIR}/lowleveldynamics/include/linux
|
||||
${PHYSX_SOURCE_DIR}/lowlevel/common/include/pipeline/linux
|
||||
)
|
||||
|
||||
# Use generator expressions to set config specific preprocessor definitions
|
||||
SET(LOWLEVELDYNAMICS_COMPILE_DEFS
|
||||
|
||||
# Common to all configurations
|
||||
${PHYSX_LINUX_COMPILE_DEFS};PX_PHYSX_STATIC_LIB
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_LINUX_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_LINUX_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_LINUX_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_LINUX_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
SET(LOWLEVELDYNAMICS_LIBTYPE OBJECT)
|
||||
|
||||
117
physx/source/compiler/cmake/linux/PhysX.cmake
Normal file
117
physx/source/compiler/cmake/linux/PhysX.cmake
Normal file
@ -0,0 +1,117 @@
|
||||
##
|
||||
## 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-2021 NVIDIA Corporation. All rights reserved.
|
||||
|
||||
#
|
||||
# Build PhysX (PROJECT not SOLUTION)
|
||||
#
|
||||
|
||||
SET(PHYSX_GPU_HEADERS
|
||||
${PHYSX_ROOT_DIR}/include/gpu/PxGpu.h
|
||||
)
|
||||
SOURCE_GROUP(include\\gpu FILES ${PHYSX_GPU_HEADERS})
|
||||
|
||||
SET(PHYSX_CUDACONTEXT_MANAGER_GPU_HEADERS
|
||||
${PHYSX_ROOT_DIR}/include/cudamanager/PxCudaContextManager.h
|
||||
${PHYSX_ROOT_DIR}/include/cudamanager/PxCudaMemoryManager.h
|
||||
)
|
||||
SOURCE_GROUP(include\\cudamanager FILES ${PHYSX_CUDACONTEXT_MANAGER_GPU_HEADERS})
|
||||
|
||||
SET(PHYSX_PLATFORM_INCLUDES
|
||||
${NVTOOLSEXT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
SET(PHYSX_PLATFORM_OBJECT_FILES
|
||||
$<TARGET_OBJECTS:LowLevel>
|
||||
$<TARGET_OBJECTS:LowLevelAABB>
|
||||
$<TARGET_OBJECTS:LowLevelDynamics>
|
||||
$<TARGET_OBJECTS:PhysXTask>
|
||||
$<TARGET_OBJECTS:SceneQuery>
|
||||
$<TARGET_OBJECTS:SimulationController>
|
||||
)
|
||||
|
||||
SET(PHYSX_PLATFORM_SRC_FILES
|
||||
${PX_SOURCE_DIR}/device/linux/PhysXIndicatorLinux.cpp
|
||||
${PX_SOURCE_DIR}/gpu/PxGpu.cpp
|
||||
${PX_SOURCE_DIR}/gpu/PxPhysXGpuModuleLoader.cpp
|
||||
|
||||
${PHYSX_PLATFORM_OBJECT_FILES}
|
||||
)
|
||||
|
||||
INSTALL(FILES ${PHYSX_GPU_HEADERS} DESTINATION include/gpu)
|
||||
INSTALL(FILES ${PHYSX_CUDACONTEXT_MANAGER_GPU_HEADERS} DESTINATION include/cudamanager)
|
||||
|
||||
IF(PX_GENERATE_STATIC_LIBRARIES)
|
||||
SET(PHYSX_LIBTYPE STATIC)
|
||||
SET(PXPHYSX_LIBTYPE_DEFS
|
||||
PX_PHYSX_STATIC_LIB;
|
||||
)
|
||||
ELSE()
|
||||
SET(PHYSX_LIBTYPE SHARED)
|
||||
SET(PXPHYSX_LIBTYPE_DEFS
|
||||
PX_PHYSX_CORE_EXPORTS;
|
||||
)
|
||||
ENDIF()
|
||||
|
||||
IF(PX_GENERATE_GPU_STATIC_LIBRARIES)
|
||||
SET(PXPHYSX_GPU_DEFS PX_PHYSX_GPU_STATIC)
|
||||
ENDIF()
|
||||
|
||||
# Set default PhysXGpu shared library name
|
||||
IF(NV_USE_GAMEWORKS_OUTPUT_DIRS)
|
||||
IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
SET(BITNESS_STRING "64")
|
||||
ELSE()
|
||||
SET(BITNESS_STRING "32")
|
||||
ENDIF()
|
||||
SET(PHYSX_GPU_SHARED_LIB_NAME_DEF PX_PHYSX_GPU_SHARED_LIB_NAME=libPhysXGpu_${BITNESS_STRING}.so)
|
||||
ELSE()
|
||||
SET(CONFIG_STRING $<$<CONFIG:debug>:DEBUG>$<$<CONFIG:checked>:CHECKED>$<$<CONFIG:profile>:PROFILE>)
|
||||
IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
SET(BITNESS_STRING "x64")
|
||||
ELSE()
|
||||
SET(BITNESS_STRING "x86")
|
||||
ENDIF()
|
||||
SET(PHYSX_GPU_SHARED_LIB_NAME_DEF PX_PHYSX_GPU_SHARED_LIB_NAME=libPhysXGpu${CONFIG_STRING}_${BITNESS_STRING}.so)
|
||||
ENDIF()
|
||||
|
||||
SET(PHYSX_COMPILE_DEFS
|
||||
# Common to all configurations
|
||||
${PHYSX_LINUX_COMPILE_DEFS};${PXPHYSX_LIBTYPE_DEFS};${PHYSX_GPU_SHARED_LIB_NAME_DEF};${PXPHYSX_GPU_DEFS}
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_LINUX_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_LINUX_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_LINUX_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_LINUX_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
SET(PHYSX_PLATFORM_LINK_FLAGS " ")
|
||||
SET(PHYSX_PLATFORM_LINK_FLAGS_DEBUG " ")
|
||||
SET(PHYSX_PLATFORM_LINK_FLAGS_CHECKED " ")
|
||||
SET(PHYSX_PLATFORM_LINK_FLAGS_PROFILE " ")
|
||||
SET(PHYSX_PLATFORM_LINK_FLAGS_RELEASE " ")
|
||||
|
||||
SET(PHYSX_PLATFORM_LINKED_LIBS dl)
|
||||
@ -0,0 +1,49 @@
|
||||
##
|
||||
## 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-2021 NVIDIA Corporation. All rights reserved.
|
||||
|
||||
#
|
||||
# Build PhysXCharacterKinematic
|
||||
#
|
||||
|
||||
# Use generator expressions to set config specific preprocessor definitions
|
||||
SET(PHYSXCHARACTERKINEMATICS_COMPILE_DEFS
|
||||
|
||||
# Common to all configurations
|
||||
${PHYSX_LINUX_COMPILE_DEFS};
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_LINUX_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_LINUX_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_LINUX_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_LINUX_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
SET(PHYSXCHARACTERKINEMATIC_LIBTYPE STATIC)
|
||||
|
||||
|
||||
# enable -fPIC so we can link static libs with the editor
|
||||
#SET_TARGET_PROPERTIES(PhysXCharacterKinematic PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
|
||||
|
||||
65
physx/source/compiler/cmake/linux/PhysXCommon.cmake
Normal file
65
physx/source/compiler/cmake/linux/PhysXCommon.cmake
Normal file
@ -0,0 +1,65 @@
|
||||
##
|
||||
## 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-2021 NVIDIA Corporation. All rights reserved.
|
||||
|
||||
#
|
||||
# Build PhysXCommon
|
||||
#
|
||||
|
||||
SET(PXCOMMON_PLATFORM_SRC_FILES
|
||||
)
|
||||
|
||||
SET(PXCOMMON_PLATFORM_INCLUDES
|
||||
${PHYSX_SOURCE_DIR}/common/src/linux
|
||||
)
|
||||
|
||||
|
||||
|
||||
IF(PX_GENERATE_STATIC_LIBRARIES)
|
||||
SET(PXCOMMON_LIBTYPE_DEFS
|
||||
PX_PHYSX_STATIC_LIB;
|
||||
)
|
||||
SET(PHYSXCOMMON_LIBTYPE STATIC)
|
||||
ELSE()
|
||||
SET(PXCOMMON_LIBTYPE_DEFS
|
||||
PX_PHYSX_FOUNDATION_EXPORTS;PX_PHYSX_COMMON_EXPORTS;
|
||||
)
|
||||
SET(PHYSXCOMMON_LIBTYPE SHARED)
|
||||
ENDIF()
|
||||
|
||||
|
||||
SET(PXCOMMON_COMPILE_DEFS
|
||||
# Common to all configurations
|
||||
${PHYSX_LINUX_COMPILE_DEFS};${PXCOMMON_LIBTYPE_DEFS}
|
||||
|
||||
# Switch platforms here?
|
||||
$<$<CONFIG:debug>:${PHYSX_LINUX_DEBUG_COMPILE_DEFS}>
|
||||
$<$<CONFIG:checked>:${PHYSX_LINUX_CHECKED_COMPILE_DEFS}>
|
||||
$<$<CONFIG:profile>:${PHYSX_LINUX_PROFILE_COMPILE_DEFS}>
|
||||
$<$<CONFIG:release>:${PHYSX_LINUX_RELEASE_COMPILE_DEFS}>
|
||||
)
|
||||
|
||||
SET(PXCOMMON_PLATFORM_LINK_FLAGS " ")
|
||||
64
physx/source/compiler/cmake/linux/PhysXCooking.cmake
Normal file
64
physx/source/compiler/cmake/linux/PhysXCooking.cmake
Normal file
@ -0,0 +1,64 @@
|
||||
##
|
||||
## 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-2021 NVIDIA Corporation. All rights reserved.
|
||||
|
||||
#
|
||||
# Build PhysXCooking
|
||||
#
|
||||
|
||||
|
||||
SET(PHYSXCOOKING_PLATFORM_SRC_FILES
|
||||
)
|
||||
|
||||
IF(PX_GENERATE_STATIC_LIBRARIES)
|
||||
SET(PHYSXCOOKING_LIBTYPE STATIC)
|
||||
SET(PXCOOKING_LIBTYPE_DEFS
|
||||
PX_PHYSX_STATIC_LIB;
|
||||
)
|
||||
ELSE()
|
||||
SET(PHYSXCOOKING_LIBTYPE SHARED)
|
||||
SET(PXCOOKING_LIBTYPE_DEFS
|
||||
PX_PHYSX_FOUNDATION_EXPORTS;PX_PHYSX_COMMON_EXPORTS;PX_PHYSX_COOKING_EXPORTS;PX_PHYSX_LOADER_EXPORTS;PX_PHYSX_CORE_EXPORTS
|
||||
)
|
||||
ENDIF()
|
||||
|
||||
SET(PHYSXCOOKING_COMPILE_DEFS
|
||||
# Common to all configurations
|
||||
${PHYSX_LINUX_COMPILE_DEFS};PX_COOKING;${PXCOOKING_LIBTYPE_DEFS}
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_LINUX_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_LINUX_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_LINUX_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_LINUX_RELEASE_COMPILE_DEFS};>
|
||||
|
||||
)
|
||||
|
||||
|
||||
SET(PHYSXCOOKING_LINK_FLAGS " ")
|
||||
SET(PHYSXCOOKING_LINK_FLAGS_DEBUG " ")
|
||||
SET(PHYSXCOOKING_LINK_FLAGS_CHECKED " ")
|
||||
SET(PHYSXCOOKING_LINK_FLAGS_PROFILE " ")
|
||||
SET(PHYSXCOOKING_LINK_FLAGS_RELEASE " ")
|
||||
56
physx/source/compiler/cmake/linux/PhysXExtensions.cmake
Normal file
56
physx/source/compiler/cmake/linux/PhysXExtensions.cmake
Normal file
@ -0,0 +1,56 @@
|
||||
##
|
||||
## 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-2021 NVIDIA Corporation. All rights reserved.
|
||||
|
||||
#
|
||||
# Build PhysXExtensions
|
||||
#
|
||||
|
||||
SET(PHYSXEXTENSIONS_PLATFORM_INCLUDES
|
||||
PRIVATE ${PHYSX_SOURCE_DIR}/Common/src/linux
|
||||
)
|
||||
|
||||
SET(PHYSXEXTENSIONS_PLATFORM_OBJECT_FILES
|
||||
$<TARGET_OBJECTS:FastXml>
|
||||
)
|
||||
|
||||
SET(PHYSXEXTENSIONS_PLATFORM_SRC_FILES
|
||||
${PHYSXEXTENSIONS_PLATFORM_OBJECT_FILES}
|
||||
)
|
||||
|
||||
# Use generator expressions to set config specific preprocessor definitions
|
||||
SET(PHYSXEXTENSIONS_COMPILE_DEFS
|
||||
|
||||
# Common to all configurations
|
||||
${PHYSX_LINUX_COMPILE_DEFS};PX_PHYSX_STATIC_LIB;
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_LINUX_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_LINUX_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_LINUX_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_LINUX_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
SET(PHYSXEXTENSIONS_LIBTYPE STATIC)
|
||||
110
physx/source/compiler/cmake/linux/PhysXFoundation.cmake
Normal file
110
physx/source/compiler/cmake/linux/PhysXFoundation.cmake
Normal file
@ -0,0 +1,110 @@
|
||||
##
|
||||
## 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-2021 NVIDIA Corporation. All rights reserved.
|
||||
|
||||
#
|
||||
# Build PhysXFoundation
|
||||
#
|
||||
|
||||
IF(PX_GENERATE_STATIC_LIBRARIES)
|
||||
SET(PHYSXFOUNDATION_LIBTYPE STATIC)
|
||||
ELSE()
|
||||
SET(PHYSXFOUNDATION_LIBTYPE SHARED)
|
||||
SET(PHYSXFOUNDATION_PLATFORM_LINKED_LIBS rt)
|
||||
SET(PXFOUNDATION_LIBTYPE_DEFS
|
||||
PX_PHYSX_FOUNDATION_EXPORTS;
|
||||
)
|
||||
ENDIF()
|
||||
|
||||
SET(PXSHARED_PLATFORM_HEADERS
|
||||
${PXSHARED_PATH}/include/foundation/unix/PxUnixIntrinsics.h
|
||||
)
|
||||
SOURCE_GROUP(shared\\include\\unix FILES ${PXSHARED_PLATFORM_HEADERS})
|
||||
|
||||
SET(PHYSXFOUNDATION_PLATFORM_SOURCE
|
||||
${LL_SOURCE_DIR}/src/unix/PsUnixAtomic.cpp
|
||||
${LL_SOURCE_DIR}/src/unix/PsUnixCpu.cpp
|
||||
${LL_SOURCE_DIR}/src/unix/PsUnixFPU.cpp
|
||||
${LL_SOURCE_DIR}/src/unix/PsUnixMutex.cpp
|
||||
${LL_SOURCE_DIR}/src/unix/PsUnixPrintString.cpp
|
||||
${LL_SOURCE_DIR}/src/unix/PsUnixSList.cpp
|
||||
${LL_SOURCE_DIR}/src/unix/PsUnixSocket.cpp
|
||||
${LL_SOURCE_DIR}/src/unix/PsUnixSync.cpp
|
||||
${LL_SOURCE_DIR}/src/unix/PsUnixThread.cpp
|
||||
${LL_SOURCE_DIR}/src/unix/PsUnixTime.cpp
|
||||
)
|
||||
SOURCE_GROUP("src\\src\\unix" FILES ${PHYSXFOUNDATION_PLATFORM_FILES})
|
||||
|
||||
SET(PHYSXFOUNDATION_PLATFORM_INCLUDES
|
||||
${LL_SOURCE_DIR}/include/linux
|
||||
)
|
||||
|
||||
SET(PHYSXFOUNDATION_NEON_FILES
|
||||
${LL_SOURCE_DIR}/include/unix/neon/PsUnixNeonAoS.h
|
||||
${LL_SOURCE_DIR}/include/unix/neon/PsUnixNeonInlineAoS.h
|
||||
)
|
||||
|
||||
SET(PHYSXFOUNDATION_SSE2_FILES
|
||||
${LL_SOURCE_DIR}/include/unix/sse2/PsUnixSse2AoS.h
|
||||
${LL_SOURCE_DIR}/include/unix/sse2/PsUnixSse2InlineAoS.h
|
||||
)
|
||||
|
||||
SET(PHYSXFOUNDATION_PLATFORM_SOURCE_HEADERS
|
||||
${LL_SOURCE_DIR}/include/unix/PsUnixAoS.h
|
||||
${LL_SOURCE_DIR}/include/unix/PsUnixFPU.h
|
||||
${LL_SOURCE_DIR}/include/unix/PsUnixInlineAoS.h
|
||||
${LL_SOURCE_DIR}/include/unix/PsUnixIntrinsics.h
|
||||
${LL_SOURCE_DIR}/include/unix/PsUnixTrigConstants.h
|
||||
)
|
||||
SOURCE_GROUP("src\\include\\unix" FILES ${PHYSXFOUNDATION_PLATFORM_SOURCE_HEADERS})
|
||||
|
||||
INSTALL(FILES ${PHYSXFOUNDATION_PLATFORM_SOURCE_HEADERS} DESTINATION source/foundation/include/unix)
|
||||
INSTALL(FILES ${PHYSXFOUNDATION_NEON_FILES} DESTINATION source/foundation/include/unix/neon)
|
||||
INSTALL(FILES ${PHYSXFOUNDATION_SSE2_FILES} DESTINATION source/foundation/include/unix/sse2)
|
||||
INSTALL(FILES ${PXSHARED_PLATFORM_HEADERS} DESTINATION ${PXSHARED_INSTALL_PREFIX}/include/foundation/unix)
|
||||
|
||||
SET(PHYSXFOUNDATION_PLATFORM_FILES
|
||||
${PHYSXFOUNDATION_PLATFORM_SOURCE}
|
||||
${PHYSXFOUNDATION_PLATFORM_SOURCE_HEADERS}
|
||||
${PHYSXFOUNDATION_NEON_FILES}
|
||||
${PHYSXFOUNDATION_SSE2_FILES}
|
||||
${PHYSXFOUNDATION_RESOURCE_FILE}
|
||||
)
|
||||
|
||||
|
||||
|
||||
# Use generator expressions to set config specific preprocessor definitions
|
||||
SET(PHYSXFOUNDATION_COMPILE_DEFS
|
||||
# Common to all configurations
|
||||
${PHYSX_LINUX_COMPILE_DEFS};${PXFOUNDATION_LIBTYPE_DEFS}
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_LINUX_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_LINUX_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_LINUX_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_LINUX_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
SET(PXFOUNDATION_PLATFORM_LINK_FLAGS "-m64")
|
||||
44
physx/source/compiler/cmake/linux/PhysXPvdSDK.cmake
Normal file
44
physx/source/compiler/cmake/linux/PhysXPvdSDK.cmake
Normal file
@ -0,0 +1,44 @@
|
||||
##
|
||||
## 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-2021 NVIDIA Corporation. All rights reserved.
|
||||
|
||||
#
|
||||
# Build PhysXPvdSDK
|
||||
#
|
||||
|
||||
SET(PHYSXPVDSDK_LIBTYPE STATIC)
|
||||
|
||||
# Use generator expressions to set config specific preprocessor definitions
|
||||
SET(PHYSXPVDSDK_COMPILE_DEFS
|
||||
# Common to all configurations
|
||||
${PHYSX_LINUX_COMPILE_DEFS};PX_PHYSX_STATIC_LIB;
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_LINUX_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_LINUX_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_LINUX_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_LINUX_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
45
physx/source/compiler/cmake/linux/PhysXTask.cmake
Normal file
45
physx/source/compiler/cmake/linux/PhysXTask.cmake
Normal file
@ -0,0 +1,45 @@
|
||||
##
|
||||
## 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-2021 NVIDIA Corporation. All rights reserved.
|
||||
|
||||
#
|
||||
# Build PhysXTask
|
||||
#
|
||||
|
||||
SET(PHYSXTASK_COMPILE_DEFS
|
||||
${PHYSX_LINUX_COMPILE_DEFS};
|
||||
)
|
||||
|
||||
SET(PHYSXTASK_COMPILE_DEFS
|
||||
${PHYSX_LINUX_COMPILE_DEFS};_LIB
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_LINUX_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_LINUX_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_LINUX_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_LINUX_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
SET(PHYSXTASK_LIBTYPE OBJECT)
|
||||
47
physx/source/compiler/cmake/linux/PhysXVehicle.cmake
Normal file
47
physx/source/compiler/cmake/linux/PhysXVehicle.cmake
Normal file
@ -0,0 +1,47 @@
|
||||
##
|
||||
## 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-2021 NVIDIA Corporation. All rights reserved.
|
||||
|
||||
#
|
||||
# Build PhysXVehicle
|
||||
#
|
||||
|
||||
# Use generator expressions to set config specific preprocessor definitions
|
||||
SET(PHYSXVEHICLE_COMPILE_DEFS
|
||||
|
||||
# Common to all configurations
|
||||
${PHYSX_LINUX_COMPILE_DEFS};PX_PHYSX_STATIC_LIB
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_LINUX_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_LINUX_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_LINUX_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_LINUX_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
|
||||
SET(PHYSXVEHICLE_LIBTYPE STATIC)
|
||||
|
||||
|
||||
50
physx/source/compiler/cmake/linux/SceneQuery.cmake
Normal file
50
physx/source/compiler/cmake/linux/SceneQuery.cmake
Normal file
@ -0,0 +1,50 @@
|
||||
##
|
||||
## 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-2021 NVIDIA Corporation. All rights reserved.
|
||||
|
||||
#
|
||||
# Build SceneQuery
|
||||
#
|
||||
|
||||
SET(SCENEQUERY_PLATFORM_INCLUDES
|
||||
PRIVATE ${PHYSX_SOURCE_DIR}/Common/src/linux
|
||||
)
|
||||
|
||||
|
||||
# Use generator expressions to set config specific preprocessor definitions
|
||||
SET(SCENEQUERY_COMPILE_DEFS
|
||||
|
||||
# Common to all configurations
|
||||
${PHYSX_LINUX_COMPILE_DEFS};PX_PHYSX_STATIC_LIB
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_LINUX_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_LINUX_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_LINUX_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_LINUX_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
SET(SCENEQUERY_LIBTYPE OBJECT)
|
||||
|
||||
51
physx/source/compiler/cmake/linux/SimulationController.cmake
Normal file
51
physx/source/compiler/cmake/linux/SimulationController.cmake
Normal file
@ -0,0 +1,51 @@
|
||||
##
|
||||
## 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-2021 NVIDIA Corporation. All rights reserved.
|
||||
|
||||
#
|
||||
# Build SimulationController
|
||||
#
|
||||
|
||||
SET(SIMULATIONCONTROLLER_PLATFORM_INCLUDES
|
||||
${PHYSX_SOURCE_DIR}/common/src/linux
|
||||
${PHYSX_SOURCE_DIR}/lowlevel/linux/include
|
||||
)
|
||||
|
||||
# Use generator expressions to set config specific preprocessor definitions
|
||||
SET(SIMULATIONCONTROLLER_COMPILE_DEFS
|
||||
|
||||
# Common to all configurations
|
||||
${PHYSX_LINUX_COMPILE_DEFS};PX_PHYSX_STATIC_LIB
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_LINUX_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_LINUX_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_LINUX_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_LINUX_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
SET(SIMULATIONCONTROLLER_LIBTYPE OBJECT)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user