|
| 1 | +# Copyright (c) 2023 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("libtrustymatter_config") { |
| 18 | + include_dirs = [ |
| 19 | + "repo/matter_client/include", |
| 20 | + "repo/libtrusty/include", |
| 21 | + ] |
| 22 | +} |
| 23 | + |
| 24 | +source_set("libtrustymatter") { |
| 25 | + sources = [ |
| 26 | + "repo/matter_client/trusty_matter.cpp", |
| 27 | + "repo/matter_client/trusty_matter_ipc.cpp", |
| 28 | + "repo/matter_client/matter_messages.cpp", |
| 29 | + "repo/matter_client/serializable.cpp", |
| 30 | + "repo/matter_client/include/mem.h", |
| 31 | + "repo/matter_client/include/matter_defs.h", |
| 32 | + "repo/matter_client/include/matter_ipc.h", |
| 33 | + "repo/matter_client/include/matter_messages.h", |
| 34 | + "repo/matter_client/include/serializable.h", |
| 35 | + "repo/matter_client/include/trusty_matter.h", |
| 36 | + "repo/matter_client/include/trusty_matter_ipc.h", |
| 37 | + "repo/matter_client/include/UniquePtr.h", |
| 38 | + "repo/libtrusty/trusty.c", |
| 39 | + "repo/libtrusty/include/trusty/ipc.h", |
| 40 | + "repo/libtrusty/include/trusty/tipc.h", |
| 41 | + ] |
| 42 | + |
| 43 | + cflags = [ "-Wno-implicit-fallthrough" ] |
| 44 | + cflags_cc = [ "-std=c++17" ] |
| 45 | + |
| 46 | + public_configs = [ ":libtrustymatter_config" ] |
| 47 | +} |
0 commit comments