Skip to content
Permalink
Browse files

[Physics] Clarify bullet lib's usage and sources

  • Loading branch information
Eideren committed Jun 26, 2019
1 parent ae1f4b4 commit a09fa7ee09a6d437c5dee485ddd8336db3e13ea8
Showing with 14 additions and 46 deletions.
  1. +8 −0 deps/BulletPhysics/README.md
  2. +0 −40 deps/BulletPhysics/build.bat
  3. +1 −1 deps/BulletPhysics/checkout.bat
  4. +5 −5 deps/BulletPhysics/sign.bat
@@ -0,0 +1,8 @@
## BulletPhysics
This folder houses bullet, the physics engine used within xenko.
libbulletc.* is the bullet c++ library, we should have one lib compiled for each platform and architecture.
BulletSharp.NetStandard.dll is the C# wrapper around that c++ library, there's one dll for iOS (within /iOS) and the other for any other platform, take a look at https://xamarin.github.io/bugzilla-archives/24/24943/bug.html for more info about the reason as to why we have to make a specific dll for iOS.

The sources, build scripts and instructions are hosted over at https://github.com/Eideren/BulletSharpPInvoke .

At the time of writing this (26/June/19), the files in this folder were built under commit [2a79f9af9c3fcc61aaad69a9a24e6b1f7246f758](https://github.com/Eideren/BulletSharpPInvoke/commit/2a79f9af9c3fcc61aaad69a9a24e6b1f7246f758), changes were merged with xenko through [PR#289](https://github.com/xenko3d/xenko/pull/289).

This file was deleted.

@@ -6,5 +6,5 @@ IF NOT ERRORLEVEL 0 (
ECHO "Could not find git.exe"
EXIT /B %ERRORLEVEL%
)
%GIT_CMD% clone git@github.com:xenko3d/bullet2-sharp-mobile.git ../../externals/bullet2-sharp-mobile
%GIT_CMD% clone git@github.com:Eideren/BulletSharpPInvoke.git ../../externals/BulletSharpPInvoke
if NOT ERRORLEVEL 0 pause
@@ -1,12 +1,12 @@
call "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\vc\vcvarsall.bat" x86

ildasm /all /out:Windows\BulletSharp.NetStandard.il BulletSharp.NetStandard.dll
ildasm /all /out:BulletSharp.NetStandard.il BulletSharp.NetStandard.dll
ildasm /all /out:iOS\BulletSharp.NetStandard.il iOS\BulletSharp.NetStandard.dll

@echo "Please patch Windows\BulletSharp.NetStandard.il and iOS\BulletSharp.NetStandard.il Xenko.Core.Mathematics reference with .publickeytoken = ( BA CA CC 89 C3 B6 D5 56 )"
@echo "Please patch BulletSharp.NetStandard.il and iOS\BulletSharp.NetStandard.il Xenko.Core.Mathematics reference with .publickeytoken = ( BA CA CC 89 C3 B6 D5 56 )"
pause

mkdir Windows\Signed
mkdir Signed
mkdir iOS\Signed
ilasm /dll /key:..\..\build\paradox.snk /output:Windows\Signed\BulletSharp.NetStandard.dll Windows\BulletSharp.NetStandard.il
ilasm /dll /key:..\..\build\paradox.snk /output:iOS\Signed\BulletSharp.NetStandard.dll iOS\BulletSharp.NetStandard.il
ilasm /dll /key:..\..\build\xenko.public.snk /output:Signed\BulletSharp.NetStandard.dll BulletSharp.NetStandard.il
ilasm /dll /key:..\..\build\xenko.public.snk /output:iOS\Signed\BulletSharp.NetStandard.dll iOS\BulletSharp.NetStandard.il

0 comments on commit a09fa7e

Please sign in to comment.
You can’t perform that action at this time.