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

Issue 149689: Linux: move hardcoded paths to GYP variables. (Closed)

Created:
11 years, 5 months ago by agl
Modified:
9 years, 7 months ago
Reviewers:
Michael Moss
CC:
chromium-reviews_googlegroups.com, fta
Visibility:
Public.

Description

Linux: move hardcoded paths to GYP variables. Currently we hardcode several paths in the source (the location of the sandbox binary and the location of the chrome binary). Packagers are patching the source to change these, which obviously isn't great. This patch makes the paths GYP variables, which can be set with -D on the GYP command line.

Patch Set 1 #

Patch Set 2 : ... #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -11 lines) Patch
M build/common.gypi View 1 chunk +12 lines, -1 line 0 comments Download
M chrome/browser/zygote_host_linux.cc View 1 2 chunks +10 lines, -9 lines 1 comment Download
M chrome/chrome.gyp View 1 chunk +5 lines, -0 lines 0 comments Download
M sandbox/linux/suid/sandbox.cc View 1 chunk +10 lines, -1 line 0 comments Download
M sandbox/sandbox.gyp View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
agl
11 years, 5 months ago (2009-07-15 19:26:32 UTC) #1
Michael Moss
Would it make sense to make the compile of chrome_sandbox conditional on linux_sandbox_path being defined? ...
11 years, 5 months ago (2009-07-15 21:19:49 UTC) #2
agl
On 2009/07/15 21:19:49, mmoss wrote: > Would it make sense to make the compile of ...
11 years, 5 months ago (2009-07-15 22:39:05 UTC) #3
Michael Moss
11 years, 5 months ago (2009-07-15 22:53:36 UTC) #4
On 2009/07/15 22:39:05, agl wrote:
> On 2009/07/15 21:19:49, mmoss wrote:
> > Would it make sense to make the compile of chrome_sandbox conditional on
> > linux_sandbox_path being defined? The sandbox binary won't be used without
it,
> > so it offers an extra check in case we forget to set the GYP variable (I'm
> 
> I agree. However, I can't get GYP to do it. If you can, please feel free.

I was thinking conditionally include sandbox.gyp in the other gyp file(s) where
it's referenced, but I'll have to look closer to see if that breaks anything
else. No worries, though. Don't let it hold up the CL.

Powered by Google App Engine
This is Rietveld 408576698