DescriptionThe gyp files don't have a way to refer to POSIX-like OS's as a group, so I defined os_posix, toolkit_uses_gtk, and use_x11 in common.gypi to handle them. I used something similar when porting Chromium 10 and 11 to OpenBSD and Solaris, plus a version of this patch has been tested on FreeBSD.
Chromium has also been built on other BSDs, so rather than adding each Unix to every gyp file individually every time another port is added, these broad defines can be used instead and modified with specific logic only where necessary.
I included a few modified gyp files so the usage can be seen. I also added sunos5 to some grd/html files and set the default host_arch on i86pc solaris to ia32.
BUG=0
TEST={}
Patch by ruben <chromium@hybridsource.org>.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=85154
Patch Set 1 #Patch Set 2 : changed os_nix to os_posix #
Total comments: 6
Patch Set 3 : added toolkit_gtk and use_x11, added mac to os_posix #Patch Set 4 : last couple tweaks #
Total comments: 10
Patch Set 5 : renamed to toolkit_uses_gtk and other fixes #
Total comments: 3
Patch Set 6 : fixed a nit #Patch Set 7 : whoops, fixed mistake #
Messages
Total messages: 26 (0 generated)
|