File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -511,7 +511,10 @@ def derive_setup_local(
511511 )
512512
513513 if target_match and (python_min_match and python_max_match ):
514- line += f" { entry ['source' ]} "
514+ if source := entry .get ("source" ):
515+ line += f" { source } "
516+ for source in entry .get ("sources" , []):
517+ line += f" { source } "
515518
516519 for define in info .get ("defines" , []):
517520 line += f" -D{ define } "
@@ -549,7 +552,11 @@ def derive_setup_local(
549552 )
550553
551554 if target_match and (python_min_match and python_max_match ):
552- line += f" -I{ entry ['path' ]} "
555+ # TODO: Change to `include` and drop support for `path`
556+ if include := entry .get ("path" ):
557+ line += f" -I{ include } "
558+ for include in entry .get ("includes" , []):
559+ line += f" -I{ include } "
553560
554561 for path in info .get ("includes-deps" , []):
555562 # Includes are added to global search path.
You can’t perform that action at this time.
0 commit comments