webrtc/experiments/BUILD.gn
Emil Lundmark 64a33f2453 Add tool for generating field trial registry header
The tool will generate a C++ header with all field trials in
REGISTERED_FIELD_TRIALS. This registry will later be used while looking
up field trials from native code to ensure they have been properly
registered in accordance with the policy.

Bug: webrtc:14154
Change-Id: I29bf880735121034585c541c46ef19f617d0afb9
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/276268
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Emil Lundmark <lndmrk@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#38426}
2022-10-18 07:25:43 +00:00

26 lines
882 B
Text

# Copyright (c) 2022 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.
import("../webrtc.gni")
action("registered_field_trials_header") {
visibility = [ ":*" ]
script = "field_trials.py"
args = [
"header",
"--output",
rebase_path(target_gen_dir, root_build_dir) + "/registered_field_trials.h",
]
outputs = [ "$target_gen_dir/registered_field_trials.h" ]
}
rtc_library("registered_field_trials") {
visibility = [ "*" ]
sources = get_target_outputs(":registered_field_trials_header")
deps = [ ":registered_field_trials_header" ]
}