Check if this is a native or stub platform that doesn't need a framework
(self)
| 98 | ALL.append(self) |
| 99 | |
| 100 | def _is_native_or_stub_platform(self) -> bool: |
| 101 | """Check if this is a native or stub platform that doesn't need a framework""" |
| 102 | # Check for native platform |
| 103 | if self.platform and ( |
| 104 | "native" in self.platform.lower() or "stub" in self.platform.lower() |
| 105 | ): |
| 106 | return True |
| 107 | |
| 108 | # Check for stub build flags |
| 109 | if self.build_flags: |
| 110 | for flag in self.build_flags: |
| 111 | if "FASTLED_STUB" in flag or "PLATFORM_NATIVE" in flag: |
| 112 | return True |
| 113 | |
| 114 | # Check no_board_spec flag (typically used for native platforms) |
| 115 | if self.no_board_spec: |
| 116 | return True |
| 117 | |
| 118 | return False |
| 119 | |
| 120 | def _auto_detect_library_exclusions(self) -> None: |
| 121 | """Automatically detect and exclude libraries known to be broken on this platform.""" |