blob: d16f4a166be7eaec35ad64d3d158cb862ce7c20d [file] [log] [blame]
# 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.
import("//build_overrides/build.gni")
import("//build_overrides/chip.gni")
import("${build_root}/config/linux/pkg_config.gni")
config("ot_br_client_config") {
# Treat these includes as system includes, so warnings in them are not fatal.
_include_dirs = [
"repo/src",
"repo/include",
]
cflags = []
foreach(include_dir, _include_dirs) {
cflags += [ "-isystem" + rebase_path(include_dir, root_build_dir) ]
}
}
pkg_config("dbus_config") {
packages = [ "dbus-1" ]
}
static_library("ot_br_client") {
output_name = "libot_br_client"
sources = [
"repo/src/dbus/client/client_error.cpp",
"repo/src/dbus/client/thread_api_dbus.cpp",
"repo/src/dbus/common/dbus_message_helper.cpp",
"repo/src/dbus/common/dbus_message_helper_openthread.cpp",
"repo/src/dbus/common/error.cpp",
]
public_configs = [
":ot_br_client_config",
":dbus_config",
]
}