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

Issue 2550563003: Split targets mixing .c and .cc sources. (Closed)

Created:
4 years ago by kjellander_webrtc
Modified:
4 years ago
CC:
webrtc-reviews_webrtc.org, yujie_mao (webrtc), kwiberg-webrtc, Andrew MacDonald, hlundin-webrtc, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, qiang.lu, niklas.enbom, sdk-team_agora.io, peah-webrtc, minyue-webrtc, the sun, aluebs-webrtc, bjornv1
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Split targets mixing .c and .cc sources. The Bazel build format doesn't support having separate lists of compilation flags for C and C++; it just has a single copts list for cc_library: https://bazel.build/versions/master/docs/be/c-cpp.html#cc_binary.copts This makes it hard to convert our GN targets to Bazel when there are compiler warnings that aren't supported for C (like -Woverloaded-virtual being added in bugs.webrtc.org/6653). The solution for this is to move all .c files to their own targets and remove C++-only compiler flags during conversion. New targets: //webrtc/common_audio:common_audio_c //webrtc/common_audio:common_audio_neon_c //webrtc/modules/audio_coding:g711_c //webrtc/modules/audio_coding:g722_c //webrtc/modules/audio_coding:ilbc_c //webrtc/modules/audio_coding:isac_c //webrtc/modules/audio_coding:isac_fix_c //webrtc/modules/audio_coding:isac_test_util //webrtc/modules/audio_coding:pcm16b_c //webrtc/modules/audio_coding:webrtc_opusj_c //webrtc/modules/audio_device:mac_portaudio //webrtc/modules/audio_procssing:audio_processing_c //webrtc/modules/audio_procssing:audio_processing_neon_c This CL also adds a PRESUBMIT.py check that will throw an error if targets are mixing .c and .cc files, to preven this from regressing. BUG=webrtc:6653 NOTRY=True Committed: https://crrev.com/7439f973f72536cd9822d4e97b294185a9950b36 Cr-Commit-Position: refs/heads/master@{#15433}

Patch Set 1 #

Patch Set 2 : Patch set without PRESUBMIT.py, for Chromium trybots #

Total comments: 2

Patch Set 3 : Restoring PRESUBMIT.py #

Patch Set 4 : Fixed nit #

Patch Set 5 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+341 lines, -116 lines) Patch
M PRESUBMIT.py View 2 3 chunks +31 lines, -0 lines 0 comments Download
M webrtc/common_audio/BUILD.gn View 1 2 3 4 7 chunks +91 lines, -44 lines 0 comments Download
M webrtc/modules/audio_coding/BUILD.gn View 1 2 3 4 22 chunks +139 lines, -43 lines 0 comments Download
M webrtc/modules/audio_device/BUILD.gn View 1 2 3 4 2 chunks +10 lines, -3 lines 0 comments Download
M webrtc/modules/audio_processing/BUILD.gn View 1 2 3 4 7 chunks +70 lines, -26 lines 0 comments Download

Messages

Total messages: 25 (16 generated)
kjellander_webrtc
henrik.lundin@: main review henrika@: rubberstamp for audio_device. I'm landing a CL internally to solve the ...
4 years ago (2016-12-05 10:46:03 UTC) #8
henrika_webrtc
LGTM
4 years ago (2016-12-05 11:21:41 UTC) #9
hlundin-webrtc
lgtm with one optional nit. https://codereview.webrtc.org/2550563003/diff/120001/webrtc/modules/audio_coding/BUILD.gn File webrtc/modules/audio_coding/BUILD.gn (right): https://codereview.webrtc.org/2550563003/diff/120001/webrtc/modules/audio_coding/BUILD.gn#newcode808 webrtc/modules/audio_coding/BUILD.gn:808: public_deps = [ Make ...
4 years ago (2016-12-05 11:37:01 UTC) #10
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/2550563003/160001
4 years ago (2016-12-06 06:01:03 UTC) #14
commit-bot: I haz the power
Failed to apply patch for webrtc/modules/audio_processing/BUILD.gn: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-12-06 06:04:22 UTC) #16
kjellander_webrtc
Rebased, trying again. https://codereview.webrtc.org/2550563003/diff/120001/webrtc/modules/audio_coding/BUILD.gn File webrtc/modules/audio_coding/BUILD.gn (right): https://codereview.webrtc.org/2550563003/diff/120001/webrtc/modules/audio_coding/BUILD.gn#newcode808 webrtc/modules/audio_coding/BUILD.gn:808: public_deps = [ On 2016/12/05 11:37:01, ...
4 years ago (2016-12-06 06:41:21 UTC) #17
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/2550563003/180001
4 years ago (2016-12-06 06:41:31 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:180001)
4 years ago (2016-12-06 06:47:50 UTC) #23
commit-bot: I haz the power
4 years ago (2016-12-06 06:48:00 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7439f973f72536cd9822d4e97b294185a9950b36
Cr-Commit-Position: refs/heads/master@{#15433}

Powered by Google App Engine
This is Rietveld 408576698