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

Unified Diff: webrtc/modules/audio_coding/BUILD.gn

Issue 2195353002: Migrated target RTPencode to GN (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_coding/BUILD.gn
diff --git a/webrtc/modules/audio_coding/BUILD.gn b/webrtc/modules/audio_coding/BUILD.gn
index 96c1ea981983f0e26a34040b15fae38c4dcbc628..d3d7bd81ca7a68dab95ea8964184cd8994c823ce 100644
--- a/webrtc/modules/audio_coding/BUILD.gn
+++ b/webrtc/modules/audio_coding/BUILD.gn
@@ -1209,6 +1209,61 @@ if (rtc_include_tests) {
}
}
+ config("RTPencode_config") {
+ defines = [
+ "CODEC_ILBC",
+ "CODEC_PCM16B",
+ "CODEC_G711",
+ "CODEC_G722",
+ "CODEC_ISAC",
+ "CODEC_PCM16B_WB",
+ "CODEC_ISAC_SWB",
+ "CODEC_PCM16B_32KHZ",
+ "CODEC_PCM16B_48KHZ",
+ "CODEC_CNGCODEC8",
+ "CODEC_CNGCODEC16",
+ "CODEC_CNGCODEC32",
+ "CODEC_ATEVENT_DECODE",
+ "CODEC_RED",
+ "CODEC_OPUS",
+ ]
+ }
+
+ executable("RTPencode") {
aleloi 2016/08/01 14:31:34 Added target here instead of in neteq because othe
+ testonly = true
+
+ deps = [
+ # TODO(hlundin): Make RTPencode use ACM to encode files.
aleloi 2016/08/01 14:31:34 Copied TODO from gyp build file.
+ ":cng",
+ ":g711",
+ ":g722",
+ ":ilbc",
+ ":isac",
+ ":neteq_test_tools",
+ ":pcm16b",
+ ":webrtc_opus",
+ "../../common_audio",
+ ]
+
+ configs += [ ":RTPencode_config" ]
+
+ sources = [
+ "neteq/test/RTPencode.cc",
+ ]
+
+ include_dirs = [
aleloi 2016/08/01 14:31:34 Removed webrtc root as it is included by default.
+ "neteq/include",
+ "neteq/test",
+ ]
+
+ if (is_win) {
+ cflags = [
+ # Disable warnings to enable Win64 build, issue 1323.
+ "/wd4267", # size_t to int truncation
+ ]
+ }
+ }
+
executable("rtp_analyze") {
testonly = true

Powered by Google App Engine
This is Rietveld 408576698