Add a warning if an IDF component doesn't register any source files

Issue #1180
This commit is contained in:
valeros
2023-09-05 12:33:22 +03:00
parent 6186d2ce98
commit 4af2332a15
+5 -1
View File
@@ -618,7 +618,11 @@ def _fix_component_relative_include(config, build_flags, source_index):
def prepare_build_envs(config, default_env, debug_allowed=True):
build_envs = []
target_compile_groups = config.get("compileGroups")
target_compile_groups = config.get("compileGroups", [])
if not target_compile_groups:
print("Warning! The `%s` component doesn't register any source files. "
"Check if sources are set in component's CMakeLists.txt!" % config["name"]
)
is_build_type_debug = "debug" in env.GetBuildType() and debug_allowed
for cg in target_compile_groups: