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

Issue 3001623003: Decoupling rtc_base from Obj-C code (Closed)

Created:
3 years, 4 months ago by mbonadei
Modified:
3 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Decoupling rtc_base from Obj-C code The goal of this CL is to separate Obj-C/Obj-C++ code from targets which have also C++ code (see https://bugs.chromium.org/p/webrtc/issues/detail?id=7743 for more information). To achieve this we have created 2 targets (rtc_base_objc and rtc_base_generic) and rtc_base will act as a proxy between these targets (this way we can avoid a circular dependency between rtc_base_generic and rtc_base_objc). BUG=webrtc:7743 Review-Url: https://codereview.webrtc.org/3001623003 Cr-Commit-Position: refs/heads/master@{#19661} Committed: https://chromium.googlesource.com/external/webrtc/+/a0a5b98937de0f0bf90e17011d2cbc8c632cb409

Patch Set 1 #

Patch Set 2 : From source_set to static_library #

Patch Set 3 : Trying to fix win issue with noop.cc workaround #

Total comments: 5

Patch Set 4 : s/objc_rtc_base/rtc_base_objc #

Patch Set 5 : Generate rtc_base_objc only if is_ios || is_mac #

Patch Set 6 : Adding comments to explain the noop.{cc,mm} trick #

Total comments: 7

Patch Set 7 : making rtc_base a source_set + addressing comments #

Patch Set 8 : Removing noop.{cc,mm} #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -5 lines) Patch
M webrtc/rtc_base/BUILD.gn View 1 2 3 4 5 6 7 3 chunks +28 lines, -5 lines 3 comments Download

Messages

Total messages: 25 (12 generated)
mbonadei
3 years, 4 months ago (2017-08-14 09:23:20 UTC) #5
kjellander_webrtc
https://codereview.webrtc.org/3001623003/diff/40001/webrtc/rtc_base/BUILD.gn File webrtc/rtc_base/BUILD.gn (right): https://codereview.webrtc.org/3001623003/diff/40001/webrtc/rtc_base/BUILD.gn#newcode419 webrtc/rtc_base/BUILD.gn:419: rtc_static_library("objc_rtc_base") { How about rtc_base_objc? https://codereview.webrtc.org/3001623003/diff/40001/webrtc/rtc_base/BUILD.gn#newcode539 webrtc/rtc_base/BUILD.gn:539: visibility = ...
3 years, 4 months ago (2017-08-14 14:00:36 UTC) #7
mbonadei
https://codereview.webrtc.org/3001623003/diff/40001/webrtc/rtc_base/BUILD.gn File webrtc/rtc_base/BUILD.gn (right): https://codereview.webrtc.org/3001623003/diff/40001/webrtc/rtc_base/BUILD.gn#newcode419 webrtc/rtc_base/BUILD.gn:419: rtc_static_library("objc_rtc_base") { On 2017/08/14 14:00:36, kjellander_webrtc wrote: > How ...
3 years, 4 months ago (2017-08-14 15:07:35 UTC) #8
kthelgason
On 2017/08/14 15:07:35, mbonadei wrote: > https://codereview.webrtc.org/3001623003/diff/40001/webrtc/rtc_base/BUILD.gn > File webrtc/rtc_base/BUILD.gn (right): > > https://codereview.webrtc.org/3001623003/diff/40001/webrtc/rtc_base/BUILD.gn#newcode419 > ...
3 years, 4 months ago (2017-08-15 07:55:12 UTC) #9
kjellander_webrtc
lgtm https://codereview.webrtc.org/3001623003/diff/40001/webrtc/rtc_base/BUILD.gn File webrtc/rtc_base/BUILD.gn (right): https://codereview.webrtc.org/3001623003/diff/40001/webrtc/rtc_base/BUILD.gn#newcode539 webrtc/rtc_base/BUILD.gn:539: visibility = [ On 2017/08/14 15:07:34, mbonadei wrote: ...
3 years, 4 months ago (2017-08-15 08:40:58 UTC) #10
mbonadei
+kwiberg@ for OWNER lgtm.
3 years, 3 months ago (2017-08-31 14:20:15 UTC) #14
kwiberg-webrtc
https://codereview.webrtc.org/3001623003/diff/100001/webrtc/rtc_base/BUILD.gn File webrtc/rtc_base/BUILD.gn (right): https://codereview.webrtc.org/3001623003/diff/100001/webrtc/rtc_base/BUILD.gn#newcode401 webrtc/rtc_base/BUILD.gn:401: rtc_static_library("rtc_base") { If you made this a source set, ...
3 years, 3 months ago (2017-08-31 20:46:15 UTC) #15
mbonadei
PTAL. https://codereview.webrtc.org/3001623003/diff/100001/webrtc/rtc_base/BUILD.gn File webrtc/rtc_base/BUILD.gn (right): https://codereview.webrtc.org/3001623003/diff/100001/webrtc/rtc_base/BUILD.gn#newcode401 webrtc/rtc_base/BUILD.gn:401: rtc_static_library("rtc_base") { On 2017/08/31 20:46:14, kwiberg-webrtc wrote: > ...
3 years, 3 months ago (2017-09-01 09:24:36 UTC) #16
mbonadei
https://codereview.webrtc.org/3001623003/diff/140001/webrtc/rtc_base/BUILD.gn File webrtc/rtc_base/BUILD.gn (right): https://codereview.webrtc.org/3001623003/diff/140001/webrtc/rtc_base/BUILD.gn#newcode444 webrtc/rtc_base/BUILD.gn:444: "thread_darwin.mm", Good news: applefilesystem.mm has been removed in https://codereview.webrtc.org/2995413002! ...
3 years, 3 months ago (2017-09-01 09:28:24 UTC) #17
kwiberg-webrtc
lgtm https://codereview.webrtc.org/3001623003/diff/100001/webrtc/rtc_base/BUILD.gn File webrtc/rtc_base/BUILD.gn (right): https://codereview.webrtc.org/3001623003/diff/100001/webrtc/rtc_base/BUILD.gn#newcode401 webrtc/rtc_base/BUILD.gn:401: rtc_static_library("rtc_base") { On 2017/09/01 09:24:35, mbonadei wrote: > ...
3 years, 3 months ago (2017-09-01 11:23:45 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/3001623003/140001
3 years, 3 months ago (2017-09-04 11:04:29 UTC) #21
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/external/webrtc/+/a0a5b98937de0f0bf90e17011d2cbc8c632cb409
3 years, 3 months ago (2017-09-04 13:49:15 UTC) #24
mbonadei
3 years, 3 months ago (2017-09-04 14:19:06 UTC) #25
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.webrtc.org/3008103002/ by mbonadei@webrtc.org.

The reason for reverting is: It breaks a downstream project..

Powered by Google App Engine
This is Rietveld 408576698