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    "border_agent.h",
45    "border_router.h",
46    "border_routing.h",
47    "channel_manager.h",
48    "channel_monitor.h",
49    "child_supervision.h",
50    "cli.h",
51    "coap.h",
52    "coap_secure.h",
53    "commissioner.h",
54    "config.h",
55    "crypto.h",
56    "dataset.h",
57    "dataset_ftd.h",
58    "dataset_updater.h",
59    "diag.h",
60    "dns.h",
61    "dns_client.h",
62    "dnssd_server.h",
63    "error.h",
64    "heap.h",
65    "history_tracker.h",
66    "icmp6.h",
67    "instance.h",
68    "ip6.h",
69    "jam_detection.h",
70    "joiner.h",
71    "link.h",
72    "link_metrics.h",
73    "link_raw.h",
74    "logging.h",
75    "mesh_diag.h",
76    "message.h",
77    "multi_radio.h",
78    "nat64.h",
79    "ncp.h",
80    "netdata.h",
81    "netdata_publisher.h",
82    "netdiag.h",
83    "network_time.h",
84    "ping_sender.h",
85    "platform/alarm-micro.h",
86    "platform/alarm-milli.h",
87    "platform/border_routing.h",
88    "platform/crypto.h",
89    "platform/debug_uart.h",
90    "platform/diag.h",
91    "platform/dns.h",
92    "platform/dso_transport.h",
93    "platform/entropy.h",
94    "platform/flash.h",
95    "platform/infra_if.h",
96    "platform/logging.h",
97    "platform/memory.h",
98    "platform/messagepool.h",
99    "platform/misc.h",
100    "platform/otns.h",
101    "platform/radio.h",
102    "platform/settings.h",
103    "platform/spi-slave.h",
104    "platform/time.h",
105    "platform/toolchain.h",
106    "platform/trel.h",
107    "platform/udp.h",
108    "radio_stats.h",
109    "random_crypto.h",
110    "random_noncrypto.h",
111    "server.h",
112    "sntp.h",
113    "srp_client.h",
114    "srp_client_buffers.h",
115    "srp_server.h",
116    "tasklet.h",
117    "tcp.h",
118    "tcp_ext.h",
119    "thread.h",
120    "thread_ftd.h",
121    "trel.h",
122    "udp.h",
123  ]
124
125  public_deps = [ ":openthread_config" ]
126}
127