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

Issue 1980003002: Separate building and enabling libevent. (Closed)

Created:
4 years, 7 months ago by phoglund
Modified:
4 years, 7 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, qiang.lu, niklas.enbom, yujie_mao (webrtc), peah-webrtc, tommi
Base URL:
https://chromium.googlesource.com/external/webrtc@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Separate building and enabling libevent. We're now ready https://codereview.webrtc.org/1984503002/ downstream, so make sure we can enable libevent but still choose which libevent implementation to use. This follows the common pattern where an enable_ flag controls whether we should use the feature at all, whereas build_ controls if we should use the dependency from our DEPS file or something else. NOTRY=True Committed: https://crrev.com/ff274394fed4b54d9fbe977ab64d71ecef522880 Cr-Commit-Position: refs/heads/master@{#12772}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : Make build_libevent also depend on platforms (doesn't build on win) #

Patch Set 5 : Invert elses and source removals #

Patch Set 6 : Better attempt at cleanup #

Total comments: 6

Patch Set 7 : Including platform impls even if libevent should not build, for base_unittests #

Patch Set 8 : Yet another attempt #

Total comments: 3

Patch Set 9 : #

Patch Set 10 : Added GN config #

Total comments: 6

Patch Set 11 : Better GN config #

Patch Set 12 : Move gyp define #

Total comments: 2

Patch Set 13 : Moved build libevent out of if statement. #

Patch Set 14 : Fix target defines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -33 lines) Patch
M webrtc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/base/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +17 lines, -17 lines 0 comments Download
M webrtc/base/base.gyp View 1 2 3 4 5 6 7 8 12 13 2 chunks +15 lines, -10 lines 0 comments Download
M webrtc/build/common.gypi View 1 2 3 12 13 4 chunks +8 lines, -6 lines 0 comments Download
M webrtc/build/webrtc.gni View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (12 generated)
phoglund
4 years, 7 months ago (2016-05-16 11:55:11 UTC) #2
kjellander_webrtc
I'd like either you or tommi@ to rewrite the conditions so they're not using sources! ...
4 years, 7 months ago (2016-05-16 12:21:14 UTC) #3
tommi
I can rewrite the conditions to avoid using sources! statements. I'd like to do that ...
4 years, 7 months ago (2016-05-16 12:59:35 UTC) #5
phoglund
PTAL https://codereview.webrtc.org/1980003002/diff/40001/webrtc/base/base.gyp File webrtc/base/base.gyp (right): https://codereview.webrtc.org/1980003002/diff/40001/webrtc/base/base.gyp#newcode125 webrtc/base/base.gyp:125: ['enable_libevent!=1', { On 2016/05/16 12:21:13, kjellander (webrtc) wrote: ...
4 years, 7 months ago (2016-05-16 13:18:01 UTC) #6
phoglund
https://codereview.webrtc.org/1980003002/diff/100001/webrtc/base/base.gyp File webrtc/base/base.gyp (right): https://codereview.webrtc.org/1980003002/diff/100001/webrtc/base/base.gyp#newcode130 webrtc/base/base.gyp:130: ['OS!="linux" and OS!="android" and OS!="win"', { On 2016/05/16 13:18:01, ...
4 years, 7 months ago (2016-05-16 13:18:27 UTC) #7
kjellander_webrtc
Nice cleanup! https://codereview.webrtc.org/1980003002/diff/100001/webrtc/base/base.gyp File webrtc/base/base.gyp (right): https://codereview.webrtc.org/1980003002/diff/100001/webrtc/base/base.gyp#newcode87 webrtc/base/base.gyp:87: 'task_queue_posix.h', Move 'task_queue.h' and 'task_queue_posix.h' into the ...
4 years, 7 months ago (2016-05-16 13:26:13 UTC) #8
tommi
https://codereview.webrtc.org/1980003002/diff/100001/webrtc/base/base.gyp File webrtc/base/base.gyp (right): https://codereview.webrtc.org/1980003002/diff/100001/webrtc/base/base.gyp#newcode87 webrtc/base/base.gyp:87: 'task_queue_posix.h', On 2016/05/16 13:26:13, kjellander (webrtc) wrote: > Move ...
4 years, 7 months ago (2016-05-16 13:28:56 UTC) #9
phoglund
We should use this as an interview question, and watch the candidates tremble in horror ...
4 years, 7 months ago (2016-05-16 14:18:45 UTC) #10
kjellander_webrtc
lg, but can you add GN config as well? https://codereview.webrtc.org/1980003002/diff/100001/webrtc/base/base.gyp File webrtc/base/base.gyp (right): https://codereview.webrtc.org/1980003002/diff/100001/webrtc/base/base.gyp#newcode87 webrtc/base/base.gyp:87: ...
4 years, 7 months ago (2016-05-16 14:27:05 UTC) #11
tommi
lgtm https://codereview.webrtc.org/1980003002/diff/140001/webrtc/base/base.gyp File webrtc/base/base.gyp (right): https://codereview.webrtc.org/1980003002/diff/140001/webrtc/base/base.gyp#newcode127 webrtc/base/base.gyp:127: # If not libevent, fall back to the ...
4 years, 7 months ago (2016-05-16 14:35:04 UTC) #12
phoglund
PTAL
4 years, 7 months ago (2016-05-16 14:53:19 UTC) #13
phoglund
On 2016/05/16 14:53:19, phoglund wrote: > PTAL Hmm, the ios gn bot appears to be ...
4 years, 7 months ago (2016-05-16 15:03:26 UTC) #14
kjellander_webrtc
On 2016/05/16 15:03:26, phoglund wrote: > On 2016/05/16 14:53:19, phoglund wrote: > > PTAL > ...
4 years, 7 months ago (2016-05-16 15:08:39 UTC) #15
kjellander_webrtc
GN needs a bit more work due to some missing parts in the original CL. ...
4 years, 7 months ago (2016-05-16 15:09:12 UTC) #16
phoglund
PTAL https://codereview.webrtc.org/1980003002/diff/180001/webrtc/base/BUILD.gn File webrtc/base/BUILD.gn (right): https://codereview.webrtc.org/1980003002/diff/180001/webrtc/base/BUILD.gn#newcode178 webrtc/base/BUILD.gn:178: if (!is_win && !is_mac && !is_ios && !is_nacl) ...
4 years, 7 months ago (2016-05-16 15:32:30 UTC) #17
kjellander_webrtc
https://codereview.webrtc.org/1980003002/diff/180001/webrtc/base/BUILD.gn File webrtc/base/BUILD.gn (right): https://codereview.webrtc.org/1980003002/diff/180001/webrtc/base/BUILD.gn#newcode180 webrtc/base/BUILD.gn:180: defines += [ "WEBRTC_BUILD_LIBEVENT" ] On 2016/05/16 15:32:29, phoglund ...
4 years, 7 months ago (2016-05-16 15:34:28 UTC) #18
phoglund
https://codereview.webrtc.org/1980003002/diff/180001/webrtc/base/BUILD.gn File webrtc/base/BUILD.gn (right): https://codereview.webrtc.org/1980003002/diff/180001/webrtc/base/BUILD.gn#newcode180 webrtc/base/BUILD.gn:180: defines += [ "WEBRTC_BUILD_LIBEVENT" ] On 2016/05/16 15:34:28, kjellander ...
4 years, 7 months ago (2016-05-16 15:44:45 UTC) #19
kjellander_webrtc
lgtm with the GN comment addressed. https://codereview.webrtc.org/1980003002/diff/220001/webrtc/base/BUILD.gn File webrtc/base/BUILD.gn (right): https://codereview.webrtc.org/1980003002/diff/220001/webrtc/base/BUILD.gn#newcode179 webrtc/base/BUILD.gn:179: if (rtc_build_libevent) { ...
4 years, 7 months ago (2016-05-17 07:38:26 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1980003002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1980003002/240001
4 years, 7 months ago (2016-05-17 07:58:55 UTC) #23
phoglund
https://codereview.webrtc.org/1980003002/diff/220001/webrtc/base/BUILD.gn File webrtc/base/BUILD.gn (right): https://codereview.webrtc.org/1980003002/diff/220001/webrtc/base/BUILD.gn#newcode179 webrtc/base/BUILD.gn:179: if (rtc_build_libevent) { On 2016/05/17 07:38:26, kjellander (webrtc) wrote: ...
4 years, 7 months ago (2016-05-17 07:59:02 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_tsan2 on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_tsan2/builds/12216)
4 years, 7 months ago (2016-05-17 08:05:34 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1980003002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1980003002/260001
4 years, 7 months ago (2016-05-17 10:34:35 UTC) #32
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 7 months ago (2016-05-17 10:44:34 UTC) #34
commit-bot: I haz the power
4 years, 7 months ago (2016-05-17 10:44:40 UTC) #36
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/ff274394fed4b54d9fbe977ab64d71ecef522880
Cr-Commit-Position: refs/heads/master@{#12772}

Powered by Google App Engine
This is Rietveld 408576698