1 # Copyright (c) 2020-2021 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.
16 # Enable logging. Shorthand for chip_error_logging, etc.
21 # Configure target tyle: unix, embedded.
22 chip_target_style = ""
24 # Enable error logging.
25 chip_error_logging = chip_logging
27 # Enable progress logging.
28 chip_progress_logging = chip_logging
30 # Enable detail logging.
31 chip_detail_logging = chip_logging
33 # Enable short error strings.
34 chip_config_short_error_str = false
36 # Enable argument parser.
37 chip_config_enable_arg_parser = true
39 # Memory management style: malloc, simple, platform.
40 chip_config_memory_management = "malloc"
42 # Memory management debug option: enable additional checks.
43 chip_config_memory_debug_checks = false
45 # Memory management debug option: use dmalloc
46 chip_config_memory_debug_dmalloc = false
48 # Overall experimental options for CHIP
49 chip_enable_interaction_model = false
52 if (chip_target_style == "") {
53 if (current_os != "freertos" && current_os != "zephyr") {
54 chip_target_style = "unix"
56 chip_target_style = "embedded"
60 assert(chip_target_style == "unix" || chip_target_style == "embedded",
61 "Please select a valid target style: unix, embedded")
64 chip_config_memory_management == "malloc" ||
65 chip_config_memory_management == "simple" ||
66 chip_config_memory_management == "platform",
67 "Please select a valid memory management style: malloc, simple, platform")