1# Copyright (c) 2020, The OpenThread Authors. 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are met: 6# 1. Redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer. 8# 2. Redistributions in binary form must reproduce the above copyright 9# notice, this list of conditions and the following disclaimer in the 10# documentation and/or other materials provided with the distribution. 11# 3. Neither the name of the copyright holder nor the 12# names of its contributors may be used to endorse or promote products 13# derived from this software without specific prior written permission. 14# 15# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 16# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 19# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 20# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 21# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25# POSSIBILITY OF SUCH DAMAGE. 26# 27 28import("../../etc/gn/openthread.gni") 29 30source_set("openthread_config") { 31 public = [ "config.h" ] 32 33 if (openthread_config_file != "") { 34 public_deps = openthread_config_deps 35 } 36 37 public_configs = [ "../..:openthread_config" ] 38} 39 40source_set("openthread") { 41 public = [ 42 "backbone_router.h", 43 "backbone_router_ftd.h", 44 "ble_secure.h", 45 "border_agent.h", 46 "border_router.h", 47 "border_routing.h", 48 "channel_manager.h", 49 "channel_monitor.h", 50 "child_supervision.h", 51 "cli.h", 52 "coap.h", 53 "coap_secure.h", 54 "commissioner.h", 55 "config.h", 56 "crypto.h", 57 "dataset.h", 58 "dataset_ftd.h", 59 "dataset_updater.h", 60 "diag.h", 61 "dns.h", 62 "dns_client.h", 63 "dnssd_server.h", 64 "error.h", 65 "heap.h", 66 "history_tracker.h", 67 "icmp6.h", 68 "instance.h", 69 "ip6.h", 70 "jam_detection.h", 71 "joiner.h", 72 "link.h", 73 "link_metrics.h", 74 "link_raw.h", 75 "logging.h", 76 "mesh_diag.h", 77 "message.h", 78 "multi_radio.h", 79 "nat64.h", 80 "ncp.h", 81 "netdata.h", 82 "netdata_publisher.h", 83 "netdiag.h", 84 "network_time.h", 85 "ping_sender.h", 86 "platform/alarm-micro.h", 87 "platform/alarm-milli.h", 88 "platform/ble.h", 89 "platform/border_routing.h", 90 "platform/crypto.h", 91 "platform/debug_uart.h", 92 "platform/diag.h", 93 "platform/dns.h", 94 "platform/dso_transport.h", 95 "platform/entropy.h", 96 "platform/flash.h", 97 "platform/infra_if.h", 98 "platform/logging.h", 99 "platform/memory.h", 100 "platform/messagepool.h", 101 "platform/misc.h", 102 "platform/multipan.h", 103 "platform/otns.h", 104 "platform/radio.h", 105 "platform/settings.h", 106 "platform/spi-slave.h", 107 "platform/time.h", 108 "platform/toolchain.h", 109 "platform/trel.h", 110 "platform/udp.h", 111 "radio_stats.h", 112 "random_crypto.h", 113 "random_noncrypto.h", 114 "server.h", 115 "sntp.h", 116 "srp_client.h", 117 "srp_client_buffers.h", 118 "srp_server.h", 119 "tasklet.h", 120 "tcat.h", 121 "tcp.h", 122 "tcp_ext.h", 123 "thread.h", 124 "thread_ftd.h", 125 "trel.h", 126 "udp.h", 127 ] 128 129 public_deps = [ ":openthread_config" ] 130} 131