refactor: fix conditional building
This commit is contained in:
parent
0f64b003a1
commit
0d49691626
1 changed files with 8 additions and 5 deletions
|
@ -69,11 +69,14 @@ if ((NOT CONFIG_ZMK_SPLIT) OR CONFIG_ZMK_SPLIT_ROLE_CENTRAL)
|
|||
target_sources(app PRIVATE src/behaviors/behavior_bt.c)
|
||||
target_sources(app PRIVATE src/ble.c)
|
||||
target_sources(app PRIVATE src/hog.c)
|
||||
if (CONFIG_ZMK_SPLIT_ROLE_CENTRAL)
|
||||
target_sources(app PRIVATE src/battery_split.c)
|
||||
else()
|
||||
target_sources(app PRIVATE src/battery.c)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (CONFIG_ZMK_BLE)
|
||||
if (CONFIG_ZMK_SPLIT_ROLE_CENTRAL)
|
||||
target_sources(app PRIVATE src/battery_split.c)
|
||||
else()
|
||||
target_sources(app PRIVATE src/battery.c)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue