Salome HOME
spns #23875 : URANIE Windows build
[tools/sat_salome.git] / products / compil_scripts / cppunit.bat
index 53e6e279a953d2a9eb55f1ad25a92959328c751a..a2a1628445cdc8604c1959b16393c3d602ce412b 100755 (executable)
@@ -8,6 +8,11 @@ IF NOT DEFINED SAT_DEBUG (
   SET SAT_DEBUG=0\r
 )\r
 \r
+set PLATFORM_TARGET=x64\r
+if defined SALOME_APPLICATION_NAME if %SALOME_APPLICATION_NAME% == URANIE (\r
+  set PLATFORM_TARGET=Win32\r
+)\r
+\r
 SET PRODUCT_BUILD_TYPE=Release\r
 REM TODO: NGH: not Tested yet\r
 if %SAT_DEBUG% == 1 (\r
@@ -42,30 +47,30 @@ if NOT %ERRORLEVEL% == 0 (
 \r
 echo.\r
 echo -------------------------------------------------------------------------------\r
-echo msbuild cppunit.vcxproj %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=x64\r
+echo msbuild cppunit.vcxproj %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=%PLATFORM_TARGET%\r
 echo -------------------------------------------------------------------------------\r
 \r
 cd %BUILD_DIR%\src\cppunit\r
 \r
-msbuild cppunit.vcxproj %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=x64\r
+msbuild cppunit.vcxproj %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=%PLATFORM_TARGET%\r
 if NOT %ERRORLEVEL% == 0 (\r
     echo ERROR on msbuild\r
     exit 21\r
 )\r
 \r
-msbuild cppunit.vcxproj %MAKE_OPTIONS% /p:Configuration=Debug /p:TargetName=cppunitd \r
+msbuild cppunit.vcxproj %MAKE_OPTIONS% /p:Configuration=Debug /p:TargetName=cppunitd /p:Platform=%PLATFORM_TARGET%\r
 if NOT %ERRORLEVEL% == 0 (\r
     echo ERROR on msbuild\r
     exit 22\r
 )\r
 \r
-msbuild cppunit_dll.vcxproj %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=x64\r
+msbuild cppunit_dll.vcxproj %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=%PLATFORM_TARGET%\r
 if NOT %ERRORLEVEL% == 0 (\r
     echo ERROR on msbuild\r
     exit 23\r
 )\r
 \r
-msbuild cppunit_dll.vcxproj %MAKE_OPTIONS% /p:Configuration=Debug /p:TargetName=cppunitd_dll /p:Platform=x64\r
+msbuild cppunit_dll.vcxproj %MAKE_OPTIONS% /p:Configuration=Debug /p:TargetName=cppunitd_dll /p:Platform=%PLATFORM_TARGET%\r
 if NOT %ERRORLEVEL% == 0 (\r
     echo ERROR on msbuild\r
     exit 24\r
@@ -91,4 +96,4 @@ if NOT %ERRORLEVEL% == 0 (
 taskkill /F /IM "mspdbsrv.exe"\r
 \r
 echo.\r
-echo ########## END
\ No newline at end of file
+echo ########## END\r