1 # Copyright (c) 2020 Project CHIP Authors
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 import("//build_overrides/build.gni")
16 import("//build_overrides/chip.gni")
18 import("${chip_root}/build/chip/tools.gni")
20 static_library("minimal-mdns-example-common") {
22 "AllInterfaceListener.h",
28 "${chip_root}/src/lib",
29 "${chip_root}/src/lib/mdns/minimal",
33 executable("minimal-mdns-client") {
34 sources = [ "client.cpp" ]
36 cflags = [ "-Wconversion" ]
39 ":minimal-mdns-example-common",
40 "${chip_root}/src/lib",
41 "${chip_root}/src/lib/mdns/minimal",
44 output_dir = root_out_dir
47 executable("minimal-mdns-server") {
48 sources = [ "server.cpp" ]
50 cflags = [ "-Wconversion" ]
53 ":minimal-mdns-example-common",
54 "${chip_root}/src/lib",
55 "${chip_root}/src/lib/mdns/minimal",
56 "${chip_root}/src/lib/mdns/minimal/responders",
59 output_dir = root_out_dir
62 executable("mdns-advertiser") {
63 sources = [ "advertiser.cpp" ]
65 cflags = [ "-Wconversion" ]
68 ":minimal-mdns-example-common",
69 "${chip_root}/src/lib",
70 "${chip_root}/src/lib/mdns",
73 output_dir = root_out_dir