myrao / libyuv

Automatically exported from code.google.com/p/libyuv
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

GN build #411

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
switch from gyp to GN build.
1. r991 added BUILD.gn, supporting chrome builds of libyuv via GN.
2. r1317 added setup support to allow stand alone GN builds

Next steps are switching all gyp build scripts to GN, improving functionality 
and documenting how to build with GN

Original issue reported on code.google.com by fbarch...@google.com on 10 Mar 2015 at 4:52

GoogleCodeExporter commented 9 years ago
Test of 32 bit Windows build
With GN
call gn gen out/Release "--args=is_debug=false target_cpu=\"x86\""
call gn gen out/Debug "--args=is_debug=true target_cpu=\"x86\""
ninja -C out/Release
ninja -C out/Debug
21.95 seconds

With GYP
set GYP_DEFINES=target_arch=ia32 libyuv_enable_svn=1
call python gyp_libyuv -fninja -G msvs_version=2013 libyuv_test.gyp
ninja -C out\Debug
ninja -C out\Release
24.97 seconds

Original comment by fbarch...@google.com on 10 Mar 2015 at 5:28

GoogleCodeExporter commented 9 years ago
Updated Getting Started for Windows
https://code.google.com/p/libyuv/wiki/GettingStarted

Original comment by fbarch...@chromium.org on 20 Mar 2015 at 10:39

GoogleCodeExporter commented 9 years ago
Does GN support different compilers?  vs2015 vs clang vs vs2013?

Original comment by fbarch...@google.com on 9 May 2015 at 2:40

GoogleCodeExporter commented 9 years ago
dpranke: do you know the answer to #3 above?

Original comment by kjellan...@google.com on 10 May 2015 at 1:30

GoogleCodeExporter commented 9 years ago
I don't think the win GN build supports clang yet.I believe vs2015 vs. vs2013 
*might* work, but I haven't tested it (we use pretty much the same underlying 
scripts to setup the toolchain for GN that we do for GYP).

I would cc' thakis and scottmg if I had edit rights on this :).

Original comment by dpra...@google.com on 11 May 2015 at 11:28

GoogleCodeExporter commented 9 years ago
+thakis, scottmg: Can you provide more info on #3 above?

Original comment by kjellan...@google.com on 12 May 2015 at 6:29

GoogleCodeExporter commented 9 years ago
No one that I know of has tested GN-clang. Even gyp-clang is still 
non-mainstream on Windows.

I would guess that vs2015 "might" work too. The compiler is not yet shipped, 
and there's no bots testing chrome. So if it works, it's by chance, and if it 
breaks, you get both pieces (for now).

Original comment by scottmg@chromium.org on 12 May 2015 at 4:56

GoogleCodeExporter commented 9 years ago
clang/win doesn't work in GN yet (see also the caveats at 
https://code.google.com/p/chromium/wiki/Clang#Windows ). I do want to look at 
that soon though.

Original comment by thakis@chromium.org on 12 May 2015 at 6:57