Disable building snippets

This commit is contained in:
bloeys
2022-12-06 22:30:08 +04:00
parent 6801e0e35d
commit bb4429a4a1
2 changed files with 18 additions and 5 deletions

View File

@ -10,17 +10,17 @@ jobs:
- name: Clone PhysX 4.1
run: git clone -b 4.1 https://github.com/NVIDIAGameWorks/PhysX
# Added: -Wno-alloca and -Wno-anon-enum-enum-conversion
- name: Copy fixed CMakeLists
#Added: -Wno-alloca and -Wno-anon-enum-enum-conversion
run: git clone https://github.com/bloeys/physx-builder && cp ./physx-builder/macCMakeLists.txt ./PhysX/physx/source/compiler/cmake/mac/CMakeLists.txt
- name: Disable building snippets
run: cp ./physx-builder/mac64.xml ./PhysX/physx/buildtools/presets/public/mac64.xml
- name: Generate xcode project
working-directory: ./PhysX/physx
run: ./generate_projects.sh mac64 #'mac64' is from the buildtools/presets folder
run: ./generate_projects.sh mac64 # 'mac64' is from the buildtools/presets folder
- name: Check compiler folder 2
run: ls -al ./PhysX/physx/compiler/mac64
- name: Build PhysX Checked
working-directory: ./PhysX/physx/compiler/mac64
run: xcodebuild -project PhysXSDK.xcodeproj -alltargets -configuration checked

13
mac64.xml Executable file
View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<preset name="mac64" comment="macOS Xcode PhysX general settings">
<platform targetPlatform="mac64" compiler="xcode" />
<CMakeSwitches>
<cmakeSwitch name="PX_BUILDSNIPPETS" value="False" comment="Generate the snippets" />
<cmakeSwitch name="PX_GENERATE_STATIC_LIBRARIES" value="True" comment="Generate static libraries" />
<cmakeSwitch name="NV_FORCE_64BIT_SUFFIX" value="True" comment="Force a 64 bit suffix for platforms that don't register properly." />
<cmakeSwitch name="NV_FORCE_32BIT_SUFFIX" value="False" comment="Force a 32 bit suffix for platforms that don't register properly." />
</CMakeSwitches>
<CMakeParams>
<cmakeParam name="CMAKE_INSTALL_PREFIX" value="install/mac64/PhysX" comment="Install path relative to PhysX SDK root" />
</CMakeParams>
</preset>