diff options
| author | mtamis <[email protected]> | 2017-02-15 16:06:25 +0100 |
|---|---|---|
| committer | mtamis <[email protected]> | 2017-02-15 16:06:25 +0100 |
| commit | 85305930aeeb1d513e23522bd91f29ba81aa6d14 (patch) | |
| tree | 45f1bb20a45a300d1fef107e436cac95602a0e57 /NvCloth/scripts | |
| download | nvcloth-85305930aeeb1d513e23522bd91f29ba81aa6d14.tar.xz nvcloth-85305930aeeb1d513e23522bd91f29ba81aa6d14.zip | |
NvCloth library v1.0.0
Diffstat (limited to 'NvCloth/scripts')
| -rw-r--r-- | NvCloth/scripts/locate.bat | 39 | ||||
| -rw-r--r-- | NvCloth/scripts/locate_cmake.bat | 17 | ||||
| -rw-r--r-- | NvCloth/scripts/locate_cuda.bat | 18 | ||||
| -rw-r--r-- | NvCloth/scripts/locate_google_test.bat | 18 | ||||
| -rw-r--r-- | NvCloth/scripts/locate_gw_root.bat | 19 | ||||
| -rw-r--r-- | NvCloth/scripts/locate_nvcloth.bat | 18 | ||||
| -rw-r--r-- | NvCloth/scripts/locate_px_shared.bat | 18 | ||||
| -rw-r--r-- | NvCloth/scripts/locate_tools.bat | 18 | ||||
| -rw-r--r-- | NvCloth/scripts/locate_win8sdk.bat | 18 | ||||
| -rw-r--r-- | NvCloth/scripts/locate_xpj.bat | 18 |
10 files changed, 201 insertions, 0 deletions
diff --git a/NvCloth/scripts/locate.bat b/NvCloth/scripts/locate.bat new file mode 100644 index 0000000..50610eb --- /dev/null +++ b/NvCloth/scripts/locate.bat @@ -0,0 +1,39 @@ +@echo off +setlocal enabledelayedexpansion + +set FOLDER_NEEDLE=%~2 +echo looking for ...\%FOLDER_NEEDLE%\ + +set FOLDER=%~dp0 +set LOOP_COUNT=1 +:rootloop +if exist "%FOLDER%%FOLDER_NEEDLE%" goto :haverootpath +set FOLDER=%FOLDER%..\ +set /a LOOP_COUNT=%LOOP_COUNT%+1 +if %LOOP_COUNT% GTR 50 (goto :error) +goto :rootloop + +:haverootpath +set FOLDER=%FOLDER%\%FOLDER_NEEDLE%\ +pushd %FOLDER% +set FOLDER=%CD% +popd +echo Found %FOLDER% +:manualfolder +set returnVal=%FOLDER% +goto :returnpath + + +:error +echo Couldn't find folder ...\%FOLDER_NEEDLE%\ +set returnVal=error\%FOLDER_NEEDLE% +pause +goto :returnpath + + +:returnpath + +( endlocal + set "%~1=%returnVal%" +) +goto :eof
\ No newline at end of file diff --git a/NvCloth/scripts/locate_cmake.bat b/NvCloth/scripts/locate_cmake.bat new file mode 100644 index 0000000..5154565 --- /dev/null +++ b/NvCloth/scripts/locate_cmake.bat @@ -0,0 +1,17 @@ +@echo off +setlocal enabledelayedexpansion + +echo The cmake bin path is hardcoded in %~dp0 change this locally if you installed cmake somewere else. +set FOLDER=C:\Program Files\CMake\bin +goto :manualfolder + +set FOLDER_NEEDLE=CMake\bin\cmake.exe + +call "%~dp0/locate.bat" FOLDER %FOLDER_NEEDLE% +:manualfolder +set returnVal=%FOLDER% + +( endlocal + set "%~1=%returnVal%" +) +goto :eof
\ No newline at end of file diff --git a/NvCloth/scripts/locate_cuda.bat b/NvCloth/scripts/locate_cuda.bat new file mode 100644 index 0000000..c6d7052 --- /dev/null +++ b/NvCloth/scripts/locate_cuda.bat @@ -0,0 +1,18 @@ +@echo off +setlocal enabledelayedexpansion + +rem use the following 2 lines to manually point to the google test folder \\sw\%FOLDER_NEEDLE% +set FOLDER=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0 +goto :manualfolder + +set FOLDER_NEEDLE=physx\externals\CUDA\8.0.44 +rem set FOLDER_NEEDLE=externals\CUDA\8.0.44 + +call "%~dp0/locate.bat" FOLDER %FOLDER_NEEDLE% +:manualfolder +set "returnVal=%FOLDER:\=/%" + +( endlocal + set "%~1=%returnVal%" +) +goto :eof
\ No newline at end of file diff --git a/NvCloth/scripts/locate_google_test.bat b/NvCloth/scripts/locate_google_test.bat new file mode 100644 index 0000000..60d1bb8 --- /dev/null +++ b/NvCloth/scripts/locate_google_test.bat @@ -0,0 +1,18 @@ +@echo off +setlocal enabledelayedexpansion + + +rem use the following 2 lines to manually point to the google test folder \\sw\%FOLDER_NEEDLE% +rem set FOLDER=E:\nx0\physx\externals\GoogleTest\gtest-1.4.0 +rem goto :manualfolder + +set FOLDER_NEEDLE=physx\externals\GoogleTest\gtest-1.4.0 + +call "%~dp0/locate.bat" FOLDER %FOLDER_NEEDLE% +:manualfolder +set returnVal=%FOLDER% + +( endlocal + set "%~1=%returnVal%" +) +goto :eof
\ No newline at end of file diff --git a/NvCloth/scripts/locate_gw_root.bat b/NvCloth/scripts/locate_gw_root.bat new file mode 100644 index 0000000..e8ea08c --- /dev/null +++ b/NvCloth/scripts/locate_gw_root.bat @@ -0,0 +1,19 @@ +@echo off +setlocal enabledelayedexpansion + + +rem use the following 2 lines to manually point to the google test folder \\sw\%FOLDER_NEEDLE% +rem set FOLDER=%~dp0/ +rem goto :manualfolder + +set FOLDER_NEEDLE=sw\physx +rem set FOLDER_NEEDLE=NvCloth\src + +call "%~dp0/locate.bat" FOLDER %FOLDER_NEEDLE% +:manualfolder +set returnVal=%FOLDER%\..\..\ + +( endlocal + set "%~1=%returnVal%" +) +goto :eof
\ No newline at end of file diff --git a/NvCloth/scripts/locate_nvcloth.bat b/NvCloth/scripts/locate_nvcloth.bat new file mode 100644 index 0000000..cc978e7 --- /dev/null +++ b/NvCloth/scripts/locate_nvcloth.bat @@ -0,0 +1,18 @@ +@echo off +setlocal enabledelayedexpansion + + +rem use the following 2 lines to manually point to the google test folder \\sw\%FOLDER_NEEDLE% +set FOLDER=%~dp0/../ +goto :manualfolder + +set FOLDER_NEEDLE=NvCloth + +call "%~dp0/locate.bat" FOLDER %FOLDER_NEEDLE% +:manualfolder +set returnVal=%FOLDER% + +( endlocal + set "%~1=%returnVal%" +) +goto :eof
\ No newline at end of file diff --git a/NvCloth/scripts/locate_px_shared.bat b/NvCloth/scripts/locate_px_shared.bat new file mode 100644 index 0000000..d3023dc --- /dev/null +++ b/NvCloth/scripts/locate_px_shared.bat @@ -0,0 +1,18 @@ +@echo off +setlocal enabledelayedexpansion + + +rem use the following 2 lines to manually point to the google test folder \\sw\%FOLDER_NEEDLE% +rem set FOLDER=E:\nx0\physx\PxShared\1.0\trunk +rem goto :manualfolder + +set FOLDER_NEEDLE=physx\PxShared\1.0\trunk + +call "%~dp0/locate.bat" FOLDER %FOLDER_NEEDLE% +:manualfolder +set returnVal=%FOLDER% + +( endlocal + set "%~1=%returnVal%" +) +goto :eof
\ No newline at end of file diff --git a/NvCloth/scripts/locate_tools.bat b/NvCloth/scripts/locate_tools.bat new file mode 100644 index 0000000..43c3572 --- /dev/null +++ b/NvCloth/scripts/locate_tools.bat @@ -0,0 +1,18 @@ +@echo off +setlocal enabledelayedexpansion + + +rem use the following 2 lines to manually point to the google test folder \\sw\%FOLDER_NEEDLE% +rem set FOLDER=E:\nx0\physx\PxShared\1.0\trunk +rem goto :manualfolder + +set FOLDER_NEEDLE=physx\tools + +call "%~dp0/locate.bat" FOLDER %FOLDER_NEEDLE% +:manualfolder +set returnVal=%FOLDER% + +( endlocal + set "%~1=%returnVal%" +) +goto :eof
\ No newline at end of file diff --git a/NvCloth/scripts/locate_win8sdk.bat b/NvCloth/scripts/locate_win8sdk.bat new file mode 100644 index 0000000..71ffa78 --- /dev/null +++ b/NvCloth/scripts/locate_win8sdk.bat @@ -0,0 +1,18 @@ +@echo off +setlocal enabledelayedexpansion + + +rem use the following 2 lines to manually point to the google test folder \\sw\%FOLDER_NEEDLE% +set FOLDER=C:\Program Files (x86)\Windows Kits\8.1 +goto :manualfolder + +set FOLDER_NEEDLE=tools\sdk\WinSDK\8.1 + +call "%~dp0/locate.bat" FOLDER %FOLDER_NEEDLE% +:manualfolder +set returnVal=%FOLDER% + +( endlocal + set "%~1=%returnVal%" +) +goto :eof
\ No newline at end of file diff --git a/NvCloth/scripts/locate_xpj.bat b/NvCloth/scripts/locate_xpj.bat new file mode 100644 index 0000000..bfc541f --- /dev/null +++ b/NvCloth/scripts/locate_xpj.bat @@ -0,0 +1,18 @@ +@echo off +setlocal enabledelayedexpansion + + +rem use the following 2 lines to manually point to the google test folder \\sw\%FOLDER_NEEDLE% +rem set FOLDER=E:\nx0\physx\buildtools\xpj\1\win32 +rem goto :manualfolder + +set FOLDER_NEEDLE=physx\buildtools\xpj\1\win32 + +call "%~dp0/locate.bat" FOLDER %FOLDER_NEEDLE% +:manualfolder +set returnVal=%FOLDER% + +( endlocal + set "%~1=%returnVal%" +) +goto :eof
\ No newline at end of file |