| # Copyright 2020 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/device-layer.gni") |
| |
| openweave_adaptation_layer("adaptation") { |
| sources = [ |
| "ble_manager_impl.cpp", |
| "ble_manager_impl.h", |
| "configuration_manager_delegate_impl.cpp", |
| "configuration_manager_delegate_impl.h", |
| "configuration_manager_impl.cpp", |
| "configuration_manager_impl.h", |
| "connectivity_manager_delegate_impl.cpp", |
| "connectivity_manager_delegate_impl.h", |
| "connectivity_manager_impl.cpp", |
| "connectivity_manager_impl.h", |
| "entropy.cpp", |
| "environment_config.cpp", |
| "environment_config.h", |
| "generic_platform_manager_impl_fuchsia.h", |
| "generic_platform_manager_impl_fuchsia.ipp", |
| "group_key_store_impl.cpp", |
| "group_key_store_impl.h", |
| "network_provisioning_server_delegate_impl.cpp", |
| "network_provisioning_server_delegate_impl.h", |
| "network_provisioning_server_impl.cpp", |
| "network_provisioning_server_impl.h", |
| "platform_auth_delegate.cpp", |
| "platform_auth_delegate.h", |
| "platform_manager_impl.cpp", |
| "platform_manager_impl.h", |
| "profile_support.cpp", |
| "thread_stack_manager_impl.cpp", |
| "thread_stack_manager_impl.h", |
| "thread_stack_manager_stub_impl.cpp", |
| "thread_stack_manager_stub_impl.h", |
| "utils.h", |
| "warm_platform_config.h", |
| "warm_support.cpp", |
| "weave_config_manager.cpp", |
| "weave_config_manager.h", |
| "weave_device_platform_config.h", |
| "weave_device_platform_error.h", |
| "weave_device_platform_event.h", |
| "weave_inspector.cpp", |
| "weave_inspector.h", |
| ] |
| deps = [ "//sdk/lib/syslog/cpp" ] |
| public_configs = [ ":adaptation_config" ] |
| public_deps = [ |
| "//sdk/fidl/fuchsia.bluetooth.gatt2:fuchsia.bluetooth.gatt2_hlcpp", |
| "//sdk/fidl/fuchsia.bluetooth.le:fuchsia.bluetooth.le_hlcpp", |
| "//sdk/fidl/fuchsia.buildinfo:fuchsia.buildinfo_hlcpp", |
| "//sdk/fidl/fuchsia.factory:fuchsia.factory_hlcpp", |
| "//sdk/fidl/fuchsia.hwinfo:fuchsia.hwinfo_hlcpp", |
| "//sdk/fidl/fuchsia.lowpan:fuchsia.lowpan_hlcpp", |
| "//sdk/fidl/fuchsia.lowpan.device:fuchsia.lowpan.device_hlcpp", |
| "//sdk/fidl/fuchsia.net.interfaces:fuchsia.net.interfaces_hlcpp", |
| "//sdk/fidl/fuchsia.net.interfaces.admin:fuchsia.net.interfaces.admin_cpp", |
| "//sdk/fidl/fuchsia.net.root:fuchsia.net.root_cpp", |
| "//sdk/fidl/fuchsia.net.root:fuchsia.net.root_hlcpp", |
| "//sdk/fidl/fuchsia.net.routes:fuchsia.net.routes_hlcpp", |
| "//sdk/fidl/fuchsia.net.stack:fuchsia.net.stack_hlcpp", |
| "//sdk/fidl/fuchsia.weave:fuchsia.weave_hlcpp", |
| "//sdk/lib/component/incoming/cpp", |
| "//sdk/lib/inspect/component/cpp", |
| "//sdk/lib/sys/cpp", |
| "//src/lib/backoff", |
| "//src/lib/files", |
| "//src/lib/fsl", |
| "//src/lib/json_parser", |
| "//third_party/modp_b64", |
| "//third_party/openweave-core", |
| ] |
| } |
| |
| config("adaptation_config") { |
| include_dirs = [ "." ] |
| defines = [ |
| # Defines for the third-party layer headers. |
| "EXTERNAL_BLEMANAGERIMPL_HEADER=\"ble_manager_impl.h\"", |
| "EXTERNAL_CONFIGURATIONMANAGERIMPL_HEADER=\"configuration_manager_impl.h\"", |
| "EXTERNAL_CONNECTIVITYMANAGERIMPL_HEADER=\"connectivity_manager_impl.h\"", |
| "EXTERNAL_NETWORKPROVISIONINGSERVERIMPL_HEADER=\"network_provisioning_server_impl.h\"", |
| "EXTERNAL_PLATFORMMANAGERIMPL_HEADER=\"platform_manager_impl.h\"", |
| "EXTERNAL_THREADSTACKMANAGERIMPL_HEADER=\"thread_stack_manager_impl.h\"", |
| "EXTERNAL_WEAVEDEVICEPLATFORMEVENT_HEADER=\"weave_device_platform_event.h\"", |
| "WEAVE_DEVICE_PLATFORM_CONFIG_INCLUDE=\"weave_device_platform_config.h\"", |
| "WARM_PLATFORM_CONFIG_INCLUDE=\"warm_platform_config.h\"", |
| ] |
| } |