Lines Matching defs:file
4 # you may not use this file except in compliance with the License.
35 # Returns : the name of the last parsed Android.mk file
57 # 2: file where the variable(s) should be defined
59 # Usage : $(call check-required-vars, VAR1 VAR2 VAR3..., <file>)
98 # Function : generate-file-dir
99 # Arguments: 1: file path
101 # directory of the input file path will be created before it.
103 # Usage : $(call generate-file-dir,<file>)
110 define ev-generate-file-dir
116 generate-file-dir = $(eval $(call ev-generate-file-dir,$1))
119 # Function : generate-list-file
121 # 2: file name
122 # Returns : write the content of a possibly very long string list to a file.
125 # Usage : $(call host-echo-to-file,<string-list>,<file>)
129 # @<listfile> syntax, where <listfile> is the path of a file
132 # This function is used to generate such a list file from a long
173 define list-file-start-gen-10
180 define list-file-always-gen-10
184 # Same as list-file-always-gen-10, except that the word list might be
186 define list-file-maybe-gen-10
192 define list-file-start-gen-100
193 $(call list-file-start-gen-10,$10,$2)
194 $(call list-file-always-gen-10,$11,$2)
195 $(call list-file-always-gen-10,$12,$2)
196 $(call list-file-always-gen-10,$13,$2)
197 $(call list-file-always-gen-10,$14,$2)
198 $(call list-file-always-gen-10,$15,$2)
199 $(call list-file-always-gen-10,$16,$2)
200 $(call list-file-always-gen-10,$17,$2)
201 $(call list-file-always-gen-10,$18,$2)
202 $(call list-file-always-gen-10,$19,$2)
205 define list-file-always-gen-100
206 $(call list-file-always-gen-10,$10,$2)
207 $(call list-file-always-gen-10,$11,$2)
208 $(call list-file-always-gen-10,$12,$2)
209 $(call list-file-always-gen-10,$13,$2)
210 $(call list-file-always-gen-10,$14,$2)
211 $(call list-file-always-gen-10,$15,$2)
212 $(call list-file-always-gen-10,$16,$2)
213 $(call list-file-always-gen-10,$17,$2)
214 $(call list-file-always-gen-10,$18,$2)
215 $(call list-file-always-gen-10,$19,$2)
218 define list-file-maybe-gen-100
221 $(call list-file-start-gen-10,$10,$2)
222 $(call list-file-always-gen-10,$11,$2)
223 $(call list-file-always-gen-10,$12,$2)
224 $(call list-file-always-gen-10,$13,$2)
225 $(call list-file-always-gen-10,$14,$2)
226 $(call list-file-always-gen-10,$15,$2)
227 $(call list-file-always-gen-10,$16,$2)
228 $(call list-file-always-gen-10,$17,$2)
229 $(call list-file-always-gen-10,$18,$2)
230 $(call list-file-always-gen-10,$19,$2)
233 $(call list-file-start-gen-10,$10,$2)
234 $(call list-file-always-gen-10,$11,$2)
235 $(call list-file-always-gen-10,$12,$2)
236 $(call list-file-always-gen-10,$13,$2)
237 $(call list-file-always-gen-10,$14,$2)
238 $(call list-file-maybe-gen-10,$15,$2)
239 $(call list-file-maybe-gen-10,$16,$2)
240 $(call list-file-maybe-gen-10,$17,$2)
241 $(call list-file-maybe-gen-10,$18,$2)
242 $(call list-file-maybe-gen-10,$19,$2)
244 $(call list-file-start-gen-10,$10,$2)
245 $(call list-file-maybe-gen-10,$11,$2)
246 $(call list-file-maybe-gen-10,$12,$2)
247 $(call list-file-maybe-gen-10,$13,$2)
248 $(call list-file-maybe-gen-10,$14,$2)
254 define list-file-maybe-gen-1000
257 $(call list-file-start-gen-100,$10,$2)
258 $(call list-file-always-gen-100,$11,$2)
259 $(call list-file-always-gen-100,$12,$2)
260 $(call list-file-always-gen-100,$13,$2)
261 $(call list-file-always-gen-100,$14,$2)
262 $(call list-file-always-gen-100,$15,$2)
263 $(call list-file-always-gen-100,$16,$2)
264 $(call list-file-always-gen-100,$17,$2)
265 $(call list-file-always-gen-100,$18,$2)
266 $(call list-file-always-gen-100,$19,$2)
269 $(call list-file-start-gen-100,$10,$2)
270 $(call list-file-always-gen-100,$11,$2)
271 $(call list-file-always-gen-100,$12,$2)
272 $(call list-file-always-gen-100,$13,$2)
273 $(call list-file-always-gen-100,$14,$2)
274 $(call list-file-maybe-gen-100,$15,$2)
275 $(call list-file-maybe-gen-100,$16,$2)
276 $(call list-file-maybe-gen-100,$17,$2)
277 $(call list-file-maybe-gen-100,$18,$2)
278 $(call list-file-maybe-gen-100,$19,$2)
280 $(call list-file-start-gen-100,$10,$2)
281 $(call list-file-maybe-gen-100,$11,$2)
282 $(call list-file-maybe-gen-100,$12,$2)
283 $(call list-file-maybe-gen-100,$13,$2)
284 $(call list-file-maybe-gen-100,$14,$2)
291 define generate-list-file-ev
296 $$(call generate-file-dir,$$(__list_file).tmp)
300 $(call list-file-maybe-gen-1000,0,$1)
301 $(call list-file-maybe-gen-1000,1,$1)
302 $(call list-file-maybe-gen-1000,2,$1)
303 $(call list-file-maybe-gen-1000,3,$1)
304 $(call list-file-maybe-gen-1000,4,$1)
305 $(call list-file-maybe-gen-1000,5,$1)
313 generate-list-file = $(eval $(call generate-list-file-ev,$1,$2))
364 # BUILT_MODULE -> location of module built file (e.g. obj/<app>/<abi>/libfoo.so)
930 # file before including one of the $(BUILD_SHARED_LIBRARY), etc... files.
959 $(call __ndk_info,$(LOCAL_MAKEFILE):$(LOCAL_MODULE): LOCAL_MODULE_FILENAME should not include file extensions)\
965 # Arguments : 1: default file prefix
966 # 2: file suffix
977 # - without a library file extension
986 $$(call __ndk_info,$$(LOCAL_MAKEFILE):$$(LOCAL_MODULE): LOCAL_MODULE_FILENAME must not contain a file extension)
999 # $1: default file prefix
1000 # $2: default file suffix
1017 # $1: default file suffix
1036 # binary file, and the directory where to place its object files.
1043 # Compute the real path of a prebuilt file.
1052 local-prebuilt-path = $(call local-source-file-path,$1)
1091 # Source file tagging support.
1093 # Each source file listed in LOCAL_SRC_FILES can have any number of
1107 # LOCAL_SRC_TAG.<tagname> contains the set of source file names tagged
1110 # source file name
1113 # which will call various functions to compute source-file specific settings.
1118 # source file. This is set by the function TARGET-set-cflags
1129 # Returns : remove all source file tags and associated data.
1161 # Return : The list of source file names that have been tagged with <tagname>
1169 # Return : The list of source file names that have NOT been tagged with <tagname>
1197 # Macro : get-src-file-target-cflags
1198 # Arguments: 1: single source file name
1199 # Usage : $(call get-src-file-target-cflags,<source>)
1201 # applied to a given source file. These must be set prior to this
1204 get-src-file-target-cflags = $(LOCAL_SRC_FILES_TARGET_CFLAGS.$1)
1220 # Macro : get-src-file-text
1221 # Arguments: 1: single source file
1222 # Usage : $(call get-src-file-text,<source>)
1223 # Rationale: Return the 'text' associated to a given source file when
1226 get-src-file-text = $(LOCAL_SRC_FILES_TEXT.$1)
1229 dump-src-file-tags = \
1255 # the list of all variables that may appear in an Application.mk file
1316 # Function : local-source-file-path
1317 # Parameters: $1: source file (as listed in LOCAL_SRC_FILES)
1318 # Returns : full source file path of $1
1319 # Usage : $(call local-source-file-path,$1)
1325 local-source-file-path = $(if $(call host-path-is-absolute,$1),$1,$(LOCAL_PATH)/$1)
1329 # On Cygwin, we need to convert the .d dependency file generated by
1333 # To do that, we will force the compiler to write the dependency file to
1344 # On other systems, we simply tell the compiler to write to the .d file directly.
1346 # NOTE: In certain cases, no dependency file will be generated by the
1347 # compiler (e.g. when compiling an assembly file as foo.s)
1349 # convert-deps is used to compute the name of the compiler-generated dependency file
1361 # _SRC: source file
1362 # _OBJ: destination file
1367 define ev-build-file
1378 $$(_OBJ): $$(call generate-list-file,$$(_FLAGS),$$(_OPTIONS_LISTFILE))
1383 $$(call generate-file-dir,$$(_OBJ))
1391 # This assumes the same things than ev-build-file, but will handle
1393 define ev-build-source-file
1396 # Trivial case: Directly generate an object file
1397 $$(eval $$(call ev-build-file))
1400 # the source into an assembler file, send it to the
1401 # filter, then generate a final object file from it.
1415 # If the source file is a plain assembler file, we're going to
1423 # We need to transform the source into an assembly file, instead of
1424 # an object. The proper way to do that depends on the file extension.
1428 # assembly file).
1442 $$(eval $$(call ev-build-file))
1445 # Next, process the assembly file with the filter
1460 $$(eval $$(call ev-build-file))
1466 # Arguments : 1: single C source file name (relative to LOCAL_PATH)
1467 # 2: target object file (without path)
1474 _SRC:=$$(call local-source-file-path,$(1))
1478 $$(call get-src-file-target-cflags,$(1)) \
1485 _TEXT := "Compile $$(call get-src-file-text,$1)"
1488 $$(eval $$(call ev-build-source-file))
1493 # Arguments : 1: single C source file name (relative to LOCAL_PATH)
1494 # 2: object file
1497 # Rationale : Setup everything required to build a single C source file
1503 # Arguments : 1: single Assembly source file name (relative to LOCAL_PATH)
1504 # 2: object file
1507 # Rationale : Setup everything required to build a single Assembly source file
1514 # Arguments : 1: single C++ source file name (relative to LOCAL_PATH)
1515 # 2: target object file (without path)
1522 _SRC:=$$(call local-source-file-path,$(1))
1525 $$(call get-src-file-target-cflags,$(1)) \
1537 _TEXT := "Compile++ $$(call get-src-file-text,$1)"
1539 $$(eval $$(call ev-build-source-file))
1544 # Arguments : 1: single C++ source file name (relative to LOCAL_PATH)
1545 # : 2: object file name
1548 # Rationale : Setup everything required to build a single C++ source file
1650 # $2: optional file prefix (e.g. 'lib')
1651 # $3: optional file suffix (e.g. '.so')
1665 # $2: optional file prefix
1666 # $3: optional file suffix