Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / examples / all-clusters-app / all-clusters-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   ]
22 }
23
24 source_set("all-clusters-common") {
25   sources = [
26     "${chip_root}/src/app/clusters/account-login-server/account-login-server.cpp",
27     "${chip_root}/src/app/clusters/application-launcher-server/application-launcher-server.cpp",
28     "${chip_root}/src/app/clusters/audio-output-server/audio-output-server.cpp",
29     "${chip_root}/src/app/clusters/barrier-control-server/barrier-control-server.cpp",
30     "${chip_root}/src/app/clusters/basic/basic.cpp",
31     "${chip_root}/src/app/clusters/bindings/bindings.cpp",
32     "${chip_root}/src/app/clusters/color-control-server/color-control-server.cpp",
33     "${chip_root}/src/app/clusters/content-launch-server/content-launch-server.cpp",
34     "${chip_root}/src/app/clusters/door-lock-server/door-lock-server-core.cpp",
35     "${chip_root}/src/app/clusters/door-lock-server/door-lock-server-logging.cpp",
36     "${chip_root}/src/app/clusters/door-lock-server/door-lock-server-schedule.cpp",
37     "${chip_root}/src/app/clusters/door-lock-server/door-lock-server-user.cpp",
38     "${chip_root}/src/app/clusters/general-commissioning-server/general-commissioning-server.cpp",
39     "${chip_root}/src/app/clusters/groups-server/groups-server.cpp",
40     "${chip_root}/src/app/clusters/ias-zone-server/ias-zone-server.cpp",
41     "${chip_root}/src/app/clusters/identify/identify.cpp",
42     "${chip_root}/src/app/clusters/keypad-input-server/keypad-input-server.cpp",
43     "${chip_root}/src/app/clusters/level-control/level-control.cpp",
44     "${chip_root}/src/app/clusters/low-power-server/low-power-server.cpp",
45     "${chip_root}/src/app/clusters/media-input-server/media-input-server.cpp",
46     "${chip_root}/src/app/clusters/media-playback-server/media-playback-server.cpp",
47     "${chip_root}/src/app/clusters/network-commissioning/network-commissioning-ember.cpp",
48     "${chip_root}/src/app/clusters/network-commissioning/network-commissioning.cpp",
49     "${chip_root}/src/app/clusters/on-off-server/on-off.cpp",
50     "${chip_root}/src/app/clusters/scenes/scenes.cpp",
51     "${chip_root}/src/app/clusters/target-navigator-server/target-navigator-server.cpp",
52     "${chip_root}/src/app/clusters/temperature-measurement-server/temperature-measurement-server.cpp",
53     "${chip_root}/src/app/clusters/tv-channel-server/tv-channel-server.cpp",
54     "${chip_root}/src/app/reporting/reporting-default-configuration.cpp",
55     "${chip_root}/src/app/reporting/reporting.cpp",
56     "${chip_root}/src/app/server/DataModelHandler.cpp",
57     "${chip_root}/src/app/util/af-event.cpp",
58     "${chip_root}/src/app/util/af-main-common.cpp",
59     "${chip_root}/src/app/util/attribute-size.cpp",
60     "${chip_root}/src/app/util/attribute-storage.cpp",
61     "${chip_root}/src/app/util/attribute-table.cpp",
62     "${chip_root}/src/app/util/binding-table.cpp",
63     "${chip_root}/src/app/util/chip-message-send.cpp",
64     "${chip_root}/src/app/util/client-api.cpp",
65     "${chip_root}/src/app/util/ember-print.cpp",
66     "${chip_root}/src/app/util/message.cpp",
67     "${chip_root}/src/app/util/process-cluster-message.cpp",
68     "${chip_root}/src/app/util/process-global-message.cpp",
69     "${chip_root}/src/app/util/util.cpp",
70     "gen/call-command-handler.cpp",
71     "gen/callback-stub.cpp",
72   ]
73
74   cflags = [ "-Wconversion" ]
75
76   deps = [ "${chip_root}/src/lib" ]
77
78   public_configs = [ ":includes" ]
79 }