Skip to content

Commit

Permalink
Add build override for jsoncpp
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeChronos928 committed May 3, 2022
1 parent c62f3ae commit b4bba1f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
17 changes: 17 additions & 0 deletions build_overrides/jsoncpp.gni
Original file line number Diff line number Diff line change
@@ -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() {
jsoncpp_root = "//third_party/jsoncpp"
}
3 changes: 2 additions & 1 deletion src/lib/support/jsontlv/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

import("//build_overrides/chip.gni")
import("//build_overrides/jsoncpp.gni")

config("jsontlv_config") {
cflags = [ "-Wno-implicit-fallthrough" ]
Expand All @@ -25,6 +26,6 @@ static_library("jsontlv") {

public_deps = [
"${chip_root}/src/lib/core",
"${chip_root}/third_party/jsoncpp",
jsoncpp_root,
]
}

0 comments on commit b4bba1f

Please sign in to comment.