Skip to content

Commit 880b736

Browse files
committed
fixup! build_system/dependencies: add lufa dependency
1 parent f318bc7 commit 880b736

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

build_system/dependencies.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,18 +152,20 @@ def __init__(self, location: BuildLocation) -> None:
152152
super().__init__(location)
153153

154154
src_path = self.base_path / 'LUFA/Drivers/USB'
155+
common_path = self.base_path / 'LUFA/Common'
155156

156157
for path in src_path.rglob('*.c'):
157158
self.source.add(path)
158159

159-
self._include = [
160-
'LUFA/Common'
161-
'LUFA/Driver/USB'
162-
]
163-
self._external_include = [
164-
'LUFA/Common'
165-
'LUFA/Driver/USB'
166-
]
160+
self.include = {
161+
src_path,
162+
common_path,
163+
self.location.code,
164+
}
165+
self.external_include = {
166+
src_path,
167+
common_path,
168+
}
167169

168170

169171
@dataclasses.dataclass(init=False)

0 commit comments

Comments
 (0)