From da20c739a8607e9f43e6ac04024ea622167ec694 Mon Sep 17 00:00:00 2001 From: Johannes Kron Date: Fri, 19 Feb 2021 16:39:41 +0100 Subject: [PATCH] Add build argument rtc_exclude_system_time This is the first CL out of three to enable overriding of the function SystemTimeNanos() in rtc_base/system_time.cc Bug: chromium:516700 Change-Id: I7c33b0d3463fd68c777ef0c6d268dbde45746c64 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/208225 Reviewed-by: Mirko Bonadei Commit-Queue: Johannes Kron Cr-Commit-Position: refs/heads/master@{#33303} --- webrtc.gni | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webrtc.gni b/webrtc.gni index b4ed469e22..08b2d661de 100644 --- a/webrtc.gni +++ b/webrtc.gni @@ -59,6 +59,12 @@ declare_args() { # provided. rtc_exclude_metrics_default = build_with_chromium + # Setting this to true will define WEBRTC_EXCLUDE_SYSTEM_TIME which + # will tell the pre-processor to remove the default definition of the + # SystemTimeNanos() which is defined in rtc_base/system_time.cc. In + # that case a new implementation needs to be provided. + rtc_exclude_system_time = false + # Setting this to false will require the API user to pass in their own # SSLCertificateVerifier to verify the certificates presented from a # TLS-TURN server. In return disabling this saves around 100kb in the binary.