1f9ed65cd1f5cfe9ed3a2cbc9d426237ab0a265c
[platform/upstream/connectedhomeip.git] / examples / common / chip-app-server / BUILD.gn
1 # Copyright (c) 2020 Project CHIP Authors
2 #
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
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
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.
14
15 import("//build_overrides/chip.gni")
16
17 config("includes") {
18   include_dirs = [
19     ".",
20     "include",
21   ]
22 }
23
24 static_library("chip-app-server") {
25   output_name = "chip-app-server"
26
27   # Issue #1630
28   # DataModelHandler.cpp includes files that relies on generated headers
29   # so we can't compile it into this static library.  It needs to be compiled
30   # directly by someone who knows where the generated files for the app we're
31   # compiling live.
32   sources = [
33     "RendezvousServer.cpp",
34     "Server.cpp",
35   ]
36
37   deps = [
38     "${chip_root}/src/lib",
39     "${chip_root}/src/lib/mdns",
40   ]
41
42   public_configs = [ ":includes" ]
43
44   output_dir = root_out_dir
45 }