OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 ## | 2 ## |
3 ## Copyright (c) 2013 The WebM project authors. All Rights Reserved. | 3 ## Copyright (c) 2013 The WebM project authors. All Rights Reserved. |
4 ## | 4 ## |
5 ## Use of this source code is governed by a BSD-style license | 5 ## Use of this source code is governed by a BSD-style license |
6 ## that can be found in the LICENSE file in the root of the source | 6 ## that can be found in the LICENSE file in the root of the source |
7 ## tree. An additional intellectual property rights grant can be found | 7 ## tree. An additional intellectual property rights grant can be found |
8 ## in the file PATENTS. All contributing project authors may | 8 ## in the file PATENTS. All contributing project authors may |
9 ## be found in the AUTHORS file in the root of the source tree. | 9 ## be found in the AUTHORS file in the root of the source tree. |
10 ## | 10 ## |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 tag_content Outputs "\$(IntDir)$objf" \ | 167 tag_content Outputs "\$(IntDir)$objf" \ |
168 Condition="'\$(Configuration)|\$(Platform)'=='$c
fg|$plat'" | 168 Condition="'\$(Configuration)|\$(Platform)'=='$c
fg|$plat'" |
169 done | 169 done |
170 done | 170 done |
171 close_tag CustomBuild | 171 close_tag CustomBuild |
172 elif [ "$pat" == "c" ] || [ "$pat" == "cc" ] ; then | 172 elif [ "$pat" == "c" ] || [ "$pat" == "cc" ] ; then |
173 open_tag ClCompile \ | 173 open_tag ClCompile \ |
174 Include=".\\$f" | 174 Include=".\\$f" |
175 # Separate file names with Condition? | 175 # Separate file names with Condition? |
176 tag_content ObjectFileName "\$(IntDir)$objf" | 176 tag_content ObjectFileName "\$(IntDir)$objf" |
| 177 # Check for AVX and turn it on to avoid warnings. |
| 178 if [[ $f =~ avx.?\.c$ ]]; then |
| 179 tag_content AdditionalOptions "/arch:AVX" |
| 180 fi |
177 close_tag ClCompile | 181 close_tag ClCompile |
178 elif [ "$pat" == "h" ] ; then | 182 elif [ "$pat" == "h" ] ; then |
179 tag ClInclude \ | 183 tag ClInclude \ |
180 Include=".\\$f" | 184 Include=".\\$f" |
181 elif [ "$pat" == "vcxproj" ] ; then | 185 elif [ "$pat" == "vcxproj" ] ; then |
182 open_tag ProjectReference \ | 186 open_tag ProjectReference \ |
183 Include="$f" | 187 Include="$f" |
184 depguid=`grep ProjectGuid "$f" | sed 's,.*<.*>\(.*\)</.*>.*,
\1,'` | 188 depguid=`grep ProjectGuid "$f" | sed 's,.*<.*>\(.*\)</.*>.*,
\1,'` |
185 tag_content Project "$depguid" | 189 tag_content Project "$depguid" |
186 tag_content ReferenceOutputAssembly false | 190 tag_content ReferenceOutputAssembly false |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 } | 539 } |
536 | 540 |
537 # This regexp doesn't catch most of the strings in the vcxproj format, | 541 # This regexp doesn't catch most of the strings in the vcxproj format, |
538 # since they're like <tag>path</tag> instead of <tag attr="path" /> | 542 # since they're like <tag>path</tag> instead of <tag attr="path" /> |
539 # as previously. It still seems to work ok despite this. | 543 # as previously. It still seems to work ok despite this. |
540 generate_vcxproj | | 544 generate_vcxproj | |
541 sed -e '/"/s;\([^ "]\)/;\1\\;g' | | 545 sed -e '/"/s;\([^ "]\)/;\1\\;g' | |
542 sed -e '/xmlns/s;\\;/;g' > ${outfile} | 546 sed -e '/xmlns/s;\\;/;g' > ${outfile} |
543 | 547 |
544 exit | 548 exit |
OLD | NEW |