summaryrefslogtreecommitdiff
path: root/include/py/homekit
diff options
context:
space:
mode:
Diffstat (limited to 'include/py/homekit')
-rw-r--r--include/py/homekit/pio/products.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/py/homekit/pio/products.py b/include/py/homekit/pio/products.py
index c4fcd73..a0e7a1f 100644
--- a/include/py/homekit/pio/products.py
+++ b/include/py/homekit/pio/products.py
@@ -89,8 +89,10 @@ def platformio_ini(product_config: dict,
buf.write(f'upload_port = {upload_port}\n')
buf.write(f'monitor_speed = {monitor_speed}\n')
if libs:
- buf.write(f'lib_deps =')
+ buf.write(f'lib_deps =\n')
for lib in libs:
+ if lib.startswith('homekit_'):
+ lib = 'file://../../include/pio/libs/'+lib[8:]
buf.write(f' {lib}\n')
buf.write(f'build_flags =\n')
if defines:
@@ -107,7 +109,7 @@ def platformio_ini(product_config: dict,
if type(value) is str and not is_enum:
buf.write('"\\"')
buf.write('\n')
- buf.write(f' -I../common/include')
+ buf.write(f' -I../../include/pio/include')
buf.write(f'\nbuild_type = {build_type}')
return buf.getvalue()