Aegisub/build/ffmpeg/get-file-list.sh

14 lines
346 B
Bash
Raw Normal View History

rm -f make-dry
make -n > make-dry
grep '^cl' make-dry \
| sed 's/.*\(lib[^ ]*.c\) .*/\1/' \
| sed 's/\//\\/g' \
| sed 's/\(.*\)/<ClCompile Include="$(FfmpegSrcDir)\\\1" \/>/' \
| sort
echo
grep '^yasm' make-dry \
| sed 's/.*\(lib[^ ]*.asm\) .*/\1/' \
| sed 's/\//\\/g' \
| sed 's/\(.*\)/<Yasm Include="$(FfmpegSrcDir)\\\1" \/>/' \
| sort