Init
This commit is contained in:
92
physx/source/compiler/cmake/ios/CMakeLists.txt
Normal file
92
physx/source/compiler/cmake/ios/CMakeLists.txt
Normal file
@ -0,0 +1,92 @@
|
||||
##
|
||||
## 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.
|
||||
|
||||
|
||||
SET(PHYSX_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-rtti -fno-exceptions -ffunction-sections -fdata-sections -ferror-limit=0 -Wall -Wextra -Werror -fstrict-aliasing -Wstrict-aliasing=2 -Weverything -Wno-unknown-warning-option -Wno-documentation-deprecated-sync -Wno-documentation-unknown-command -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-undefined-reinterpret-cast -Wno-invalid-offsetof -Wno-zero-as-null-pointer-constant -Wno-atomic-implicit-seq-cst -gdwarf-2" CACHE INTERNAL "PhysX CXX")
|
||||
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS_CHECKED "")
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS_PROFILE "")
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS "")
|
||||
|
||||
# Build debug info for all configurations
|
||||
SET(PHYSX_CXX_FLAGS_DEBUG "-O0 -g" CACHE INTERNAL "PhysX Debug CXX Flags")
|
||||
SET(PHYSX_CXX_FLAGS_CHECKED "-O3 -g" CACHE INTERNAL "PhysX Checked CXX Flags")
|
||||
SET(PHYSX_CXX_FLAGS_PROFILE "-O3 -g" CACHE INTERNAL "PhysX Profile CXX Flags")
|
||||
SET(PHYSX_CXX_FLAGS_RELEASE "-O3 -g" CACHE INTERNAL "PhysX Release CXX Flags")
|
||||
|
||||
# These flags are local to the directory the CMakeLists.txt is in
|
||||
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")
|
||||
|
||||
# Disable cuda and dx for all projects on iOS
|
||||
SET(PHYSX_IOS_COMPILE_DEFS "DISABLE_CUDA_PHYSX;${PHYSX_AUTOBUILD}" CACHE INTERNAL "Base PhysX preprocessor definitions")
|
||||
SET(PHYSX_IOS_DEBUG_COMPILE_DEFS "_DEBUG;PX_DEBUG=1;PX_CHECKED=1;${NVTX_FLAG};PX_SUPPORT_PVD=1" CACHE INTERNAL "Debug PhysX preprocessor definitions")
|
||||
SET(PHYSX_IOS_CHECKED_COMPILE_DEFS "NDEBUG;PX_CHECKED=1;${NVTX_FLAG};PX_SUPPORT_PVD=1" CACHE INTERNAL "Checked PhysX preprocessor definitions")
|
||||
SET(PHYSX_IOS_PROFILE_COMPILE_DEFS "NDEBUG;PX_PROFILE=1;${NVTX_FLAG};PX_SUPPORT_PVD=1" CACHE INTERNAL "Profile PhysX preprocessor definitions")
|
||||
SET(PHYSX_IOS_RELEASE_COMPILE_DEFS "NDEBUG;PX_SUPPORT_PVD=0" CACHE INTERNAL "Release PhysX preprocessor definitions")
|
||||
|
||||
|
||||
# Include all of the projects
|
||||
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(PhysXPvdSDK.cmake)
|
||||
INCLUDE(PhysXTask.cmake)
|
||||
INCLUDE(SceneQuery.cmake)
|
||||
INCLUDE(SimulationController.cmake)
|
||||
INCLUDE(FastXml.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")
|
||||
44
physx/source/compiler/cmake/ios/FastXml.cmake
Normal file
44
physx/source/compiler/cmake/ios/FastXml.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 FastXml
|
||||
#
|
||||
|
||||
# Use generator expressions to set config specific preprocessor definitions
|
||||
SET(FASTXML_COMPILE_DEFS
|
||||
|
||||
# Common to all configurations
|
||||
${PHYSX_IOS_COMPILE_DEFS};
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_IOS_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_IOS_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_IOS_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_IOS_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
SET(FASTXML_LIBTYPE OBJECT)
|
||||
51
physx/source/compiler/cmake/ios/LowLevel.cmake
Normal file
51
physx/source/compiler/cmake/ios/LowLevel.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 LowLevel
|
||||
#
|
||||
|
||||
SET(LOWLEVEL_PLATFORM_INCLUDES
|
||||
${PHYSX_SOURCE_DIR}/Common/src/ios
|
||||
${PHYSX_SOURCE_DIR}/LowLevel/software/include/ios
|
||||
${PHYSX_SOURCE_DIR}/LowLevelDynamics/include/ios
|
||||
${PHYSX_SOURCE_DIR}/LowLevel/common/include/pipeline/ios
|
||||
)
|
||||
|
||||
SET(LOWLEVEL_COMPILE_DEFS
|
||||
# Common to all configurations
|
||||
${PHYSX_IOS_COMPILE_DEFS};PX_PHYSX_STATIC_LIB
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_IOS_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_IOS_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_IOS_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_IOS_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
SET(LOWLEVEL_PLATFORM_LINK_FLAGS " ")
|
||||
|
||||
SET(LOWLEVEL_LIBTYPE OBJECT)
|
||||
53
physx/source/compiler/cmake/ios/LowLevelAABB.cmake
Normal file
53
physx/source/compiler/cmake/ios/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/ios
|
||||
${PHYSX_SOURCE_DIR}/LowLevelAABB/ios/include
|
||||
${PHYSX_SOURCE_DIR}/GpuBroadPhase/include
|
||||
${PHYSX_SOURCE_DIR}/GpuBroadPhase/src
|
||||
)
|
||||
|
||||
|
||||
SET(LOWLEVELAABB_COMPILE_DEFS
|
||||
|
||||
# Common to all configurations
|
||||
${PHYSX_IOS_COMPILE_DEFS};PX_PHYSX_STATIC_LIB
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_IOS_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_IOS_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_IOS_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_IOS_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
SET(LOWLEVELAABB_PLATFORM_LINK_FLAGS " ")
|
||||
|
||||
SET(LOWLEVELAABB_LIBTYPE OBJECT)
|
||||
52
physx/source/compiler/cmake/ios/LowLevelDynamics.cmake
Normal file
52
physx/source/compiler/cmake/ios/LowLevelDynamics.cmake
Normal file
@ -0,0 +1,52 @@
|
||||
##
|
||||
## 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/ios
|
||||
${PHYSX_SOURCE_DIR}/lowlevel/software/include/ios
|
||||
${PHYSX_SOURCE_DIR}/lowleveldynamics/include/ios
|
||||
${PHYSX_SOURCE_DIR}/lowlevel/common/include/pipeline/ios
|
||||
)
|
||||
|
||||
# Use generator expressions to set config specific preprocessor definitions
|
||||
SET(LOWLEVELDYNAMICS_COMPILE_DEFS
|
||||
|
||||
# Common to all configurations
|
||||
${PHYSX_IOS_COMPILE_DEFS};PX_PHYSX_STATIC_LIB
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_IOS_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_IOS_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_IOS_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_IOS_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
SET(LOWLEVELDYNAMICS_LIBTYPE OBJECT)
|
||||
72
physx/source/compiler/cmake/ios/PhysX.cmake
Normal file
72
physx/source/compiler/cmake/ios/PhysX.cmake
Normal file
@ -0,0 +1,72 @@
|
||||
##
|
||||
## 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_PLATFORM_INCLUDES
|
||||
)
|
||||
|
||||
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}/gpu/PxGpu.cpp
|
||||
${PX_SOURCE_DIR}/gpu/PxPhysXGpuModuleLoader.cpp
|
||||
|
||||
${PHYSX_PLATFORM_OBJECT_FILES}
|
||||
)
|
||||
|
||||
# Use generator expressions to set config specific preprocessor definitions
|
||||
SET(PHYSX_COMPILE_DEFS
|
||||
# Common to all configurations
|
||||
${PHYSX_IOS_COMPILE_DEFS};PX_PHYSX_CORE_EXPORTS
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_IOS_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_IOS_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_IOS_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_IOS_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
IF(PX_GENERATE_STATIC_LIBRARIES)
|
||||
SET(PHYSX_LIBTYPE STATIC)
|
||||
ELSE()
|
||||
SET(PHYSX_LIBTYPE SHARED)
|
||||
ENDIF()
|
||||
|
||||
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 " ")
|
||||
@ -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 PhysXCharacterKinematic
|
||||
#
|
||||
|
||||
|
||||
# Use generator expressions to set config specific preprocessor definitions
|
||||
SET(PHYSXCHARACTERKINEMATICS_COMPILE_DEFS
|
||||
|
||||
# Common to all configurations
|
||||
${PHYSX_IOS_COMPILE_DEFS};
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_IOS_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_IOS_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_IOS_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_IOS_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
SET(PHYSXCHARACTERKINEMATIC_LIBTYPE STATIC)
|
||||
70
physx/source/compiler/cmake/ios/PhysXCommon.cmake
Normal file
70
physx/source/compiler/cmake/ios/PhysXCommon.cmake
Normal file
@ -0,0 +1,70 @@
|
||||
##
|
||||
## 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/ios
|
||||
)
|
||||
|
||||
IF(PX_GENERATE_STATIC_LIBRARIES)
|
||||
SET(PXCOMMON_COMPILE_DEFS
|
||||
# Common to all configurations
|
||||
${PHYSX_IOS_COMPILE_DEFS};PX_PHYSX_STATIC_LIB;
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_IOS_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_IOS_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_IOS_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_IOS_RELEASE_COMPILE_DEFS}>
|
||||
)
|
||||
ELSE()
|
||||
SET(PXCOMMON_COMPILE_DEFS
|
||||
# Common to all configurations
|
||||
${PHYSX_IOS_COMPILE_DEFS};PX_PHYSX_COMMON_EXPORTS;
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_IOS_DEBUG_COMPILE_DEFS}>
|
||||
$<$<CONFIG:checked>:${PHYSX_IOS_CHECKED_COMPILE_DEFS}>
|
||||
$<$<CONFIG:profile>:${PHYSX_IOS_PROFILE_COMPILE_DEFS}>
|
||||
$<$<CONFIG:release>:${PHYSX_IOS_RELEASE_COMPILE_DEFS}>
|
||||
)
|
||||
ENDIF()
|
||||
|
||||
|
||||
|
||||
IF(PX_GENERATE_STATIC_LIBRARIES)
|
||||
SET(PHYSXCOMMON_LIBTYPE STATIC)
|
||||
ELSE()
|
||||
SET(PHYSXCOMMON_LIBTYPE SHARED)
|
||||
ENDIF()
|
||||
|
||||
SET(PXCOMMON_PLATFORM_LINK_FLAGS " ")
|
||||
56
physx/source/compiler/cmake/ios/PhysXCooking.cmake
Normal file
56
physx/source/compiler/cmake/ios/PhysXCooking.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 PhysXCooking
|
||||
#
|
||||
|
||||
SET(PHYSXCOOKING_COMPILE_DEFS
|
||||
# Common to all configurations
|
||||
${PHYSX_IOS_COMPILE_DEFS};PX_PHYSX_LOADER_EXPORTS;PX_PHYSX_COOKING_EXPORTS;PX_PHYSX_CORE_EXPORTS;PX_COOKING;
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_IOS_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_IOS_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_IOS_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_IOS_RELEASE_COMPILE_DEFS};>
|
||||
|
||||
)
|
||||
|
||||
SET(PHYSXCOOKING_PLATFORM_SRC_FILES
|
||||
)
|
||||
|
||||
IF(PX_GENERATE_STATIC_LIBRARIES)
|
||||
SET(PHYSXCOOKING_LIBTYPE STATIC)
|
||||
ELSE()
|
||||
SET(PHYSXCOOKING_LIBTYPE SHARED)
|
||||
ENDIF()
|
||||
|
||||
SET(PHYSXCOOKING_LINK_FLAGS " ")
|
||||
SET(PHYSXCOOKING_LINK_FLAGS_DEBUG " ")
|
||||
SET(PHYSXCOOKING_LINK_FLAGS_CHECKED " ")
|
||||
SET(PHYSXCOOKING_LINK_FLAGS_PROFILE " ")
|
||||
SET(PHYSXCOOKING_LINK_FLAGS_RELEASE " ")
|
||||
57
physx/source/compiler/cmake/ios/PhysXExtensions.cmake
Normal file
57
physx/source/compiler/cmake/ios/PhysXExtensions.cmake
Normal file
@ -0,0 +1,57 @@
|
||||
##
|
||||
## 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/ios
|
||||
)
|
||||
|
||||
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_IOS_COMPILE_DEFS};PX_PHYSX_STATIC_LIB;
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_IOS_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_IOS_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_IOS_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_IOS_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
SET(PHYSXEXTENSIONS_LIBTYPE STATIC)
|
||||
96
physx/source/compiler/cmake/ios/PhysXFoundation.cmake
Normal file
96
physx/source/compiler/cmake/ios/PhysXFoundation.cmake
Normal file
@ -0,0 +1,96 @@
|
||||
##
|
||||
## 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(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_INCLUDES
|
||||
${LL_SOURCE_DIR}/include/ios
|
||||
)
|
||||
|
||||
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
|
||||
)
|
||||
|
||||
SET(PHYSXFOUNDATION_NEON_FILES
|
||||
${LL_SOURCE_DIR}/include/unix/neon/PsUnixNeonAoS.h
|
||||
${LL_SOURCE_DIR}/include/unix/neon/PsUnixNeonInlineAoS.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 ${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_RESOURCE_FILE}
|
||||
)
|
||||
|
||||
SET(PHYSXFOUNDATION_COMPILE_DEFS
|
||||
|
||||
# Common to all configurations
|
||||
${PHYSX_IOS_COMPILE_DEFS};${PXFOUNDATION_LIBTYPE_DEFS};
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_IOS_DEBUG_COMPILE_DEFS}>
|
||||
$<$<CONFIG:checked>:${PHYSX_IOS_CHECKED_COMPILE_DEFS}>
|
||||
$<$<CONFIG:profile>:${PHYSX_IOS_PROFILE_COMPILE_DEFS}>
|
||||
$<$<CONFIG:release>:${PHYSX_IOS_RELEASE_COMPILE_DEFS}>
|
||||
)
|
||||
45
physx/source/compiler/cmake/ios/PhysXPvdSDK.cmake
Normal file
45
physx/source/compiler/cmake/ios/PhysXPvdSDK.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 PhysXPvdSDK
|
||||
#
|
||||
|
||||
SET(PHYSXPVDSDK_LIBTYPE STATIC)
|
||||
|
||||
# Use generator expressions to set config specific preprocessor definitions
|
||||
SET(PHYSXPVDSDK_COMPILE_DEFS
|
||||
|
||||
# Common to all configurations
|
||||
${PHYSX_IOS_COMPILE_DEFS}
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_IOS_DEBUG_COMPILE_DEFS}>
|
||||
$<$<CONFIG:checked>:${PHYSX_IOS_CHECKED_COMPILE_DEFS}>
|
||||
$<$<CONFIG:profile>:${PHYSX_IOS_PROFILE_COMPILE_DEFS}>
|
||||
$<$<CONFIG:release>:${PHYSX_IOS_RELEASE_COMPILE_DEFS}>
|
||||
)
|
||||
|
||||
41
physx/source/compiler/cmake/ios/PhysXTask.cmake
Normal file
41
physx/source/compiler/cmake/ios/PhysXTask.cmake
Normal file
@ -0,0 +1,41 @@
|
||||
##
|
||||
## 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_IOS_COMPILE_DEFS};
|
||||
$<$<CONFIG:debug>:${PHYSX_IOS_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_IOS_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_IOS_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_IOS_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
SET(PHYSXTASK_LIBTYPE OBJECT)
|
||||
45
physx/source/compiler/cmake/ios/PhysXVehicle.cmake
Normal file
45
physx/source/compiler/cmake/ios/PhysXVehicle.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 PhysXVehicle
|
||||
#
|
||||
|
||||
# Use generator expressions to set config specific preprocessor definitions
|
||||
SET(PHYSXVEHICLE_COMPILE_DEFS
|
||||
|
||||
# Common to all configurations
|
||||
${PHYSX_IOS_COMPILE_DEFS};PX_PHYSX_STATIC_LIB
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_IOS_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_IOS_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_IOS_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_IOS_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
|
||||
SET(PHYSXVEHICLE_LIBTYPE STATIC)
|
||||
48
physx/source/compiler/cmake/ios/SceneQuery.cmake
Normal file
48
physx/source/compiler/cmake/ios/SceneQuery.cmake
Normal file
@ -0,0 +1,48 @@
|
||||
##
|
||||
## 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/ios
|
||||
)
|
||||
|
||||
# Use generator expressions to set config specific preprocessor definitions
|
||||
SET(SCENEQUERY_COMPILE_DEFS
|
||||
|
||||
# Common to all configurations
|
||||
${PHYSX_IOS_COMPILE_DEFS};PX_PHYSX_STATIC_LIB
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_IOS_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_IOS_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_IOS_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_IOS_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
SET(SCENEQUERY_LIBTYPE OBJECT)
|
||||
49
physx/source/compiler/cmake/ios/SimulationController.cmake
Normal file
49
physx/source/compiler/cmake/ios/SimulationController.cmake
Normal file
@ -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 SimulationController
|
||||
#
|
||||
|
||||
SET(SIMULATIONCONTROLLER_PLATFORM_INCLUDES
|
||||
${PHYSX_SOURCE_DIR}/Common/src/ios
|
||||
${PHYSX_SOURCE_DIR}/LowLevel/mac/include
|
||||
)
|
||||
|
||||
# Use generator expressions to set config specific preprocessor definitions
|
||||
SET(SIMULATIONCONTROLLER_COMPILE_DEFS
|
||||
|
||||
# Common to all configurations
|
||||
${PHYSX_IOS_COMPILE_DEFS};PX_PHYSX_STATIC_LIB
|
||||
|
||||
$<$<CONFIG:debug>:${PHYSX_IOS_DEBUG_COMPILE_DEFS};>
|
||||
$<$<CONFIG:checked>:${PHYSX_IOS_CHECKED_COMPILE_DEFS};>
|
||||
$<$<CONFIG:profile>:${PHYSX_IOS_PROFILE_COMPILE_DEFS};>
|
||||
$<$<CONFIG:release>:${PHYSX_IOS_RELEASE_COMPILE_DEFS};>
|
||||
)
|
||||
|
||||
SET(SIMULATIONCONTROLLER_LIBTYPE OBJECT)
|
||||
Reference in New Issue
Block a user