<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 3, 2017 at 11:06 AM, <span dir="ltr"><<a href="mailto:mahesh@multicorewareinc.com" target="_blank">mahesh@multicorewareinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""># HG changeset patch<br>
# User Mahesh Pittala <<a href="mailto:mahesh@multicorewareinc.com">mahesh@multicorewareinc.com</a>><br>
# Date 1509605249 -19800<br>
# Thu Nov 02 12:17:29 2017 +0530<br>
</span># Node ID 0b3a6aa6c3155afbe8cc2e3048aa22<wbr>95243a3434<br>
<span class=""># Parent df2de6ea407dde32cf957779e0b2e1<wbr>9624163268<br>
cross compile visual studio builds from msys bash shell<br>
<br>
x265 already supports native visual studio builds but if some one wants to<br>
integrate visual studio builds to the ffmpeg, they can generate from MinGw.<br>
Here, it sets all required environment variables.<br>
<br>
Build procedure:<br>
For 32 bit - launch msys bash shell from 'visual studio command prompt'<br>
and run make-Makefiles.sh<br>
<br>
For 64 bit - launch 'visual studio command prompt' and run '..\vcvarsall.bat amd64 | x86_amd64 | x86_arm | amd64_x86'<br>
and then launch msys bash shell and run ./make-Makefiles-64bit.sh<br></span></blockquote><div><br></div><div>Pushed to default branch. Thanks</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
</span>diff -r df2de6ea407d -r 0b3a6aa6c315 build/msys-cl/make-Makefiles-<wbr>64bit.sh<br>
<div><div class="h5">--- /dev/null Thu Jan 01 00:00:00 1970 +0000<br>
+++ b/build/msys-cl/make-<wbr>Makefiles-64bit.sh Thu Nov 02 12:17:29 2017 +0530<br>
@@ -0,0 +1,27 @@<br>
+#!/bin/sh<br>
+# This is to generate visual studio builds with required environment variables set in this shell, useful for ffmpeg integration<br>
+# Run this from within an MSYS bash shell<br>
+<br>
+target_processor='amd64'<br>
+path=$(which cl)<br>
+<br>
+if cl; then<br>
+ echo<br>
+else<br>
+ echo "please launch 'visual studio command prompt' and run '..\vcvarsall.bat amd64'"<br>
+ echo "and then launch msys bash shell from there"<br>
+ exit 1<br>
+fi<br>
+<br>
+if [[ $path == *$target_processor* ]]; then<br>
+ echo<br>
+else<br>
+ echo "64 bit target not set, please launch 'visual studio command prompt' and run '..\vcvarsall.bat amd64 | x86_amd64 | amd64_x86'"<br>
+ exit 1<br>
+fi<br>
+<br>
+cmake -G "NMake Makefiles" -DCMAKE_CXX_FLAGS="-DWIN32 -D_WINDOWS -W4 -GR -EHsc" -DCMAKE_C_FLAGS="-DWIN32 -D_WINDOWS -W4" ../../source<br>
</div></div><span class="">+if [ -e Makefile ]<br>
+then<br>
+ nmake<br>
+fi<br>
\ No newline at end of file<br>
</span>diff -r df2de6ea407d -r 0b3a6aa6c315 build/msys-cl/make-Makefiles.<wbr>sh<br>
<span class="im HOEnZb">--- /dev/null Thu Jan 01 00:00:00 1970 +0000<br>
+++ b/build/msys-cl/make-<wbr>Makefiles.sh Thu Nov 02 12:17:29 2017 +0530<br>
@@ -0,0 +1,17 @@<br>
+#!/bin/sh<br>
+# This is to generate visual studio builds with required environment variables set in this shell, useful for ffmpeg integration<br>
+# Run this from within an MSYS bash shell<br>
+<br>
+if cl; then<br>
+ echo<br>
+else<br>
+ echo "please launch msys from 'visual studio command prompt'"<br>
+ exit 1<br>
+fi<br>
+<br>
+cmake -G "NMake Makefiles" -DCMAKE_CXX_FLAGS="-DWIN32 -D_WINDOWS -W4 -GR -EHsc" -DCMAKE_C_FLAGS="-DWIN32 -D_WINDOWS -W4" ../../source<br>
</span><div class="HOEnZb"><div class="h5">+<br>
+if [ -e Makefile ]<br>
+then<br>
+ nmake<br>
+fi<br>
\ No newline at end of file<br>
</div></div><br>______________________________<wbr>_________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/<wbr>listinfo/x265-devel</a><br>
<br></blockquote></div><br></div></div>