Hello.
I managed to download Chromium source code and successfully compile it (release build) under Linux (Ubuntu 14.04 64-bit)
with the help of Chromium wiki. As far as I know, path to chrome-sandbox is hard-coded into the Chromium binary, so in order
to run Chromium in normal mode (without --no-sandbox) I need to set the path before the build process. Suppose I want to set it
to /usr/lib/chromium-browser/chrome-sandbox.How do I do it? According to some website, the chrome-sandbox path is stored
in GYP variable linux_sandbox_path. Honestly, I know very little about how GYP works (all I know is it generates build.ninja files)
or about syntax of .gyp and .gypi files. I thought all I had to do was execute either:
gyp_chromium -Dlinux_sandbox_path=/usr/lib/chromium-browser/chrome-sandbox
or:
export GYP_DEFINES="linux_sandbox_path=/usr/lib/chromium-browser/chrome-sandbox"
gyp_chromium
then run gclient runhooks and finally recompile Chromium with ninja -C out/Release chrome.
Unfortunately when I do this, ninja shows "no work to do" message, probably because
no source file has been changed since last build. Does it mean I have to recompile the whole
project for this one little change to take effect or is there a faster way? What is the default
value of linux_sandbox_path anyway? Having grepped through source code tree I found only one reference
to that variable, in breakpad/src/build/common.gypi, but it's set to empty value there (or so it looks).
After I ran:
gyp_chromium -Dlinux_sandbox_path=/usr/lib/chromium-browser/chrome-sandbox
the value of linux_sandbox_path in breakpad/src/build/common.gypi
remained empty - is it normal, shouldn't it have changed to the one set by me?
BTW, I know that mode of chrome-sandbox must be 4755 and the file must be owned by root,
so that won't be a problem.