Lines Matching refs:call
50 $(call __ndk_error, Assertion failure: $(__varname) is not defined)\
65 $(call __ndk_info, Required variable $(__varname) is not defined by $2)\
66 $(call __ndk_error,Aborting)\
94 @$$(call host-mkdir,$$@)
98 generate-dir = $(eval $(call ev-generate-dir,$1))
114 __ndk_file_dir := $(call parent-dir,$1)
115 $$(call generate-dir,$$(__ndk_file_dir))
119 generate-file-dir = $(eval $(call ev-generate-file-dir,$1))
145 bump-0-to-1 = $(if $(call index-is-zero,$1),1,$1)
148 $(call test-expect,$(call bump-0-to-1))\
149 $(call test-expect,1,$(call bump-0-to-1,0))\
150 $(call test-expect,1,$(call bump-0-to-1,1))\
151 $(call test-expect,2,$(call bump-0-to-1,2))\
152 $(call test-expect,1,$(call bump-0-to-1,00))\
153 $(call test-expect,1,$(call bump-0-to-1,000))\
154 $(call test-expect,1,$(call bump-0-to-1,0000))\
155 $(call test-expect,1,$(call bump-0-to-1,00000))\
156 $(call test-expect,1,$(call bump-0-to-1,000000))\
157 $(call test-expect,10,$(call bump-0-to-1,10))\
158 $(call test-expect,100,$(call bump-0-to-1,100))
161 index-word-list = $(wordlist $(call bump-0-to-1,$1),$2,$3)
164 $(call test-expect,,$(call index-word-list,1,1))\
165 $(call test-expect,a b,$(call index-word-list,0,2,a b c d))\
166 $(call test-expect,b c,$(call index-word-list,2,3,a b c d))\
196 $(call list-file-start-gen-10,$10,$2)
197 $(call list-file-always-gen-10,$11,$2)
198 $(call list-file-always-gen-10,$12,$2)
199 $(call list-file-always-gen-10,$13,$2)
200 $(call list-file-always-gen-10,$14,$2)
201 $(call list-file-always-gen-10,$15,$2)
202 $(call list-file-always-gen-10,$16,$2)
203 $(call list-file-always-gen-10,$17,$2)
204 $(call list-file-always-gen-10,$18,$2)
205 $(call list-file-always-gen-10,$19,$2)
209 $(call list-file-always-gen-10,$10,$2)
210 $(call list-file-always-gen-10,$11,$2)
211 $(call list-file-always-gen-10,$12,$2)
212 $(call list-file-always-gen-10,$13,$2)
213 $(call list-file-always-gen-10,$14,$2)
214 $(call list-file-always-gen-10,$15,$2)
215 $(call list-file-always-gen-10,$16,$2)
216 $(call list-file-always-gen-10,$17,$2)
217 $(call list-file-always-gen-10,$18,$2)
218 $(call list-file-always-gen-10,$19,$2)
222 ifneq ($(word $(call bump-0-to-1,$100),$2),)
224 $(call list-file-start-gen-10,$10,$2)
225 $(call list-file-always-gen-10,$11,$2)
226 $(call list-file-always-gen-10,$12,$2)
227 $(call list-file-always-gen-10,$13,$2)
228 $(call list-file-always-gen-10,$14,$2)
229 $(call list-file-always-gen-10,$15,$2)
230 $(call list-file-always-gen-10,$16,$2)
231 $(call list-file-always-gen-10,$17,$2)
232 $(call list-file-always-gen-10,$18,$2)
233 $(call list-file-always-gen-10,$19,$2)
236 $(call list-file-start-gen-10,$10,$2)
237 $(call list-file-always-gen-10,$11,$2)
238 $(call list-file-always-gen-10,$12,$2)
239 $(call list-file-always-gen-10,$13,$2)
240 $(call list-file-always-gen-10,$14,$2)
241 $(call list-file-maybe-gen-10,$15,$2)
242 $(call list-file-maybe-gen-10,$16,$2)
243 $(call list-file-maybe-gen-10,$17,$2)
244 $(call list-file-maybe-gen-10,$18,$2)
245 $(call list-file-maybe-gen-10,$19,$2)
247 $(call list-file-start-gen-10,$10,$2)
248 $(call list-file-maybe-gen-10,$11,$2)
249 $(call list-file-maybe-gen-10,$12,$2)
250 $(call list-file-maybe-gen-10,$13,$2)
251 $(call list-file-maybe-gen-10,$14,$2)
258 ifneq ($(word $(call bump-0-to-1,$1000),$2),)
260 $(call list-file-start-gen-100,$10,$2)
261 $(call list-file-always-gen-100,$11,$2)
262 $(call list-file-always-gen-100,$12,$2)
263 $(call list-file-always-gen-100,$13,$2)
264 $(call list-file-always-gen-100,$14,$2)
265 $(call list-file-always-gen-100,$15,$2)
266 $(call list-file-always-gen-100,$16,$2)
267 $(call list-file-always-gen-100,$17,$2)
268 $(call list-file-always-gen-100,$18,$2)
269 $(call list-file-always-gen-100,$19,$2)
272 $(call list-file-start-gen-100,$10,$2)
273 $(call list-file-always-gen-100,$11,$2)
274 $(call list-file-always-gen-100,$12,$2)
275 $(call list-file-always-gen-100,$13,$2)
276 $(call list-file-always-gen-100,$14,$2)
277 $(call list-file-maybe-gen-100,$15,$2)
278 $(call list-file-maybe-gen-100,$16,$2)
279 $(call list-file-maybe-gen-100,$17,$2)
280 $(call list-file-maybe-gen-100,$18,$2)
281 $(call list-file-maybe-gen-100,$19,$2)
283 $(call list-file-start-gen-100,$10,$2)
284 $(call list-file-maybe-gen-100,$11,$2)
285 $(call list-file-maybe-gen-100,$12,$2)
286 $(call list-file-maybe-gen-100,$13,$2)
287 $(call list-file-maybe-gen-100,$14,$2)
299 $$(call generate-file-dir,$$(__list_file).tmp)
303 $(call list-file-maybe-gen-1000,0,$1)
304 $(call list-file-maybe-gen-1000,1,$1)
305 $(call list-file-maybe-gen-1000,2,$1)
306 $(call list-file-maybe-gen-1000,3,$1)
307 $(call list-file-maybe-gen-1000,4,$1)
308 $(call list-file-maybe-gen-1000,5,$1)
311 $$(hide) $$(call host-copy-if-differ,$$@.tmp,$$@)
312 $$(hide) $$(call host-rm,$$@.tmp)
316 generate-list-file = $(eval $(call generate-list-file-ev,$1,$2))
329 link-whole-archives = $(if $(strip $1),$(call link-whole-archive-flags,$1))
330 link-whole-archive-flags = -Wl,--whole-archive $(call host-path,$1) -Wl,--no-whole-archive
333 $(call test-expect,,$(call link-whole-archives))\
336 $(call test-expect,$(_start) foo $(_end),$(call link-whole-archives,foo))\
337 $(call test-expect,$(_start) foo bar $(_end),$(call link-whole-archives,foo bar))
493 $(call assert-defined,LOCAL_MAKEFILE LOCAL_BUILT_MODULE LOCAL_OBJS_DIR LOCAL_MODULE_CLASS)\
494 $(if $(call set_is_member,$(__ndk_modules),$1),\
495 $(call __ndk_info,Trying to define local module '$1' in $(LOCAL_MAKEFILE).)\
496 $(call __ndk_info,But this module was already defined by $(__ndk_modules.$1.MAKEFILE).)\
497 $(call __ndk_error,Aborting.)\
499 $(eval __ndk_modules := $(call set_insert,$(__ndk_modules),$1))\
501 $(eval __ndk_top_modules := $(call set_insert,$(__ndk_top_modules),$1))\
503 $(if $(call module-class-is-installable,$(LOCAL_MODULE_CLASS)),\
508 $(eval LOCAL_$(__field) := $(call strip-lib-prefix,$(LOCAL_$(__field)))))\
512 $(call module-handle-c++-features,$1)
525 module-is-installable = $(call module-class-is-installable,$(call module-get-class,$1))
532 module-is-copyable = $(call module-class-is-copyable,$(call module-get-class,$1))
555 $(call module-get-export,$(__listed_module),$2)\
602 $(call module-add-depends-any,$1,$2,depends) \
614 $(call module-add-depends-any,$1,$2,depends) \
631 $(call module-get-class,$1)))
641 $(call module-get-class,$1)))
648 module-filter-static-libraries = $(call filter-by,$1,module-is-static-library)
655 module-filter-shared-libraries = $(call filter-by,$1,module-is-shared-library)
718 module-get-all-dependencies = $(call -ndk-mod-get-closure,$1,module-get-depends)
736 $(call -ndk-mod-get-topological-depends,$1,-ndk-mod-link-deps))
744 $(if $(call seq,$1,$(_ndk_mod_link_module))$(call module-is-static-library,$1),\
745 $(call module-get-direct-libs,$1))
757 $(eval _ndk_mod_whole_all := $(call map,module-get-whole-static-libs,$1 $2))\
765 $(call module-compute-depends,$(__module))\
769 $(call module-add-static-depends,$1,$(__ndk_modules.$1.STATIC_LIBRARIES))\
770 $(call module-add-static-depends,$1,$(__ndk_modules.$1.WHOLE_STATIC_LIBRARIES))\
771 $(call module-add-shared-depends,$1,$(__ndk_modules.$1.SHARED_LIBRARIES))\
786 $(foreach __alldep,$(call module-get-all-dependencies,$1),\
787 $(if $(call module-is-installable,$(__alldep)),$(__alldep))\
803 $(eval __extensions := $(call module-get-c++-extensions,$1))\
808 module-has-c++-sources = $(strip $(call module-get-c++-sources,$1))
817 $(if $(call module-has-c++-sources,$(__module)),\
818 $(call ndk_log,Module '$(__module)' has C++ sources)\
819 $(call module-add-c++-deps,$(__module),$1,$2),\
847 $(lastword $(filter -frtti -fno-rtti,$(call module-get-c++-flags,$1)))\
855 $(lastword $(filter -fexceptions -fno-execeptions,$(call module-get-c++-flags,$1)))\
872 …$(call __ndk_info,WARNING: Ignoring invalid values in LOCAL_CPP_FEATURES definition in $(__ndk_mod…
877 $(if $(call module-flags-have-rtti,$1),rtti) \
878 $(if $(call module-flags-have-exceptions,$1),exceptions) \
881 $(call module-filter-out-compiler-flags,$1,-frtti -fno-rtti -fexceptions -fno-exceptions)\
890 $(eval __cxxdeps := $(call module-get-all-dependencies,$1))\
902 $(if $(call strip,$2),$(call ndk_log,Add dependency '$(call strip,$2)' to module '$1'))\
904 $(if $(call strip,$3),$(call ndk_log,Add dependency '$(call strip,$3)' to module '$1'))\
926 $(call test-expect,foo,$(call pretty-dir,foo))\
927 $(call test-expect,foo,$(call pretty-dir,$(NDK_PROJECT_PATH)/foo))\
928 $(call test-expect,foo/bar,$(call pretty-dir,$(NDK_PROJECT_PATH)/foo/bar))\
929 $(call test-expect,<NDK>/foo,$(call pretty-dir,$(NDK_ROOT)/foo))\
930 $(call test-expect,<NDK>/foo/bar,$(call pretty-dir,$(NDK_ROOT)/foo/bar))
941 $(call __ndk_error,Missing $1 before including $3 in $2))
954 $(call check-user-define,LOCAL_MODULE,$(local-makefile),$(1)) \
955 $(if $(call seq,$(words $(LOCAL_MODULE)),1),,\
956 $(call __ndk_info,LOCAL_MODULE definition in $(local-makefile) must not contain space)\
957 $(call __ndk_error,Please correct error. Aborting)\
969 $(if $(call seq,$(words $(LOCAL_MODULE_FILENAME)),1),,\
970 …$(call __ndk_info,$(LOCAL_MAKEFILE):$(LOCAL_MODULE): LOCAL_MODULE_FILENAME must not contain spaces…
971 $(call __ndk_error,Plase correct error. Aborting)\
974 …$(call __ndk_info,$(LOCAL_MAKEFILE):$(LOCAL_MODULE): LOCAL_MODULE_FILENAME should not include file…
987 handle-module-filename = $(eval $(call ev-handle-module-filename,$1,$2))
997 …$$(call __ndk_info,$$(LOCAL_MAKEFILE):$$(LOCAL_MODULE): LOCAL_MODULE_FILENAME must not contain any…
998 $$(call __ndk_error,Aborting)
1001 …$$(call __ndk_info,$$(LOCAL_MAKEFILE):$$(LOCAL_MODULE): LOCAL_MODULE_FILENAME must not contain a f…
1002 $$(call __ndk_error,Aborting)
1005 …$$(call __ndk_info,$$(LOCAL_MAKEFILE):$$(LOCAL_MODULE): LOCAL_MODULE_FILENAME must not contain dir…
1006 $$(call __ndk_error,Aborting)
1022 $$(eval $$(call ev-check-module-filename))
1026 handle-prebuilt-module-filename = $(eval $(call ev-handle-prebuilt-module-filename,$1))
1042 $$(eval $$(call ev-check-module-filename))
1067 local-prebuilt-path = $(call local-source-file-path,$1)
1079 $(eval LOCAL_MODULE := $$(call strip-lib-prefix,$$(LOCAL_MODULE)))
1086 my-dir = $(call parent-dir,$(lastword $(MAKEFILE_LIST)))
1102 all-subdir-makefiles = $(call all-makefiles-under,$(call my-dir))
1166 $(eval LOCAL_SRC_TAGS := $(call set_insert,$2,$(LOCAL_SRC_TAGS))) \
1167 $(eval LOCAL_SRC_TAG.$2 := $(call set_union,$1,$(LOCAL_SRC_TAG.$2))) \
1249 $(info WITH arm = $(call get-src-files-with-tag,arm)) \
1250 $(info WITHOUT arm = $(call get-src-files-without-tag,arm)) \
1304 $(call test-expect,foo.o,$(call get-object-name,foo.c))\
1305 $(call test-expect,bar.o,$(call get-object-name,bar.s))\
1306 $(call test-expect,zoo.o,$(call get-object-name,zoo.S))\
1307 $(call test-expect,tot.o,$(call get-object-name,tot.cpp))\
1308 $(call test-expect,RS.o,$(call get-object-name,RS.rs))\
1309 $(call test-expect,goo.o,$(call get-object-name,goo.asm))
1374 local-source-file-path = $(if $(call host-path-is-absolute,$1),$1,$(LOCAL_PATH)/$1)
1420 $$(_OBJ): PRIVATE_DEPS := $$(call host-path,$$(_OBJ).d)
1428 $$(_OBJ): $$(call generate-list-file,$$(_FLAGS),$$(_OPTIONS_LISTFILE))
1429 $$(_OBJ): PRIVATE_CFLAGS := @$$(call host-path,$$(_OPTIONS_LISTFILE))
1433 $$(call generate-file-dir,$$(_OBJ))
1435 …$$(call host-echo-build-step,$$(PRIVATE_ABI),$$(PRIVATE_TEXT)) "$$(PRIVATE_MODULE) <= $$(notdir $$…
1436 …IVATE_CC) -MMD -MP -MF $$(call convert-deps,$$(PRIVATE_DEPS)) $$(PRIVATE_CFLAGS) $$(call host-path…
1437 $$(call cmd-convert-deps,$$(PRIVATE_DEPS))
1464 $$(_OBJ): PRIVATE_DEPS := $$(call host-path,$$(_OBJ).d)
1478 $$(_OBJ): $$(call generate-list-file,$$(_CPP_FLAGS),$$(_OPTIONS_LISTFILE))
1479 $$(_OBJ): PRIVATE_CPPFLAGS := @$$(call host-path,$$(_OPTIONS_LISTFILE))
1488 …$$(call host-echo-build-step,$$(PRIVATE_ABI),$$(PRIVATE_TEXT)) "$$(PRIVATE_MODULE) <= $$(notdir $$…
1490 … $$(call host-path,$$(dir $$(PRIVATE_RS_SRC))) && $$(PRIVATE_RS_CC) -o $$(call host-path,$$(abspat…
1492 …call host-path,$$(PRIVATE_BC_OBJ)) -fPIC -shared -rt-path $$(call host-path,$(SYSROOT_LINK)/usr/li…
1493 …call host-path,$$(PRIVATE_BC_OBJ)) $$(call host-path,$(SYSROOT_LINK)/usr/lib/rs/libcompiler_rt.a) …
1494 …E_CXX) -MMD -MP -MF $$(call convert-deps,$$(PRIVATE_DEPS)) $$(PRIVATE_CPPFLAGS) $$(call host-path,…
1495 $$(call cmd-convert-deps,$$(PRIVATE_DEPS))
1498 …$$(call host-echo-build-step,$$(PRIVATE_ABI),$$(PRIVATE_TEXT)) "$$(PRIVATE_MODULE) <= $$(notdir $$…
1500 … $$(call host-path,$$(dir $$(PRIVATE_RS_SRC))) && $$(PRIVATE_RS_CC) -o $$(call host-path,$$(abspat…
1502 …E_CXX) -MMD -MP -MF $$(call convert-deps,$$(PRIVATE_DEPS)) $$(PRIVATE_CPPFLAGS) $$(call host-path,…
1503 $$(call cmd-convert-deps,$$(PRIVATE_DEPS))
1513 $$(eval $$(call ev-build-file))
1558 $$(eval $$(call ev-build-file))
1568 …$$(call host-echo-build-step,$$(PRIVATE_ABI),AsmFilter) "$$(PRIVATE_MODULE) <= $$(notdir $$(PRIVAT…
1577 $$(eval $$(call ev-build-file))
1591 _SRC:=$$(call local-source-file-path,$(1))
1595 $$(call get-src-file-target-cflags,$(1)) \
1596 $$(call host-c-includes,$$(LOCAL_C_INCLUDES) $$(LOCAL_PATH)) \
1601 $$(call host-c-includes,$$($(my)C_INCLUDES)) \
1604 _TEXT := Compile $$(call get-src-file-text,$1)
1607 $$(eval $$(call ev-build-source-file))
1619 _SRC:=$$(call local-source-file-path,$(1))
1622 _FLAGS := $$(call host-c-includes,$$(LOCAL_C_INCLUDES) $$(LOCAL_PATH)) \
1625 $$(call host-c-includes,$$($(my)C_INCLUDES)) \
1628 _TEXT := Assemble $$(call get-src-file-text,$1)
1641 $$(_OBJ): $$(call generate-list-file,$$(_FLAGS),$$(_OPTIONS_LISTFILE))
1642 $$(_OBJ): PRIVATE_CFLAGS := @$$(call host-path,$$(_OPTIONS_LISTFILE))
1646 $$(call generate-file-dir,$$(_OBJ))
1648 …$$(call host-echo-build-step,$$(PRIVATE_ABI),$$(PRIVATE_TEXT)) "$$(PRIVATE_MODULE) <= $$(notdir $$…
1649 …$$(hide) $$(PRIVATE_CC) $$(PRIVATE_CFLAGS) $$(call host-path,$$(PRIVATE_SRC)) -o $$(call host-path…
1660 compile-c-source = $(eval $(call ev-compile-c-source,$1,$2))
1670 compile-s-source = $(eval $(call ev-compile-c-source,$1,$2))
1680 compile-asm-source = $(eval $(call ev-compile-asm-source,$1,$2))
1692 _SRC:=$$(call local-source-file-path,$(1))
1695 $$(call get-src-file-target-cflags,$(1)) \
1696 $$(call host-c-includes, $$(LOCAL_C_INCLUDES) $$(LOCAL_PATH)) \
1703 $$(call host-c-includes,$$($(my)C_INCLUDES)) \
1707 _TEXT := Compile++ $$(call get-src-file-text,$1)
1709 $$(eval $$(call ev-build-source-file))
1720 compile-cpp-source = $(eval $(call ev-compile-cpp-source,$1,$2))
1736 _RS_SRC:=$$(call local-source-file-path,$(1))
1743 $$(call get-src-file-target-cflags,$(1)) \
1744 $$(call host-c-includes, $$(LOCAL_C_INCLUDES) $$(LOCAL_PATH)) \
1751 $$(call host-c-includes,$$($(my)C_INCLUDES)) \
1755 _RS_FLAGS := $$(call host-c-includes, $$(LOCAL_RENDERSCRIPT_INCLUDES) $$(LOCAL_PATH)) \
1758 $$(call host-c-includes,$$($(my)RENDERSCRIPT_INCLUDES)) \
1766 $$(eval $$(call ev-build-rs-file))
1781 compile-rs-source = $(eval $(call ev-compile-rs-source,$1,$2,$3,$4,$5,$6))
1794 $(call ndk_log,Adding import directory: $1)\
1803 $(call ndk_log,Adding import directory: $1)\
1806 $(call __ndk_info,WARNING: Ignoring unknown import directory: $1)\
1813 $(call ndk_log, Probing $(__import_dir)/$1/Android.mk)\
1841 $(if $(call seq,$(words $(__import_tag)),1),,\
1842 …$(call __ndk_info,$(call local-makefile): Cannot import module with spaces in tag: '$(__import_tag…
1844 $(if $(call set_is_member,$(__ndk_import_list),$(__import_tag)),\
1845 $(call ndk_log,Skipping duplicate import for module with tag '$(__import_tag)')\
1847 $(call ndk_log,Looking for imported module with tag '$(__import_tag)')\
1848 $(eval __imported_path := $(call import-find-module,$(__import_tag)))\
1850 $(call ndk_log, Found in $(__imported_path))\
1852 $(eval __ndk_import_list := $(call set_insert,$(__ndk_import_list),$(__import_tag)))\
1856 …$(call __ndk_info,$(call local-makefile): Cannot find module with tag '$(__import_tag)' in import …
1857 $(call __ndk_info,Are you sure your NDK_MODULE_PATH variable is properly defined ?)\
1858 $(call __ndk_info,The following directories were searched:)\
1860 $(call __ndk_info, $(__import_dir))\
1862 $(call __ndk_error,Aborting.)\
1900 $(call module-class-register,$1,$2,$3) \
1905 module-class-check = $(call set_is_member,$(NDK_MODULE_CLASSES),$1)
1913 module-class-is-copyable = $(if $(call seq,$1,PREBUILT_SHARED_LIBRARY),$(true),$(false))
1921 $(call module-class-register,STATIC_LIBRARY,lib,$(TARGET_LIB_EXTENSION))
1926 $(call module-class-register-installable,SHARED_LIBRARY,lib,$(TARGET_SONAME_EXTENSION))
1931 $(call module-class-register-installable,EXECUTABLE,,)
1936 $(call module-class-register-installable,PREBUILT_SHARED_LIBRARY,,)
1940 $(call module-class-register,PREBUILT_STATIC_LIBRARY,,)
1960 $(eval NDK_STL.$(__ndk_stl).STATIC_LIBS := $(strip $(call strip-lib-prefix,$3))) \
1961 $(eval NDK_STL.$(__ndk_stl).SHARED_LIBS := $(strip $(call strip-lib-prefix,$4)))
1967 $(if $(call set_is_member,$(NDK_STL_LIST),$1),,\
1968 $(call __ndk_info,Invalid APP_STL value: $1)\
1969 $(call __ndk_info,Please use one of the following instead: $(NDK_STL_LIST))\
1970 $(call __ndk_error,Aborting))
1977 $(call import-module,$(NDK_STL.$1.IMPORT_MODULE))
1984 $(call modules-add-c++-dependencies,\
1993 $(call ndk-stl-register,\
2001 $(call ndk-stl-register,\
2009 $(call ndk-stl-register,\
2018 $(call ndk-stl-register,\
2027 $(call ndk-stl-register,\
2036 $(call ndk-stl-register,\
2045 $(call ndk-stl-register,\
2054 $(call ndk-stl-register,\
2063 $(call ndk-stl-register,\
2073 $(call ndk-stl-register,\
2079 $(call ndk-run-all-tests)