aboutsummaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorFabrice de Gans-Riberi <fdegans@chromium.org>2019-11-21 16:01:42 -0800
committerCommit Bot <commit-bot@chromium.org>2019-11-22 00:13:04 +0000
commitef98b330b71a64ef3a427b93fcfa92a76c06a597 (patch)
tree7269b4339fa662133d623918cf97f8ef2e2088cb /BUILD.gn
parentbe8cdf6c5b0a435f53e6d7a46e8fd7d9001eeda7 (diff)
downloadopenscreen-ef98b330b71a64ef3a427b93fcfa92a76c06a597.tar.gz
Fix a build issue for platforms with different host and target toolchains.
The "tools/cddl" target is only defined for the host toolchain. As a result, the "gn_all" target was failing to build properly on systems with different host and target toolchains. Change-Id: I1d18490442b9ed3aee8f76fd3cd7f13806a557c7 Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/1929464 Reviewed-by: mark a. foltz <mfoltz@chromium.org> Commit-Queue: Fabrice de Gans-Riberi <fdegans@chromium.org>
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn5
1 files changed, 4 insertions, 1 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 7b08ba9c..27694f84 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -23,10 +23,13 @@ group("gn_all") {
"third_party/boringssl",
"third_party/jsoncpp",
"third_party/tinycbor",
- "tools/cddl",
"util",
]
+ if (current_toolchain == host_toolchain) {
+ deps += [ "tools/cddl" ]
+ }
+
if (use_mdns_responder) {
deps += [ "osp/impl/discovery/mdns:mdns_demo" ]
}