blob: 51fa9dd0507aea3a6f89421340efda0d20f3a260 [file] [log] [blame]
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//third_party/openweave-core/config.gni")
source_set("openweave-core") {
deps = [
"src/ble:BleLayer",
"src/inet:InetLayer",
"src/system:SystemLayer",
"src/lib/core:WeaveCore",
"src/lib/support:WeaveSupport",
"src/lib/profiles:WeaveProfiles",
]
if (weave_build_warm) {
deps += [ "src/warm:Warm" ]
}
configs += [ "//third_party/openweave-core/src/include:fuchsia" ]
configs += [ "//build/config:Wno-extra-semi" ]
public_configs = [ "//third_party/openweave-core/src/include:public" ]
public_deps = [ "//third_party/openweave-core/src/include:common" ]
}
# Provides OpenWeave plus the minimal dependencies to build.
source_set("openweave-core-minimal") {
public_deps = [ ":openweave-core" ]
sources = [
"src/adaptations/device-layer/Fuchsia/minimal/CriticalSection-Stub.cpp",
"src/adaptations/device-layer/Fuchsia/minimal/Logging.cpp",
"src/adaptations/device-layer/Fuchsia/minimal/PersistedStorage-Stub.cpp",
]
configs += [ "//build/config:Wno-extra-semi" ]
}