Commit 3b39d750 authored by James Zern's avatar James Zern Committed by Gerrit Code Review
Browse files

Merge "gen_msvs_*proj.sh: add 'cpp' as a source extension"

Showing with 6 additions and 4 deletions
...@@ -162,7 +162,8 @@ generate_filter() { ...@@ -162,7 +162,8 @@ generate_filter() {
done done
done done
fi fi
if [ "$pat" == "c" ] || [ "$pat" == "cc" ] ; then if [ "$pat" == "c" ] || \
[ "$pat" == "cc" ] || [ "$pat" == "cpp" ]; then
for plat in "${platforms[@]}"; do for plat in "${platforms[@]}"; do
for cfg in Debug Release; do for cfg in Debug Release; do
open_tag FileConfiguration \ open_tag FileConfiguration \
...@@ -561,7 +562,7 @@ generate_vcproj() { ...@@ -561,7 +562,7 @@ generate_vcproj() {
close_tag Configurations close_tag Configurations
open_tag Files open_tag Files
generate_filter srcs "Source Files" "c;cc;def;odl;idl;hpj;bat;asm;asmx" generate_filter srcs "Source Files" "c;cc;cpp;def;odl;idl;hpj;bat;asm;asmx"
generate_filter hdrs "Header Files" "h;hm;inl;inc;xsd" generate_filter hdrs "Header Files" "h;hm;inl;inc;xsd"
generate_filter resrcs "Resource Files" "rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" generate_filter resrcs "Resource Files" "rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
generate_filter resrcs "Build Files" "mk" generate_filter resrcs "Build Files" "mk"
......
...@@ -174,7 +174,8 @@ generate_filter() { ...@@ -174,7 +174,8 @@ generate_filter() {
done done
done done
close_tag CustomBuild close_tag CustomBuild
elif [ "$pat" == "c" ] || [ "$pat" == "cc" ] ; then elif [ "$pat" == "c" ] || \
[ "$pat" == "cc" ] || [ "$pat" == "cpp" ]; then
open_tag ClCompile \ open_tag ClCompile \
Include=".\\$f" Include=".\\$f"
# Separate file names with Condition? # Separate file names with Condition?
...@@ -524,7 +525,7 @@ generate_vcxproj() { ...@@ -524,7 +525,7 @@ generate_vcxproj() {
done done
open_tag ItemGroup 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 close_tag ItemGroup
open_tag ItemGroup open_tag ItemGroup
generate_filter "Header Files" "h;hm;inl;inc;xsd" generate_filter "Header Files" "h;hm;inl;inc;xsd"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment