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

Issue 153223002: Use gyp targets to link in X11 libraries instead of setting -lXfoo (Closed)

Created:
6 years, 10 months ago by jamesr
Modified:
6 years, 10 months ago
CC:
chromium-reviews, ben+aura_chromium.org, oshima+watch_chromium.org, hguihot+watch_chromium.org, amit, garykac+watch_chromium.org, sadrul, stevenjb+watch_chromium.org, miu+watch_chromium.org, dcaiafa+watch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, kalyank, hubbe+watch_chromium.org, mikhal+watch_chromium.org, wez+watch_chromium.org, jasonroberts+watch_google.com, sanjeevr, feature-media-reviews_chromium.org, rmsousa+watch_chromium.org, weitaosu+watch_chromium.org, sergeyu+watch_chromium.org, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, pwestin+watch_google.com, lambroslambrou+watch_chromium.org, alexeypa+watch_chromium.org
Visibility:
Public.

Description

Use gyp targets to link in X11 libraries instead of setting -lXfoo This sets up gyp targets for the various X11 libraries we use and uses pkg-config to determine the correct cflags/ldflags incantations to use to link against them instead of listing out -lXfoo lines in libraries sections in gyp targets throughout the tree. This is more likely to generate the right lines and makes the dependencies a bit more explicit. BUG=339518 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=248939

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : address feedback, try to fix cros_x86 gyp error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -105 lines) Patch
M build/linux/system.gyp View 1 2 2 chunks +128 lines, -34 lines 0 comments Download
M chrome/chrome_common.gypi View 1 chunk +3 lines, -3 lines 0 comments Download
M chromeos/chromeos.gyp View 1 chunk +4 lines, -8 lines 0 comments Download
M content/content_common.gypi View 1 chunk +3 lines, -5 lines 0 comments Download
M content/content_plugin.gypi View 1 chunk +3 lines, -10 lines 0 comments Download
M media/cast/cast.gyp View 1 chunk +4 lines, -4 lines 0 comments Download
M media/media.gyp View 2 chunks +10 lines, -16 lines 0 comments Download
M remoting/remoting_host.gypi View 1 chunk +6 lines, -6 lines 0 comments Download
M ui/aura/aura.gyp View 1 1 chunk +6 lines, -8 lines 0 comments Download
M ui/gl/gl.gyp View 1 chunk +5 lines, -0 lines 0 comments Download
M ui/ui.gyp View 1 1 chunk +6 lines, -8 lines 0 comments Download
M ui/views/views.gyp View 1 1 chunk +6 lines, -0 lines 0 comments Download
M webkit/common/webkit_common.gyp View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
jamesr
This tries to sort out the X11 dependencies / link lines a bit by declaring ...
6 years, 10 months ago (2014-02-04 00:07:47 UTC) #1
Elliot Glaysher
lgtm
6 years, 10 months ago (2014-02-04 00:20:26 UTC) #2
piman
LGTM+nits https://codereview.chromium.org/153223002/diff/30001/build/linux/system.gyp File build/linux/system.gyp (right): https://codereview.chromium.org/153223002/diff/30001/build/linux/system.gyp#newcode801 build/linux/system.gyp:801: ['_toolset=="target"', { nit: you don't need that conditional ...
6 years, 10 months ago (2014-02-04 00:25:13 UTC) #3
jamesr
https://codereview.chromium.org/153223002/diff/30001/ui/ui.gyp File ui/ui.gyp (right): https://codereview.chromium.org/153223002/diff/30001/ui/ui.gyp#newcode537 ui/ui.gyp:537: '-lXrender', On 2014/02/04 00:25:14, piman wrote: > nit: won't ...
6 years, 10 months ago (2014-02-04 00:27:14 UTC) #4
jamesr
Note that I'm somewhat guessing about the link_settings / all_dependent_settings interactions based on observed behavior ...
6 years, 10 months ago (2014-02-04 00:27:43 UTC) #5
piman
On Mon, Feb 3, 2014 at 4:27 PM, <jamesr@chromium.org> wrote: > > https://codereview.chromium.org/153223002/diff/30001/ui/ui.gyp > File ...
6 years, 10 months ago (2014-02-04 00:38:44 UTC) #6
jamesr
On 2014/02/04 00:38:44, piman wrote: > > Without this all_dependent_settings entries many targets (mostly unit ...
6 years, 10 months ago (2014-02-04 00:59:57 UTC) #7
jamesr
I think this is as green as it's gonna be on the trybots - it's ...
6 years, 10 months ago (2014-02-04 23:00:40 UTC) #8
Sergey Ulanov
remoting LGTM
6 years, 10 months ago (2014-02-05 00:33:19 UTC) #9
Ben Goodger (Google)
lgtm
6 years, 10 months ago (2014-02-05 05:17:36 UTC) #10
jamesr
The CQ bit was checked by jamesr@chromium.org
6 years, 10 months ago (2014-02-05 05:51:28 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/153223002/160001
6 years, 10 months ago (2014-02-05 05:54:32 UTC) #12
commit-bot: I haz the power
6 years, 10 months ago (2014-02-05 09:09:35 UTC) #13
Message was sent while issue was closed.
Change committed as 248939

Powered by Google App Engine
This is Rietveld 408576698