Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / examples / lock-app / lock-common / 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     "${chip_root}/src",
22   ]
23 }
24
25 source_set("lock-common") {
26   sources = [
27     "${chip_root}/src/app/clusters/bindings/bindings.cpp",
28     "${chip_root}/src/app/clusters/network-commissioning/network-commissioning-ember.cpp",
29     "${chip_root}/src/app/clusters/network-commissioning/network-commissioning.cpp",
30     "${chip_root}/src/app/clusters/on-off-server/on-off.cpp",
31     "${chip_root}/src/app/reporting/reporting-default-configuration.cpp",
32     "${chip_root}/src/app/reporting/reporting.cpp",
33     "${chip_root}/src/app/server/DataModelHandler.cpp",
34     "${chip_root}/src/app/util/af-event.cpp",
35     "${chip_root}/src/app/util/af-main-common.cpp",
36     "${chip_root}/src/app/util/attribute-size.cpp",
37     "${chip_root}/src/app/util/attribute-storage.cpp",
38     "${chip_root}/src/app/util/attribute-table.cpp",
39     "${chip_root}/src/app/util/binding-table.cpp",
40     "${chip_root}/src/app/util/chip-message-send.cpp",
41     "${chip_root}/src/app/util/client-api.cpp",
42     "${chip_root}/src/app/util/ember-print.cpp",
43     "${chip_root}/src/app/util/message.cpp",
44     "${chip_root}/src/app/util/process-cluster-message.cpp",
45     "${chip_root}/src/app/util/process-global-message.cpp",
46     "${chip_root}/src/app/util/util.cpp",
47     "gen/call-command-handler.cpp",
48     "gen/callback-stub.cpp",
49   ]
50
51   deps = [ "${chip_root}/src/lib" ]
52
53   public_configs = [ ":includes" ]
54 }