|
|
Created:
7 years, 8 months ago by Mostyn Bramley-Moore Modified:
7 years, 8 months ago CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam Base URL:
https://chromium.googlesource.com/chromium/src.git@master Visibility:
Public. |
Descriptionlibflac and libspeex are only used if input_speech==1, so add the dependencies as needed.
BUG=none
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192653
Patch Set 1 #
Total comments: 2
Patch Set 2 : include libflac & libspeecs only if input_speech==1 #
Total comments: 3
Patch Set 3 : rearrange to avoid nested condition #
Total comments: 2
Patch Set 4 : whitespace formatting fixup #
Total comments: 2
Patch Set 5 : simplify input_speech condition #Messages
Total messages: 19 (0 generated)
Mostyn, let's go back a bit here. I'd like to help you - could you explain what are you trying to do? If you're getting something to compile, could you post the error messages? https://codereview.chromium.org/13431003/diff/1/content/content_browser.gypi File content/content_browser.gypi (right): https://codereview.chromium.org/13431003/diff/1/content/content_browser.gypi#... content/content_browser.gypi:1183: 'enable_libflac%': 0, This does not look like valid gyp code for me (it's outside of variables). https://codereview.chromium.org/13431003/diff/1/content/content_browser.gypi#... content/content_browser.gypi:1186: ['enable_libflac==1', { This won't work correctly either - I don't see anything that would change the _actual_ dependency - this code only changes the _declared_ dependency.
On 2013/04/03 23:53:10, Paweł Hajdan Jr. wrote: > Mostyn, let's go back a bit here. I'd like to help you - could you explain what > are you trying to do? If you're getting something to compile, could you post the > error messages? I'm trying to make a build for an embedded linux system, which does not have system version of libflac or libspeex, and I'm also trying to minimise binary footprint. If I simply comment out the flac.gyp:libflac and speex.gyp:libspeex dependencies then everything builds fine, which led me to believe that these are not really needed. However, on closer inspection it seems that this only works because I have input_speech==0 - instead I guess we should move the flac/speex dependences into a condition where input_speech==1 ?
On 2013/04/04 00:09:08, Mostyn Bramley-Moore wrote: > I'm trying to make a build for an embedded linux system, which does not have > system version of libflac or libspeex, and I'm also trying to minimise binary > footprint. Oh, I see. Well, first thing is don't worry about the use_system_foo switches. These are mostly for Linux distros and not Google Chrome (although some of them are used by Chrome). Looks like you're also trying to remove dependency on bundled libspeex and libflac. See comments below. > If I simply comment out the flac.gyp:libflac and speex.gyp:libspeex dependencies > then everything builds fine, which led me to believe that these are not really > needed. These libraries are used by content/browser/speech/audio_encoder.cc > However, on closer inspection it seems that this only works because I have > input_speech==0 - instead I guess we should move the flac/speex dependences into > a condition where input_speech==1 ? That makes sense to me - looks like you got quite far in working with gyp! I recommend testing with input_speech=1 (or just default settings). Please let me know if I can help more - and you can always ask on #chromium or chromium-dev ML if needed.
On 2013/04/04 00:25:30, Paweł Hajdan Jr. wrote: > > However, on closer inspection it seems that this only works because I have > > input_speech==0 - instead I guess we should move the flac/speex dependences > into > > a condition where input_speech==1 ? > > That makes sense to me - looks like you got quite far in working with gyp! > > I recommend testing with input_speech=1 (or just default settings). I tried content_shell builds with patch set 2, with and without input_speech enabled- libflac/libspeex were built when input_speech was enabled, and not built when it was disabled. So it seems to work as expected now. > Please let me know if I can help more - and you can always ask on #chromium or > chromium-dev ML if needed. Thanks :)
https://codereview.chromium.org/13431003/diff/6001/content/content_browser.gypi File content/content_browser.gypi (right): https://codereview.chromium.org/13431003/diff/6001/content/content_browser.gy... content/content_browser.gypi:1300: 'conditions': [ I generally prefer not to use a nested condition for something this simple; it's usually clearer to just have a separate 'input_speech==1 and OS!='android'" or similar rather than nesting another condition in the else branch.
https://codereview.chromium.org/13431003/diff/6001/content/content_browser.gypi File content/content_browser.gypi (right): https://codereview.chromium.org/13431003/diff/6001/content/content_browser.gy... content/content_browser.gypi:1300: 'conditions': [ On 2013/04/04 09:49:09, Torne wrote: > I generally prefer not to use a nested condition for something this simple; it's > usually clearer to just have a separate 'input_speech==1 and OS!='android'" or > similar rather than nesting another condition in the else branch. Done in patch set 3.
https://codereview.chromium.org/13431003/diff/6001/content/content_browser.gypi File content/content_browser.gypi (right): https://codereview.chromium.org/13431003/diff/6001/content/content_browser.gy... content/content_browser.gypi:1300: 'conditions': [ On 2013/04/04 10:17:17, Mostyn Bramley-Moore wrote: > On 2013/04/04 09:49:09, Torne wrote: > > I generally prefer not to use a nested condition for something this simple; > it's > > usually clearer to just have a separate 'input_speech==1 and OS!='android'" or > > similar rather than nesting another condition in the else branch. > > Done in patch set 3. Done.
lgtm https://codereview.chromium.org/13431003/diff/11001/content/content_browser.gypi File content/content_browser.gypi (right): https://codereview.chromium.org/13431003/diff/11001/content/content_browser.g... content/content_browser.gypi:1302: '../third_party/flac/flac.gyp:libflac', nit: indentation is wrong here. possibly your editor is using tabs (we use spaces).
https://codereview.chromium.org/13431003/diff/11001/content/content_browser.gypi File content/content_browser.gypi (right): https://codereview.chromium.org/13431003/diff/11001/content/content_browser.g... content/content_browser.gypi:1302: '../third_party/flac/flac.gyp:libflac', On 2013/04/04 10:23:23, Torne wrote: > nit: indentation is wrong here. possibly your editor is using tabs (we use > spaces). Done.
Mostyn, just one thing to even further improve it. Let me know if you'd like me to commit this for you - I think the commit queue (CQ) should also work. Just make sure to fix my comment below. https://codereview.chromium.org/13431003/diff/17001/content/content_browser.gypi File content/content_browser.gypi (right): https://codereview.chromium.org/13431003/diff/17001/content/content_browser.g... content/content_browser.gypi:1300: ['input_speech==1 and OS!="android"', { I think for OS==android input_speech is 0 anyway (see build/common.gypi, look for input_speech). Please test that, and ideally convert this to just an "else" branch of above "if".
> Let me know if you'd like me to commit this for you - I think the commit queue > (CQ) should also work. Does this go through more testing if we use the CQ? If so I don't mind using that method. https://codereview.chromium.org/13431003/diff/17001/content/content_browser.gypi File content/content_browser.gypi (right): https://codereview.chromium.org/13431003/diff/17001/content/content_browser.g... content/content_browser.gypi:1300: ['input_speech==1 and OS!="android"', { On 2013/04/04 18:28:36, Paweł Hajdan Jr. wrote: > I think for OS==android input_speech is 0 anyway (see build/common.gypi, look > for input_speech). > > Please test that, and ideally convert this to just an "else" branch of above > "if". Done in patch set 5. I don't have the android build setup available so I can't test this directly, but I agree with your analysis of the android setup in build/common.gypi. I also looked through some android build logs and it doesn't appear to build content/browser/speech/audio_encoder.cc.
LGTM CQ is just more automated solution that integrates the trybots and committing. It's not really more nor less testing than the manual process - just more convenient. You can read more here: http://www.chromium.org/developers/testing/commit-queue
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mostynb@opera.com/13431003/9002
Presubmit check for 13431003-9002 failed and returned exit status 1. INFO:root:Found 1 file(s). Running presubmit commit checks ... Running /b/commit-queue/workdir/chromium/PRESUBMIT.py ** Presubmit Messages ** If this change has an associated bug, add BUG=[bug number]. ** Presubmit ERRORS ** Missing LGTM from an OWNER for these files: content/content_browser.gypi Was the presubmit check useful? Please send feedback & hate mail to maruel@chromium.org!
John, could you take a look (content/OWNERS) ?
lgtm
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mostynb@opera.com/13431003/9002
Message was sent while issue was closed.
Change committed as 192653 |