BUILD.gn (1765B)
1 # Copyright (c) 2019 The WebRTC project authors. All Rights Reserved. 2 # 3 # Use of this source code is governed by a BSD-style license 4 # that can be found in the LICENSE file in the root of the source 5 # tree. An additional intellectual property rights grant can be found 6 # in the file PATENTS. All contributing project authors may 7 # be found in the AUTHORS file in the root of the source tree. 8 9 import("../../webrtc.gni") 10 11 group("crypto") { 12 deps = [ 13 ":frame_decryptor_interface", 14 ":frame_encryptor_interface", 15 ":options", 16 ] 17 } 18 19 rtc_library("options") { 20 visibility = [ "*" ] 21 sources = [ 22 "crypto_options.cc", 23 "crypto_options.h", 24 ] 25 deps = [ 26 "..:field_trials_view", 27 "../../rtc_base:checks", 28 "../../rtc_base:ssl_adapter", 29 "../../rtc_base/system:rtc_export", 30 "//third_party/abseil-cpp/absl/algorithm:container", 31 ] 32 } 33 34 rtc_source_set("frame_decryptor_interface") { 35 visibility = [ "*" ] 36 sources = [ "frame_decryptor_interface.h" ] 37 deps = [ 38 "..:array_view", 39 "..:ref_count", 40 "..:rtp_parameters", 41 "../../rtc_base:refcount", 42 ] 43 } 44 45 rtc_source_set("frame_encryptor_interface") { 46 visibility = [ "*" ] 47 sources = [ "frame_encryptor_interface.h" ] 48 deps = [ 49 "..:array_view", 50 "..:ref_count", 51 "..:rtp_parameters", 52 "../../rtc_base:refcount", 53 ] 54 } 55 56 if (rtc_include_tests) { 57 rtc_library("crypto_options_unittest") { 58 visibility = [ "*" ] 59 testonly = true 60 sources = [ "crypto_options_unittest.cc" ] 61 deps = [ 62 ":options", 63 "..:field_trials", 64 "../../rtc_base:ssl_adapter", 65 "../../test:create_test_field_trials", 66 "../../test:test_support", 67 "//testing/gtest", 68 ] 69 if (rtc_build_ssl) { 70 deps += [ "//third_party/boringssl" ] 71 } 72 } 73 }