Browse Source

Address feedback

Signed-off-by: Liu <[email protected]>
Liu 4 years ago
parent
commit
9fd26ec15a

+ 12 - 0
package-system/AWSNativeSDK/build_AWSNativeSDK_windows.cmd

@@ -14,15 +14,27 @@ call::GenerateCommonCMakeArgs CMAKE_COMMON_ARGS
 
 REM Debug Shared
 call:ConfigureAndBuild Debug Shared
+IF %ERRORLEVEL% NEQ 0 (
+    exit /b 1
+)
 
 REM Debug Static
 call:ConfigureAndBuild Debug Static
+IF %ERRORLEVEL% NEQ 0 (
+    exit /b 1
+)
 
 REM Release Shared
 call:ConfigureAndBuild Release Shared
+IF %ERRORLEVEL% NEQ 0 (
+    exit /b 1
+)
 
 REM Release Static
 call:ConfigureAndBuild Release Static
+IF %ERRORLEVEL% NEQ 0 (
+    exit /b 1
+)
 
 ECHO "Custom Build for AWSNativeSDK finished successfully"
 exit /b 0

+ 6 - 0
package-system/AWSNativeSDK/install_AWSNativeSDK_windows.cmd

@@ -36,6 +36,9 @@ IF %ERRORLEVEL% NEQ 0 (
     exit /b 1
 )
 call:CopyDynamicAndStaticLibs "Debug"
+IF %ERRORLEVEL% NEQ 0 (
+    exit /b 1
+)
 
 REM CMake Install Release and 3rdParty
 ECHO "CMake Install Release Shared to %INST_PATH%"
@@ -52,6 +55,9 @@ IF %ERRORLEVEL% NEQ 0 (
     exit /b 1
 )
 call:CopyDynamicAndStaticLibs "Release"
+IF %ERRORLEVEL% NEQ 0 (
+    exit /b 1
+)
 
 REM Copy include headers
 ECHO "Copying include headers to %OUT_INCLUDE_PATH%"