Skip to content

Commit 33b4646

Browse files
liuX10xiaoxiang781216
authored andcommitted
settings: Makefile and CMakeLists
bug: v/79393 add settings_zblue source file. Signed-off-by: liuxiang18 <liuxiang18@xiaomi.com>
1 parent 432183d commit 33b4646

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

zblue/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,9 @@ if(CONFIG_BT)
755755
if(CONFIG_SETTINGS_NONE)
756756
list(APPEND CSRCS ${SETTINGS_DIR}/settings_none.c)
757757
endif()
758+
if(CONFIG_SETTINGS_ZBLUE)
759+
list(APPEND CSRCS ${SETTINGS_DIR}/settings_zblue.c)
760+
endif()
758761
if(CONFIG_SETTINGS_SHELL)
759762
list(APPEND CSRCS ${SETTINGS_DIR}/settings_shell.c)
760763
endif()
@@ -882,6 +885,7 @@ if(CONFIG_BT)
882885
${SRC_INC_ROOT}
883886
${ZBLUE_DIR}/subsys/bluetooth
884887
${ZBLUE_DIR}/subsys/bluetooth/host
888+
${ZBLUE_DIR}/subsys/settings/include
885889
)
886890

887891
target_link_libraries(zblue PRIVATE zblue_headers)

zblue/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,9 @@ ifeq ($(CONFIG_SETTINGS),y)
701701
ifeq ($(CONFIG_SETTINGS_NONE),y)
702702
CSRCS += $(SETTINGS_DIR)/settings_none.c
703703
endif
704+
ifeq ($(CONFIG_SETTINGS_ZBLUE),y)
705+
CSRCS += $(SETTINGS_DIR)/settings_zblue.c
706+
endif
704707
ifeq ($(CONFIG_SETTINGS_SHELL),y)
705708
CSRCS += $(SETTINGS_DIR)/settings_shell.c
706709
endif

0 commit comments

Comments
 (0)