Skip to content

Commit 54c3d41

Browse files
committed
Merge remote-tracking branch 'nvidia/4.1' into emscripten_wip
2 parents b9e3de8 + a2c0428 commit 54c3d41

File tree

3,527 files changed

+11040
-9823
lines changed

Some content is hidden

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

3,527 files changed

+11040
-9823
lines changed

LICENSE.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# NVIDIA PhysX SDK 4.1
2+
3+
Copyright (c) 2021 NVIDIA Corporation. All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions
7+
are met:
8+
* Redistributions of source code must retain the above copyright
9+
notice, this list of conditions and the following disclaimer.
10+
* Redistributions in binary form must reproduce the above copyright
11+
notice, this list of conditions and the following disclaimer in the
12+
documentation and/or other materials provided with the distribution.
13+
* Neither the name of NVIDIA CORPORATION nor the names of its
14+
contributors may be used to endorse or promote products derived
15+
from this software without specific prior written permission.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
18+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
24+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
25+
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# NVIDIA PhysX SDK 4.1
22

3-
Copyright (c) 2019 NVIDIA Corporation. All rights reserved.
3+
Copyright (c) 2021 NVIDIA Corporation. All rights reserved.
44

55
Redistribution and use in source and binary forms, with or without
66
modification, are permitted provided that the following conditions
@@ -26,6 +26,11 @@ OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2626
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2727
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828

29+
## PhysX 5 Now Available
30+
31+
The NVIDIA PhysX SDK version 5 is now available [here](https://github.com/NVIDIA-Omniverse/PhysX).
32+
This repository will continue to be available to support legacy users. We encourage all new projects to start on the new release.
33+
2934
## Introduction
3035

3136
Welcome to the NVIDIA PhysX SDK source code repository. This depot includes the PhysX SDK and the Kapla Demo application.

externals/cmakemodules/GetCompilerAndPlatform.cmake

+8-4
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ FUNCTION(GetCompiler _ret)
6868
SET(COMPILER_SUFFIX "vc140")
6969
ELSEIF (XBOXONE_MSVC_VERSION EQUAL 141)
7070
SET(COMPILER_SUFFIX "vc141")
71+
ELSEIF (XBOXSERIESX_MSVC_VERSION EQUAL 141)
72+
SET(COMPILER_SUFFIX "vc141")
7173
ELSE()
7274
# add clang!
7375
SET(COMPILER_SUFFIX "")
@@ -108,6 +110,8 @@ FUNCTION (GetPlatformBinName PLATFORM_BIN_NAME LIBPATH_SUFFIX)
108110
SET(RETVAL "ps4")
109111
ELSEIF(TARGET_BUILD_PLATFORM STREQUAL "xboxone")
110112
SET(RETVAL "xboxone.${COMPILER}")
113+
ELSEIF(TARGET_BUILD_PLATFORM STREQUAL "xboxseriesx")
114+
SET(RETVAL "xboxseriesx.${COMPILER}")
111115
ELSEIF(TARGET_BUILD_PLATFORM STREQUAL "switch")
112116
IF (${CMAKE_GENERATOR_PLATFORM} STREQUAL "NX32")
113117
SET(RETVAL "switch32")
@@ -119,10 +123,10 @@ FUNCTION (GetPlatformBinName PLATFORM_BIN_NAME LIBPATH_SUFFIX)
119123
ELSEIF(TARGET_BUILD_PLATFORM STREQUAL "emscripten")
120124
SET(RETVAL "emscripten")
121125
ELSEIF(TARGET_BUILD_PLATFORM STREQUAL "linux")
122-
IF (${CMAKE_LIBRARY_ARCHITECTURE} STREQUAL "x86_64-unknown-linux-gnu" OR ${CMAKE_LIBRARY_ARCHITECTURE} STREQUAL "x86_64-linux-gnu")
123-
SET(RETVAL "linux.clang")
124-
ELSEIF(${CMAKE_LIBRARY_ARCHITECTURE} STREQUAL "aarch64-unknown-linux-gnueabi" OR ${CMAKE_LIBRARY_ARCHITECTURE} STREQUAL "aarch64-linux-gnu")
125-
SET(RETVAL "linux.aarch64")
126+
IF(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
127+
SET(RETVAL "linux.clang")
128+
ELSEIF(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64")
129+
SET(RETVAL "linux.aarch64")
126130
ENDIF()
127131
ENDIF()
128132

externals/cmakemodules/linux/LinuxCrossToolchain.aarch64-unknown-linux-gnueabihf.cmake

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ IF(NOT $ENV{PM_PACKAGES_ROOT} EQUAL "")
33

44
INCLUDE(CMakeForceCompiler)
55

6-
SET(LINUX_ROOT $ENV{PM_PACKAGES_ROOT}/clang-crosscompile/5.0.0/aarch64-unknown-linux-gnueabi)
6+
SET(LINUX_ROOT $ENV{PM_CLANGCROSSCOMPILE_PATH}/aarch64-unknown-linux-gnueabi)
77
STRING(REGEX REPLACE "\\\\" "/" LINUX_ROOT ${LINUX_ROOT})
88

99
message (STATUS "LINUX_ROOT is '${LINUX_ROOT}'")
1010
SET(ARCHITECTURE_TRIPLE aarch64-unknown-linux-gnueabi)
11+
SET(CMAKE_SYSTEM_PROCESSOR aarch64)
1112

1213
SET(CMAKE_CROSSCOMPILING TRUE)
1314
SET(CMAKE_SYSTEM_NAME Linux)
@@ -34,7 +35,7 @@ IF(NOT $ENV{PM_PACKAGES_ROOT} EQUAL "")
3435
#set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
3536
#set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
3637

37-
SET(CMAKE_MAKE_PROGRAM "$ENV{PM_PACKAGES_ROOT}/MinGW/0.6.2/bin/mingw32-make.exe")
38+
SET(CMAKE_MAKE_PROGRAM "$ENV{PM_MINGW_PATH}/bin/mingw32-make.exe")
3839
ELSE()
3940
MESSAGE("PM_PACKAGES_ROOT variable not defined!")
4041
ENDIF()

externals/cmakemodules/linux/LinuxCrossToolchain.arm-unknown-linux-gnueabihf.cmake

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ IF(NOT $ENV{LINUX_ROOT} EQUAL "")
77

88
message (STATUS "LINUX_ROOT is '${LINUX_ROOT}'")
99
SET(ARCHITECTURE_TRIPLE arm-unknown-linux-gnueabihf)
10+
SET(CMAKE_SYSTEM_PROCESSOR aarch64)
1011

1112
SET(CMAKE_CROSSCOMPILING TRUE)
1213
SET(CMAKE_SYSTEM_NAME Linux)

0 commit comments

Comments
 (0)