aboutsummaryrefslogtreecommitdiff
path: root/cast/common
diff options
context:
space:
mode:
authorJordan Bayles <jophba@chromium.org>2020-10-13 14:56:58 -0700
committerCommit Bot <commit-bot@chromium.org>2020-10-17 14:42:36 +0000
commitb92a3f35eee8275f5e8bbe97a44072e984f26de4 (patch)
tree7b11ad741b9fbafe08b420a40408deb807aea045 /cast/common
parentbd45d582f51ec82302e8f39f4c6fe588a670dfc1 (diff)
downloadopenscreen-b92a3f35eee8275f5e8bbe97a44072e984f26de4.tar.gz
Mask dev cert arg when build_with_chromium
This patch updates the cast_allow_developer_certificate arg to only be defined when !build_with_chromium, to avoid multiple definition errors. Change-Id: Ib7eb92e93bb79286270e17317c1e05fccf302ba1 Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/2469158 Reviewed-by: Yuri Wiitala <miu@chromium.org> Commit-Queue: Jordan Bayles <jophba@chromium.org>
Diffstat (limited to 'cast/common')
-rw-r--r--cast/common/BUILD.gn18
1 files changed, 12 insertions, 6 deletions
diff --git a/cast/common/BUILD.gn b/cast/common/BUILD.gn
index 77710437..c98db5db 100644
--- a/cast/common/BUILD.gn
+++ b/cast/common/BUILD.gn
@@ -6,16 +6,22 @@ import("//build_overrides/build.gni")
import("//third_party/protobuf/proto_library.gni")
import("../../testing/libfuzzer/fuzzer_test.gni")
-declare_args() {
- # Whether or not self-signed certificates are enabled for the receiver
- # and sender implementations.
- cast_allow_developer_certificate = false
+if (!build_with_chromium) {
+ declare_args() {
+ # Whether or not self-signed certificates are enabled for the receiver
+ # and sender implementations.
+ cast_allow_developer_certificate = false
+ }
}
config("certificate_config") {
defines = []
- if (cast_allow_developer_certificate) {
- defines += [ "CAST_ALLOW_DEVELOPER_CERTIFICATE" ]
+
+ # TODO(jophba): remove once arg is in Chrome.
+ if (!build_with_chromium) {
+ if (cast_allow_developer_certificate) {
+ defines += [ "CAST_ALLOW_DEVELOPER_CERTIFICATE" ]
+ }
}
}