2018-05-14 20:32:05 +03:00
|
|
|
@echo off
|
2018-03-30 04:50:09 +03:00
|
|
|
echo Creating SKU %1 ...
|
|
|
|
|
|
|
|
set DST_NAME=%1
|
|
|
|
set SRC_NAME=%2
|
|
|
|
set MSC_VER=%3
|
|
|
|
|
2018-05-14 20:32:05 +03:00
|
|
|
set REL_SRC=%SRCDIR%\Release
|
|
|
|
set DBG_SRC=%SRCDIR%\Debug
|
2018-03-30 04:50:09 +03:00
|
|
|
|
|
|
|
if "%3" == "" GOTO proceed
|
|
|
|
set REL_SRC=%REL_SRC%.%3
|
|
|
|
set DBG_SRC=%DBG_SRC%.%3
|
|
|
|
|
|
|
|
:proceed
|
|
|
|
|
|
|
|
echo Release = %REL_SRC%
|
|
|
|
echo Debug = %DBG_SRC%
|
|
|
|
|
2018-05-14 20:32:05 +03:00
|
|
|
if exist "%REL_SRC%\Win32\%SRC_NAME%" (
|
|
|
|
robocopy %REL_SRC%\Win32\%SRC_NAME% "%OUTDIR%\lib\%DST_NAME%\x86\Release" *.pri *.winmd *.dll *.pdb *.lib *.map *.exp
|
|
|
|
robocopy %DBG_SRC%\Win32\%SRC_NAME% "%OUTDIR%\lib\%DST_NAME%\x86\Debug" *.pri *.winmd *.dll *.pdb *.lib *.map *.exp
|
2018-03-30 04:50:09 +03:00
|
|
|
)
|
|
|
|
|
2018-05-14 20:32:05 +03:00
|
|
|
if exist "%REL_SRC%\x64\%SRC_NAME%" (
|
|
|
|
robocopy %REL_SRC%\x64\%SRC_NAME% "%OUTDIR%\lib\%DST_NAME%\x64\Release" *.pri *.winmd *.dll *.pdb *.lib *.map *.exp
|
|
|
|
robocopy %DBG_SRC%\x64\%SRC_NAME% "%OUTDIR%\lib\%DST_NAME%\x64\Debug" *.pri *.winmd *.dll *.pdb *.lib *.map *.exp
|
2018-03-30 04:50:09 +03:00
|
|
|
)
|
|
|
|
|
2018-05-14 20:32:05 +03:00
|
|
|
if exist "%REL_SRC%\ARM\%SRC_NAME%" (
|
|
|
|
robocopy %REL_SRC%\ARM\%SRC_NAME% "%OUTDIR%\lib\%DST_NAME%\ARM\Release" *.pri *.winmd *.dll *.pdb *.lib *.map *.exp
|
|
|
|
robocopy %DBG_SRC%\ARM\%SRC_NAME% "%OUTDIR%\lib\%DST_NAME%\ARM\Debug" *.pri *.winmd *.dll *.pdb *.lib *.map *.exp
|
2018-03-30 04:50:09 +03:00
|
|
|
)
|