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

Issue 443011: Refactor OS-dependent filename exclusion patterns (Closed)

Created:
11 years ago by Evan Martin
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Refactor OS-dependent filename exclusion patterns Rather than duplicate logic in the tree, merge all of the shared rules about patterns in filenames into one common set. The pattern is: "if (OS != x): exclude x's files." This is especially needed for upcoming changes that bring in a few more platform-specific (FreeBSD, OpenBSD, Solaris(?)) files. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=33160

Patch Set 1 #

Patch Set 2 : cleanups #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -92 lines) Patch
M app/app.gyp View 1 1 chunk +0 lines, -27 lines 0 comments Download
M base/base.gyp View 6 chunks +1 line, -34 lines 0 comments Download
build/common.gypi View 1 2 chunks +33 lines, -1 line 2 comments Download
M chrome/chrome.gyp View 1 chunk +0 lines, -30 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Evan Martin
11 years ago (2009-11-25 23:17:40 UTC) #1
bradn
Excellent idea! LGTM
11 years ago (2009-11-25 23:21:07 UTC) #2
Mark Mentovai
11 years ago (2009-11-26 05:54:07 UTC) #3
LGTM

http://codereview.chromium.org/443011/diff/1001/2003
File build/common.gypi (right):

http://codereview.chromium.org/443011/diff/1001/2003#newcode927
build/common.gypi:927: ['exclude', '/win_[^/]*\\.cc$'] ],
I would have turned the * into a + here and on line 937.

http://codereview.chromium.org/443011/diff/1001/2003#newcode930
build/common.gypi:930: 'sources/': [ ['exclude',
'_(cocoa|mac)(_unittest)?\\.cc$'],
I'm surprised the exclude for '/cocoa/' (directories named cocoa) is missing.  I
guess everything in that directory is an .mm file?

Powered by Google App Engine
This is Rietveld 408576698