diff options
author | lateralusX <lateralusx.github@gmail.com> | 2016-04-12 15:13:03 +0300 |
---|---|---|
committer | lateralusX <lateralusx.github@gmail.com> | 2016-06-15 10:40:06 +0300 |
commit | c371f4f33c612770fc1265f5b69e35df2ba29a1f (patch) | |
tree | 57cea51532ead0e619a5fc533b60bd2a94ee0f41 /msvc/package.bat | |
parent | 01551beda67cddfd502e26b7df5e3d1c99d7d45d (diff) |
Restructured build/package/install targets and split GC libraries.
* Added package/install targets.
* Moved sgen into separate library.
* SGEN set as default GC for build (used GC controlled through mono.props).
Diffstat (limited to 'msvc/package.bat')
-rw-r--r-- | msvc/package.bat | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/msvc/package.bat b/msvc/package.bat new file mode 100644 index 00000000000..85ae35f0f5d --- /dev/null +++ b/msvc/package.bat @@ -0,0 +1,48 @@ +@ECHO off + +IF "" == "%1" ( + ECHO Error: No platform parameter set. + GOTO ON_ERROR +) + +IF "" == "%2" ( + ECHO Error: No configuration parameter set. + GOTO ON_ERROR +) + +IF NOT EXIST .\%1\lib\%2 ( + ECHO Error: No lib directory available for %1 %2. Any build availalbe for platform, configuration pair? + GOTO ON_ERROR +) + +IF NOT EXIST .\%1\bin\%2 ( + ECHO Error: No bin directory available for %1 %2. Any build availalbe for platform, configuration pair? + GOTO ON_ERROR +) + +SET PACKAGE_DIR=.\package\%1\%2 + +ECHO Packaging mono build %1 %2 into '%PACKAGE_DIR%' ... + +IF EXIST %PACKAGE_DIR% rmdir %PACKAGE_DIR% /s /q +mkdir %PACKAGE_DIR% +mkdir %PACKAGE_DIR%\include\mono-2.0 +xcopy .\include\*.* %PACKAGE_DIR%\include\mono-2.0\ /s /e /q /y > nul + +xcopy .\%1\lib\%2\*.lib %PACKAGE_DIR%\lib\ /s /e /q /y > nul +xcopy .\%1\lib\%2\*.pdb %PACKAGE_DIR%\lib\ /s /e /q /y > nul + +xcopy .\%1\bin\%2\*.exe %PACKAGE_DIR%\bin\ /s /e /q /y > nul +xcopy .\%1\bin\%2\*.dll %PACKAGE_DIR%\bin\ /s /e /q /y > nul +xcopy .\%1\bin\%2\*.pdb %PACKAGE_DIR%\bin\ /s /e /q /y > nul +xcopy .\%1\bin\%2\*.lib %PACKAGE_DIR%\bin\ /s /e /q /y > nul + +ECHO Packaging of mono build %1 %2 into '%PACKAGE_DIR%' DONE. + +EXIT /b 0 + +:ON_ERROR + ECHO "package.bat [win32|x64] [Debug|Release]" + EXIT /b 1 + +@ECHO on |