diff --git a/examples/build_overrides/ot_br_posix.gni b/examples/build_overrides/ot_br_posix.gni new file mode 100644 index 00000000000000..fd515526281ff2 --- /dev/null +++ b/examples/build_overrides/ot_br_posix.gni @@ -0,0 +1,17 @@ +# Copyright (c) 2020 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +declare_args() { + ot_br_posix_root = "//third_party/connectedhomeip/third_party/ot-br-posix" +} diff --git a/gn/build_overrides/ot_br_posix.gni b/gn/build_overrides/ot_br_posix.gni new file mode 100644 index 00000000000000..2ed583ff245c14 --- /dev/null +++ b/gn/build_overrides/ot_br_posix.gni @@ -0,0 +1,17 @@ +# Copyright (c) 2020 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +declare_args() { + ot_br_posix_root = "//third_party/ot-br-posix" +} diff --git a/src/platform/BUILD.gn b/src/platform/BUILD.gn index fa51d9f495b67c..bf21f71b2eef1f 100644 --- a/src/platform/BUILD.gn +++ b/src/platform/BUILD.gn @@ -20,6 +20,7 @@ import("device.gni") if (chip_enable_openthread) { import("//build_overrides/openthread.gni") + import("//build_overrides/ot_br_posix.gni") } if (chip_device_platform == "nrf5") { @@ -219,7 +220,7 @@ if (chip_device_platform != "none") { "Linux/ThreadStackManagerImpl.cpp", "Linux/ThreadStackManagerImpl.h", ] - public_deps += [ "${chip_root}/third_party/ot-br-posix:ot_br_client" ] + public_deps += [ "${ot_br_posix_root}:ot_br_client" ] } if (chip_enable_wifi) {