Allow putting packages in subdirectories.
This commit is contained in:
		
							parent
							
								
									1f5cddb55f
								
							
						
					
					
						commit
						0bf7d35168
					
				
					 1 changed files with 9 additions and 2 deletions
				
			
		|  | @ -1,5 +1,6 @@ | ||||||
| import os | import os | ||||||
| import copy | import copy | ||||||
|  | from pathlib import Path | ||||||
| from . import utils | from . import utils | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | @ -160,12 +161,18 @@ def cincludes(manifests: dict) -> str: | ||||||
| 
 | 
 | ||||||
|     for key in manifests: |     for key in manifests: | ||||||
|         item = manifests[key] |         item = manifests[key] | ||||||
|         if item["enabled"] and "root-include" in item: |         if item["enabled"]: | ||||||
|             include_paths.append(item["dir"]) |             if "root-include" in item: | ||||||
|  |                 include_paths.append(item["dir"]) | ||||||
|  |             else: | ||||||
|  |                 include_paths.append(str(Path(item["dir"]).parent)) | ||||||
| 
 | 
 | ||||||
|     if len(include_paths) == 0: |     if len(include_paths) == 0: | ||||||
|         return "" |         return "" | ||||||
| 
 | 
 | ||||||
|  |     # remove duplicates | ||||||
|  |     include_paths = utils.stripDups(include_paths) | ||||||
|  | 
 | ||||||
|     return " -I" + " -I".join(include_paths) |     return " -I" + " -I".join(include_paths) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue