Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Issue 6965007: Define os_posix in gyp files to get new Unix platforms added quickly (Closed)

Created:
9 years, 7 months ago by ruben
Modified:
9 years, 7 months ago
CC:
chromium-reviews, arv (Not doing code reviews), brettw-cc_chromium.org
Visibility:
Public.

Description

The 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -47 lines) Patch
M app/app.gyp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M app/app_base.gypi View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M app/resources/app_resources.grd View 4 chunks +4 lines, -4 lines 0 comments Download
M base/allocator/allocator.gyp View 1 chunk +1 line, -1 line 0 comments Download
M base/base.gyp View 1 2 3 4 5 chunks +5 lines, -5 lines 0 comments Download
M base/base.gypi View 1 2 3 4 5 6 5 chunks +7 lines, -7 lines 0 comments Download
M build/all.gyp View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M build/common.gypi View 1 2 3 4 5 6 11 chunks +41 lines, -16 lines 0 comments Download
M build/features_override.gypi View 1 chunk +1 line, -1 line 0 comments Download
M build/linux/system.gyp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M build/temp_gyp/googleurl.gyp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/options/personal_options.html View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 26 (0 generated)
ruben
I've added a define for cross-Unix support to the gyp files. It was suggested that ...
9 years, 7 months ago (2011-05-09 07:42:39 UTC) #1
Mark Mentovai
In C++ macro-land, we call this OS_POSIX, and in filename-land, we automatically include files ending ...
9 years, 7 months ago (2011-05-09 13:52:53 UTC) #2
ruben
On 2011/05/09 13:52:53, Mark Mentovai wrote: > In C++ macro-land, we call this OS_POSIX, and ...
9 years, 7 months ago (2011-05-09 19:48:49 UTC) #3
Mark Mentovai
http://codereview.chromium.org/6965007/diff/4001/app/app.gyp File app/app.gyp (right): http://codereview.chromium.org/6965007/diff/4001/app/app.gyp#newcode1 app/app.gyp:1: # Copyright (c) 2010 The Chromium Authors. All rights ...
9 years, 7 months ago (2011-05-09 19:54:49 UTC) #4
ruben
On 2011/05/09 19:48:49, ruben wrote: > OK, it's os_posix now. Oh, just so we're clear ...
9 years, 7 months ago (2011-05-09 19:55:19 UTC) #5
ruben
On 2011/05/09 19:54:49, Mark Mentovai wrote: > http://codereview.chromium.org/6965007/diff/4001/build/common.gypi#newcode47 > build/common.gypi:47: 'os_posix%': 1, > Now we’re ...
9 years, 7 months ago (2011-05-09 19:59:22 UTC) #6
Mark Mentovai
If the features all fall into a few big buckets like “gtk” and “x11”, you ...
9 years, 7 months ago (2011-05-09 20:01:19 UTC) #7
ruben
On 2011/05/09 20:01:19, Mark Mentovai wrote: > If the features all fall into a few ...
9 years, 7 months ago (2011-05-09 20:13:13 UTC) #8
tony
http://codereview.chromium.org/6965007/diff/4001/app/resources/app_resources.grd File app/resources/app_resources.grd (right): http://codereview.chromium.org/6965007/diff/4001/app/resources/app_resources.grd#newcode21 app/resources/app_resources.grd:21: <if expr="not pp_ifdef('toolkit_views') and (os == 'linux2' or os.find('bsd') ...
9 years, 7 months ago (2011-05-09 20:13:17 UTC) #9
Mark Mentovai
I think it’s best to mimic the logic we use elsewhere, since it’s well-understood and ...
9 years, 7 months ago (2011-05-09 20:16:07 UTC) #10
ruben
On 2011/05/09 20:16:07, Mark Mentovai wrote: > I think it’s best to mimic the logic ...
9 years, 7 months ago (2011-05-10 07:41:09 UTC) #11
Mark Mentovai
Much improved. Have you signed the CLA? http://code.google.com/legal/individual-cla-v1.0.html if you’re an individual contributor, or http://code.google.com/legal/corporate-cla-v1.0.html ...
9 years, 7 months ago (2011-05-10 14:20:27 UTC) #12
tony
Evan tells me that in build/build_config.h, we have TOOLKIT_GTK and TOOLKIT_VIEWS, which are mutually exclusive. ...
9 years, 7 months ago (2011-05-10 17:16:28 UTC) #13
ruben
On 2011/05/10 14:20:27, Mark Mentovai wrote: > Have you signed the CLA? I signed the ...
9 years, 7 months ago (2011-05-10 21:40:39 UTC) #14
Mark Mentovai
I can’t find your CLA on file and I don’t see you in the AUTHORS ...
9 years, 7 months ago (2011-05-10 21:45:09 UTC) #15
ruben
On 2011/05/10 21:45:09, Mark Mentovai wrote: > I can’t find your CLA on file and ...
9 years, 7 months ago (2011-05-10 22:03:44 UTC) #16
tony
I defer final judgement to Mark, but looks fine to me. http://codereview.chromium.org/6965007/diff/10006/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): ...
9 years, 7 months ago (2011-05-10 22:14:26 UTC) #17
Mark Mentovai
Fix Tony’s nits too and I think we’ll be good to go. http://codereview.chromium.org/6965007/diff/10006/base/base.gypi File base/base.gypi ...
9 years, 7 months ago (2011-05-10 22:19:00 UTC) #18
ruben
On 2011/05/10 22:14:26, tony wrote: > http://codereview.chromium.org/6965007/diff/10006/base/allocator/allocator.gyp#newcode312 > base/allocator/allocator.gyp:312: ['OS=="linux" or OS=="freebsd" or > OS=="solaris"', ...
9 years, 7 months ago (2011-05-10 22:30:25 UTC) #19
ruben
On 2011/05/10 22:19:00, Mark Mentovai wrote: > Fix Tony’s nits too and I think we’ll ...
9 years, 7 months ago (2011-05-10 23:09:54 UTC) #20
ruben
On 2011/05/10 22:19:00, Mark Mentovai wrote: > http://codereview.chromium.org/6965007/diff/10006/base/base.gypi#newcode357 > base/base.gypi:357: [ 'OS=="win" or OS=="mac"', { ...
9 years, 7 months ago (2011-05-10 23:16:16 UTC) #21
Mark Mentovai
LGTM. You can try the “commit” button at your leisure.
9 years, 7 months ago (2011-05-11 16:36:55 UTC) #22
commit-bot: I haz the power
Presubmit check for 6965007-17002 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 7 months ago (2011-05-12 02:02:46 UTC) #23
ruben
On 2011/05/12 02:02:46, commit-bot wrote: > ** Presubmit Warnings ** > Found lines longer than ...
9 years, 7 months ago (2011-05-12 02:14:57 UTC) #24
Mark Mentovai
I’ve got the try bots crankin’.
9 years, 7 months ago (2011-05-12 16:57:31 UTC) #25
Mark Mentovai
9 years, 7 months ago (2011-05-12 18:19:20 UTC) #26
Committed r85154, thanks!

Powered by Google App Engine
This is Rietveld 408576698