aboutsummaryrefslogtreecommitdiff
path: root/PxShared/generate_projects_linux.bat
diff options
context:
space:
mode:
authorMarijn Tamis <[email protected]>2018-05-03 18:22:48 +0200
committerMarijn Tamis <[email protected]>2018-05-03 18:22:48 +0200
commitca32c59a58d37c1822e185a2d5f3d0d3e8943593 (patch)
treeb06b9eec03f34344ef8fc31aa147b2714d3962ee /PxShared/generate_projects_linux.bat
parentForced rename of platform folders in cmake dir. Git didn't pick this up before. (diff)
downloadnvcloth-ca32c59a58d37c1822e185a2d5f3d0d3e8943593.tar.xz
nvcloth-ca32c59a58d37c1822e185a2d5f3d0d3e8943593.zip
NvCloth 1.1.4 Release. (24070740)
Diffstat (limited to 'PxShared/generate_projects_linux.bat')
-rw-r--r--PxShared/generate_projects_linux.bat21
1 files changed, 21 insertions, 0 deletions
diff --git a/PxShared/generate_projects_linux.bat b/PxShared/generate_projects_linux.bat
new file mode 100644
index 0000000..bd489d2
--- /dev/null
+++ b/PxShared/generate_projects_linux.bat
@@ -0,0 +1,21 @@
+:: Reset errorlevel status so we are not inheriting this state from the calling process:
+@call :CLEAN_EXIT
+
+@SET PXSHARED_ROOT_DIR=%~dp0
+@SET PXSHARED_ROOT_DIR=%PXSHARED_ROOT_DIR:\=/%
+
+:: Run packman to ensure dependencies are present and run cmake generation script afterwards
+@echo Running packman in preparation for cmake ...
+@echo/
+
+call "%~dp0buildtools\packman\packman.cmd" pull "%~dp0dependencies.xml" --platform linux-crosscompile --postscript "%~dp0buildtools\cmake_projects_linux.bat"
+@if %ERRORLEVEL% neq 0 (
+ @exit /b %errorlevel%
+) else (
+ @echo Success!
+ @goto CLEAN_EXIT
+)
+
+:CLEAN_EXIT
+@exit /b 0
+