1 ifeq ($(SHARED_LIBDATA), yes)
2 $(error Shared_LibData library as been renamed, please see libraries/shared_libdata.h for an explanation.)
5 ifeq ($(SHARED_SHUTDOWN), yes)
6 $(error Shared_Shutdown library as been renamed, please use libraries/stack_state.h instead \
7 and enable its usage with STACK_STATE_LIB)
10 # Any library needing app_scheduler must increment this variable
12 # scheduler_tasks+= + n
15 # Any library needing stack state callbacks must increment this variable
17 # stack_state_cbs+= + n
20 # Any library needing app_config filter must increment this variable
22 # library_app_config_filters+= + n
25 # Any library needing shared offline modules must increment this variable
27 # shared_offline_modules+= + n
28 shared_offline_modules=0
30 # Any library needing shared neighbors cllbacks must increment this variable
32 # shared_neighbors_cbs+= + n
33 shared_neighbors_cbs=0
35 ifeq ($(LOCAL_PROVISIONING), yes)
36 $(info LOCAL_PROVISIONING automatically enable PROVISIONING and PROVISIONING_PROXY)
38 PROVISIONING_PROXY=yes
40 app_config_filters+= + 1
44 ifeq ($(PROVISIONING), yes)
52 ifeq ($(PROVISIONING_PROXY), yes)
58 ifeq ($(CONTROL_NODE), yes)
63 ifeq ($(POSITIONING), yes)
66 app_config_filters+= + 2
67 shared_neighbors_cbs+= + 2
69 # - one in measurement for end of scan
70 # - one if route cb is implemented in poslib_contol
73 shared_offline_modules+= + 2
76 ifeq ($(SHARED_OFFLINE), yes)
80 ifeq ($(DUALMCU_LIB), yes)
82 app_config_filters+= + 1
88 # Enabling libraries needed by other libs and check app input
92 ifeq ($(SHARED_APP_CONFIG), yes)
94 ifndef SHARED_APP_CONFIG_FILTERS
95 $(error "Please define SHARED_APP_CONFIG_FILTERS from your application makefile. Previously\
96 directly added as a CFLAG: -DSHARED_APP_CONFIG_MAX_FILTER=n")
98 # Add to app libs own filters
99 app_config_filters+= + $(SHARED_APP_CONFIG_FILTERS)
101 ifneq ($(app_config_filters), 0)
102 $(info Enabling SHARED_APP_CONFIG as libraries need it)
103 SHARED_APP_CONFIG=yes
108 ifeq ($(SHARED_NEIGHBORS), yes)
109 ifndef SHARED_NEIGHBORS_CBS
110 $(error "Please define SHARED_NEIGHBORS_CBS from your application makefile. Previously\
111 directly added as a CFLAG: -DSHARED_NEIGHBORS_MAX_CB=n")
113 shared_neighbors_cbs+= + $(SHARED_NEIGHBORS_CBS)
115 ifneq ($(shared_neighbors_cbs), 0)
116 $(info Enabling SHARED_NEIGHBORS as libraries need it)
122 ifeq ($(STACK_STATE_LIB), yes)
123 ifdef STACK_STATE_CBS
124 stack_state_cbs+= + $(STACK_STATE_CBS)
126 # It is not an issue if STACK_STATE_CBS is not defined
127 # as lib can be used without callbacks
129 ifneq ($(stack_state_cbs), 0)
130 $(info Enabling STACK_STATE_LIB as libraries need it)
135 # Shared offline library
136 ifeq ($(SHARED_OFFLINE), yes)
137 ifndef SHARED_OFFLINE_MODULES
138 $(error "Please define SHARED_OFFLINE_MODULES from your application makefile. Previously\
139 directly added as a CFLAG: -DSHARED_OFFLINE_MAX_MODULES=n")
141 shared_offline_modules+= + $(SHARED_OFFLINE_MODULES)
143 ifneq ($(shared_offline_modules), 0)
144 $(info Enabling SHARED_OFFLINE as libraries need it)
150 ifeq ($(APP_SCHEDULER), yes)
151 ifndef APP_SCHEDULER_TASKS
152 $(error "Please define APP_SCHEDULER_TASKS from your application makefile. Previously\
153 directly added as a CFLAG: -DAPP_SCHEDULER_MAX_TASKS=n")
155 scheduler_tasks+= + $(APP_SCHEDULER_TASKS)
157 ifneq ($(scheduler_tasks), 0)
158 $(info Enabling APP_SCHEDULER as libraries need it but app not)