Lines Matching refs:call

54         $(if $(call $2,$(_ndk_mod_filter_n)),$(_ndk_mod_filter_n))\
58 $(eval -local-func = $$(call seq,foo,$$1))\
59 $(call test-expect,,$(call -ndk-mod-filter,,-local-func))\
60 $(call test-expect,foo,$(call -ndk-mod-filter,foo,-local-func))\
61 $(call test-expect,foo,$(call -ndk-mod-filter,foo bar,-local-func))\
62 $(call test-expect,foo foo,$(call -ndk-mod-filter,aaa foo bar foo,-local-func))\
63 $(eval -local-func = $$(call sne,foo,$$1))\
64 $(call test-expect,,$(call -ndk-mod-filter,,-local-func))\
65 $(call test-expect,,$(call -ndk-mod-filter,foo,-local-func))\
66 $(call test-expect,bar,$(call -ndk-mod-filter,foo bar,-local-func))\
67 $(call test-expect,aaa bar,$(call -ndk-mod-filter,aaa foo bar,-local-func))
79 $(if $(call $2,$(_ndk_mod_filter_n)),,$(_ndk_mod_filter_n))\
83 $(eval -local-func = $$(call seq,foo,$$1))\
84 $(call test-expect,,$(call -ndk-mod-filter-out,,-local-func))\
85 $(call test-expect,,$(call -ndk-mod-filter-out,foo,-local-func))\
86 $(call test-expect,bar,$(call -ndk-mod-filter-out,foo bar,-local-func))\
87 $(call test-expect,aaa bar,$(call -ndk-mod-filter-out,aaa foo bar foo,-local-func))\
88 $(eval -local-func = $$(call sne,foo,$$1))\
89 $(call test-expect,,$(call -ndk-mod-filter-out,,-local-func))\
90 $(call test-expect,foo,$(call -ndk-mod-filter-out,foo,-local-func))\
91 $(call test-expect,foo,$(call -ndk-mod-filter-out,foo bar,-local-func))\
92 $(call test-expect,foo foo,$(call -ndk-mod-filter-out,aaa foo bar foo,-local-func))
102 -ndk-mod-find-first = $(firstword $(call -ndk-mod-filter,$1,$2))
105 $(eval -local-pred = $$(call seq,foo,$$1))\
106 $(call test-expect,,$(call -ndk-mod-find-first,,-local-pred))\
107 $(call test-expect,,$(call -ndk-mod-find-first,bar,-local-pred))
110 $(eval -local-pred = $$(call seq,foo,$$1))\
111 $(call test-expect,foo,$(call -ndk-mod-find-first,foo,-local-pred))\
112 $(call test-expect,foo,$(call -ndk-mod-find-first,aaa foo bar,-local-pred))\
113 $(call test-expect,foo,$(call -ndk-mod-find-first,aaa foo foo bar,-local-pred))
160 $(eval _ndk_mod_module := $$(call first,$$(_ndk_mod_wq)))\
161 $(eval _ndk_mod_wq := $$(call rest,$$(_ndk_mod_wq)))
165 $(call -ndk-mod-pop-first)\
166 $(call test-expect,A,$(_ndk_mod_module))\
167 $(call test-expect,B C,$(_ndk_mod_wq))\
176 $(call -ndk-mod-push-back, D E)\
177 $(call test-expect,A B C D E,$(_ndk_mod_wq))
181 $(eval _ndk_mod_depends := $$(call $$(_ndk_mod_deps_func),$$(_ndk_mod_module)))
186 $(call -ndk-mod-get-depends)\
207 $(call -ndk-mod-tree-setup-visit)\
209 $(call -ndk-mod-closure-visit,$(_ndk_mod_module))\
211 $(call -ndk-mod-closure-recursive)\
219 $(call -ndk-mod-push-back,$1)\
220 $(call -ndk-mod-tree-set-visited,$1)
223 $(call -ndk-mod-pop-first)\
225 $(call -ndk-mod-get-depends)\
227 $(if $(call -ndk-mod-tree-is-visited,$(_ndk_mod_dep)),,\
228 $(call -ndk-mod-closure-visit,$(_ndk_mod_dep))\
231 $(if $(_ndk_mod_wq),$(call -ndk-mod-closure-recursive))
235 $(call test-expect,,$(call -ndk-mod-get-closure,,-local-deps))
240 $(call test-expect,A,$(call -ndk-mod-get-closure,A,-local-deps))
246 $(call test-expect,A B,$(call -ndk-mod-get-closure,A,-local-deps))
253 $(call test-expect,A B C,$(call -ndk-mod-get-closure,A,-local-deps))
262 $(call test-expect,A B C D E,$(call -ndk-mod-get-closure,A,-local-deps))
297 -ndk-mod-topo-find-first-zero-incoming = $(firstword $(call -ndk-mod-filter-out,$1,-ndk-mod-topo-ha…
321 $(eval _ndk_mod_nodes := $(call -ndk-mod-get-closure,$1,$2))\
322 $(call -ndk-mod-topo-count,$(_ndk_mod_nodes))\
324 $(eval _ndk_mod_wq := $(call -ndk-mod-topo-find-first-zero-incoming,$(_ndk_mod_nodes)))\
325 $(call -ndk-mod-topo-sort)\
333 $(call -ndk-mod-topo-zero-incoming,$(_ndk_mod_module)))\
335 $(call -ndk-mod-get-depends)\
337 $(call -ndk-mod-topo-increment-incoming,$(_ndk_mod_dep))\
342 $(call -ndk-topo-debug,-ndk-mod-topo-sort: wq='$(_ndk_mod_wq)' list='$(_ndk_mod_list)')\
343 $(call -ndk-mod-pop-first)\
347 $(call -ndk-mod-topo-decrement-incoming,$(_ndk_mod_module))\
348 $(call -ndk-mod-get-depends)\
349 $(call -ndk-topo-debug,-ndk-mod-topo-sort: deps='$(_ndk_mod_depends)')\
351 $(call -ndk-mod-topo-decrement-incoming,$(_ndk_mod_dep))\
352 $(if $(call -ndk-mod-topo-has-incoming,$(_ndk_mod_dep)),,\
353 $(call -ndk-mod-push-back,$(_ndk_mod_dep))\
356 $(call -ndk-mod-topo-sort)\
362 $(call test-expect,,$(call -ndk-mod-get-topo-list,,-local-deps))
367 $(call test-expect,A,$(call -ndk-mod-get-topo-list,A,-local-deps))
374 $(call test-expect,A B C,$(call -ndk-mod-get-topo-list,A,-local-deps))
381 $(call test-expect,A C B,$(call -ndk-mod-get-topo-list,A,-local-deps))
389 $(call test-expect,A C B D,$(call -ndk-mod-get-topo-list,A,-local-deps))
396 $(call test-expect,A B C,$(call -ndk-mod-get-topo-list,A,-local-deps))
407 -ndk-mod-get-topological-depends = $(call rest,$(call -ndk-mod-get-topo-list,$1,$2))
413 $(eval topo_deps := $$(call -ndk-mod-get-topological-depends,A,-local-get-deps))\
414 $(call test-expect,B,$(topo_deps),topo dependencies)
421 $(eval bfs_deps := $$(call -ndk-mod-get-bfs-depends,A,-local-get-deps))\
422 $(eval topo_deps := $$(call -ndk-mod-get-topological-depends,A,-local-get-deps))\
423 $(call test-expect,B C,$(bfs_deps),dfs dependencies)\
424 $(call test-expect,C B,$(topo_deps),topo dependencies)
431 $(eval bfs_deps := $$(call -ndk-mod-get-bfs-depends,A,-local-get-deps))\
432 $(eval topo_deps := $$(call -ndk-mod-get-topological-depends,A,-local-get-deps))\
433 $(call test-expect,B C,$(bfs_deps),dfs dependencies)\
434 $(call test-expect,B C,$(topo_deps),topo dependencies)
449 $(eval _ndk_mod_wq := $(call strip-lib-prefix,$1)) \
452 $(call -ndk-mod-tree-setup-visit)\
453 $(call -ndk-mod-tree-set-visited,$(_ndk_mod_wq))\
454 $(call -ndk-mod-bfs-recursive) \
461 …$(call -ndk-mod-debug,-ndk-mod-bfs-recursive wq='$(_ndk_mod_wq)' list='$(_ndk_mod_list)' visited='…
462 $(call -ndk-mod-pop-first)\
464 $(call -ndk-mod-get-depends)\
465 $(call -ndk-mod-debug,. node='$(_ndk_mod_module)' deps='$(_ndk_mod_depends)')\
467 $(if $(call -ndk-mod-tree-is-visited,$(_ndk_mod_child)),,\
468 $(call -ndk-mod-tree-set-visited,$(_ndk_mod_child))\
469 $(call -ndk-mod-push-back,$(_ndk_mod_child))\
472 $(if $(_ndk_mod_wq),$(call -ndk-mod-bfs-recursive))
476 $(call test-expect,,$(call -ndk-mod-get-bfs-list,,-local-deps))
481 $(call test-expect,A,$(call -ndk-mod-get-bfs-list,A,-local-deps))
491 $(call test-expect,A B C D E F,$(call -ndk-mod-get-bfs-list,A,-local-deps))
505 -ndk-mod-get-bfs-depends = $(call rest,$(call -ndk-mod-get-bfs-list,$1,$2))
511 $(eval deps := $$(call -ndk-mod-get-bfs-depends,A,-local-deps-func))\
512 $(call test-expect,B,$(deps))
519 $(eval deps := $$(call -ndk-mod-get-bfs-depends,A,-local-deps-func))\
520 $(call test-expect,B C,$(deps))\
530 $(eval deps := $$(call -ndk-mod-get-bfs-depends,A,-local-deps-func))\
531 $(call test-expect,B C D E F,$(deps))\
537 $(eval deps := $$(call -ndk-mod-get-bfs-depends,A,-local-deps-func))\
538 $(call test-expect,B,$(deps))