Index: source/libvpx/build/make/gen_msvs_vcxproj.sh |
=================================================================== |
--- source/libvpx/build/make/gen_msvs_vcxproj.sh (revision 263011) |
+++ source/libvpx/build/make/gen_msvs_vcxproj.sh (working copy) |
@@ -28,6 +28,7 @@ |
--lib Generate a project for creating a static library |
--dll Generate a project for creating a dll |
--static-crt Use the static C runtime (/MT) |
+ --enable-werror Treat warnings as errors (/WX) |
--target=isa-os-cc Target specifier (required) |
--out=filename Write output to a file [stdout] |
--name=project_name Name of the project (required) |
@@ -173,7 +174,8 @@ |
done |
done |
close_tag CustomBuild |
- elif [ "$pat" == "c" ] || [ "$pat" == "cc" ] ; then |
+ elif [ "$pat" == "c" ] || \ |
+ [ "$pat" == "cc" ] || [ "$pat" == "cpp" ]; then |
open_tag ClCompile \ |
Include=".\\$f" |
# Separate file names with Condition? |
@@ -233,6 +235,8 @@ |
;; |
--static-crt) use_static_runtime=true |
;; |
+ --enable-werror) werror=true |
+ ;; |
--ver=*) |
vs_ver="$optval" |
case "$optval" in |
@@ -492,7 +496,9 @@ |
tag_content PreprocessorDefinitions "WIN32;$debug;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE$extradefines;%(PreprocessorDefinitions)" |
tag_content RuntimeLibrary $runtime |
tag_content WarningLevel Level3 |
- # DebugInformationFormat |
+ if ${werror:-false}; then |
+ tag_content TreatWarningAsError true |
+ fi |
close_tag ClCompile |
case "$proj_kind" in |
exe) |
@@ -519,7 +525,7 @@ |
done |
open_tag ItemGroup |
- generate_filter "Source Files" "c;cc;def;odl;idl;hpj;bat;asm;asmx;s" |
+ generate_filter "Source Files" "c;cc;cpp;def;odl;idl;hpj;bat;asm;asmx;s" |
close_tag ItemGroup |
open_tag ItemGroup |
generate_filter "Header Files" "h;hm;inl;inc;xsd" |