Yields all modules whose source files shall explicitly not appear in the dependency list, even if they have been imported.
()
| 170 | |
| 171 | |
| 172 | def depend_module_blacklist(): |
| 173 | """ |
| 174 | Yields all modules whose source files shall explicitly not appear in the |
| 175 | dependency list, even if they have been imported. |
| 176 | """ |
| 177 | # openage.config is created only after the first run of cmake, |
| 178 | # thus, the depends list will change at the second run of codegen, |
| 179 | # re-triggering cmake. |
| 180 | try: |
| 181 | import openage.config |
| 182 | yield openage.config |
| 183 | except ImportError: |
| 184 | pass |
| 185 | |
| 186 | # devmode is imported by config, so the same reason as above applies. |
| 187 | try: |
| 188 | import openage.devmode |
| 189 | yield openage.devmode |
| 190 | except ImportError: |
| 191 | pass |
| 192 | |
| 193 | |
| 194 | def get_codegen_depends(outputwrapper: CodegenDirWrapper) -> Generator[str, None, None]: |
no outgoing calls
no test coverage detected