Lines Matching refs:to
10 # Unless required by applicable law or agreed to in writing, software
20 ## are used by others to construct the final targets.
23 # These are variables we use to collect overall lists
26 # Full paths to all of the documentation
40 # Full paths to targets that should be added to the "make droid"
46 # to a corresponding ALL_MODULE_TAGS.<tagname> variable
50 # Similar to ALL_MODULE_TAGS, but contains the short names
52 # won't have the list of tags; ust ALL_MODULE_TAGS to get
58 # Full paths to all prebuilt files that will be copied
59 # (used to make the dependency on acp)
62 # Full path to all files that are made by some tool
65 # Full path to all asm, C, C++, lex and yacc generated C files.
90 # They are escaped and quoted so can be passed safely to a bash command.
94 ## Debugging; prints a variable list to stdout
108 ## Evaluates to true if the string contains the word true,
110 ## $(1): a var to test
147 # $(1): directory to search under
164 ## relative to the current directory.
167 # $(1): List of directories to look for under this directory
174 ## Meant to be used like:
186 ## Find all of the java files from here. Meant to be used like:
196 ## Meant to be used like:
208 ## Find all of the c files from here. Meant to be used like:
218 ## which must be relative to $(LOCAL_PATH). The returned list
219 ## is relative to $(LOCAL_PATH).
239 ## Meant to be used like:
252 ## Meant to be used like:
265 ## Meant to be used like:
278 ## Meant to be used like:
290 ## Find all of the html files from here. Meant to be used like:
328 $(warning Empty argument supplied to find-subdir-assets) \
333 ## Find various file types in a list of directories relative to $(LOCAL_PATH)
345 # Use utility find to find given files in the given subdirs.
347 # $(1): the base dir, relative to the root of the source tree.
348 # $(2): the file name pattern to be passed to find as "-name".
350 # Returns: a list of paths relative to the base dir.
380 ## Function we can evaluate to introduce a dynamic dependency
421 ## nice to be able to grep for that string to find out if
428 # $(4): if non-empty, force the intermediates to be COMMON
433 $(error $(LOCAL_PATH): Class not defined in call to intermediates-dir-for)) \
436 $(error $(LOCAL_PATH): Name not defined in call to intermediates-dir-for)) \
448 # to determine the intermediates directory.
450 # $(1): if non-empty, force the intermediates to be COMMON
454 $(error $(LOCAL_PATH): LOCAL_MODULE_CLASS not defined before call to local-intermediates-dir)) \
456 $(error $(LOCAL_PATH): LOCAL_MODULE not defined before call to local-intermediates-dir)) \
462 ## Convert "path/to/libXXX.so" to "-lXXX".
463 ## Any "path/to/libXXX.a" elements pass through unchanged.
471 # TODO: change users to call the common version.
519 ## Evaluates to the timestamp file for a doc module, which
530 ## Convert "core ext framework" to "out/.../javalib.jar ..."
615 ## $(1): list to collapse
617 ## Defaults to "=" if not set.
663 # $(1): list of tags to accept
664 # $(2): list of tags to reject
674 ## Append a leaf to a base path. Properly deals with
695 # TODO: This is fragile; find a reliable way to get this information.
711 $(eval ### Now we have a list of any words that could possibly refer to \
762 ## Commands for using sed to replace given variable values
778 define transform-d-to-p-args
785 define transform-d-to-p
786 $(call transform-d-to-p-args,$(@:%.o=%.d),$(@:%.o=%.P))
793 define transform-l-to-cpp
804 ## E.g, "$(call transform-y-to-cpp,.cpp)"
807 define transform-y-to-cpp
820 ## Commands to compile RenderScript to Java
823 define transform-renderscripts-to-java-and-bc
841 define transform-bc-to-so
856 ## Commands to compile RenderScript to C++
859 define transform-renderscripts-to-cpp-and-bc
880 define transform-aidl-to-java
892 define transform-logtags-to-java
900 ## Commands for running protoc to compile .proto into .java
903 define transform-proto-to-java
919 ## Commands for running protoc to compile .proto into .pb.cc and .pb.h
921 define transform-proto-to-cc
932 ## Commands for running gcc to compile a C++ file
935 define transform-cpp-to-o
957 $(transform-d-to-p)
962 ## Commands for running gcc to compile a C file
966 define transform-c-or-s-to-o-no-deps
985 define transform-c-to-o-no-deps
987 $(call transform-c-or-s-to-o-no-deps, $(PRIVATE_CFLAGS) $(PRIVATE_CONLYFLAGS) $(PRIVATE_DEBUG_CFLAGS))
990 define transform-s-to-o-no-deps
992 $(call transform-c-or-s-to-o-no-deps, $(PRIVATE_ASFLAGS))
995 define transform-c-to-o
996 $(transform-c-to-o-no-deps)
997 $(transform-d-to-p)
1000 define transform-s-to-o
1001 $(transform-s-to-o-no-deps)
1002 $(transform-d-to-p)
1006 ## Commands for running gcc to compile an Objective-C file
1011 define transform-m-to-o-no-deps
1013 $(call transform-c-or-s-to-o-no-deps, $(PRIVATE_CFLAGS) $(PRIVATE_DEBUG_CFLAGS))
1016 define transform-m-to-o
1017 $(transform-m-to-o-no-deps)
1018 $(transform-d-to-p)
1022 ## Commands for running gcc to compile a host C++ file
1025 define transform-host-cpp-to-o
1045 $(transform-d-to-p)
1050 ## Commands for running gcc to compile a host C file
1054 define transform-host-c-or-s-to-o-no-deps
1072 define transform-host-c-to-o-no-deps
1074 $(call transform-host-c-or-s-to-o-no-deps, $(PRIVATE_CFLAGS) $(PRIVATE_CONLYFLAGS) $(PRIVATE_DEBUG_CFLAGS))
1077 define transform-host-s-to-o-no-deps
1079 $(call transform-host-c-or-s-to-o-no-deps, $(PRIVATE_ASFLAGS))
1082 define transform-host-c-to-o
1083 $(transform-host-c-to-o-no-deps)
1084 $(transform-d-to-p)
1087 define transform-host-s-to-o
1088 $(transform-host-s-to-o-no-deps)
1089 $(transform-d-to-p)
1093 ## Commands for running gcc to compile a host Objective-C file
1096 define transform-host-m-to-o-no-deps
1098 $(call transform-host-c-or-s-to-o-no-deps, $(PRIVATE_CFLAGS) $(PRIVATE_DEBUG_CFLAGS))
1101 define transform-host-m-to-o
1102 $(transform-host-m-to-o-no-deps)
1103 $(transform-d-to-p)
1151 # try to add to an existing archive.
1152 define transform-o-to-static-lib
1185 # try to add to an existing archive.
1186 define transform-host-o-to-static-lib
1196 ## Commands for running gcc to link a shared library or package
1199 # ld just seems to be so finicky with command order that we allow
1200 # it to be overriden en-masse see combo/linux-arm.make for an example.
1202 define transform-host-o-to-shared-lib-inner
1225 define transform-host-o-to-shared-lib
1228 $(transform-host-o-to-shared-lib-inner)
1231 define transform-host-o-to-package
1234 $(transform-host-o-to-shared-lib-inner)
1239 ## Commands for running gcc to link a shared library or package
1251 # ld just seems to be so finicky with command order that we allow
1252 # it to be overriden en-masse see combo/linux-arm.make for an example.
1254 define transform-o-to-shared-lib-inner
1275 define transform-o-to-shared-lib
1278 $(transform-o-to-shared-lib-inner)
1281 define transform-o-to-package
1284 $(transform-o-to-shared-lib-inner)
1292 define transform-to-stripped
1300 ## Commands for running gcc to link an executable
1304 define transform-o-to-executable-inner
1324 define transform-o-to-executable
1327 $(transform-o-to-executable-inner)
1332 ## Commands for running gcc to link a statically linked
1335 ## transform-o-to-static-executable defined
1339 define transform-o-to-static-executable-inner
1343 define transform-o-to-static-executable
1346 $(transform-o-to-static-executable-inner)
1351 ## Commands for running gcc to link a host executable
1355 define transform-host-o-to-executable-inner
1377 define transform-host-o-to-executable
1380 $(transform-host-o-to-executable-inner)
1385 ## Commands for running javac to make .class files
1393 # assets. This should be changed to do one of two things: (1) Don't generate
1397 # was to use approach (2), but this requires a little more work in the tool.
1401 # are PRODUCT-neutral. Don't pass PRIVATE_PRODUCT_AAPT_CONFIG to this invocation.
1439 # dump-words-to-file, <word list>, <output file>
1440 define dump-words-to-file
1470 # For a list of jar files, unzip them to a specified directory,
1473 # $(1): files to unzip
1487 # Common definition to invoke javac on the host and target.
1490 # - below we write the list of java files to java-source-list to avoid argument
1503 $(call dump-words-to-file,$(PRIVATE_JAVA_SOURCES),$(PRIVATE_CLASS_INTERMEDIATES_DIR)/java-source-list)
1538 define transform-java-to-classes.jar
1543 # Override the above definitions if we want to do incremetal javac
1590 define transform-java-to-classes.jar
1596 define transform-classes.jar-to-emma
1604 # Avoid the memory arguments on Windows, dx fails to load for some reason with them.
1605 define transform-classes.jar-to-dex
1616 --dump-to=$(@:.dex=.lst) \
1622 # Create a mostly-empty .jar file that we'll add to later.
1624 # so we need to give it something.
1633 #TODO: we kinda want to build different asset packages for
1638 #TODO: update the manifest to point to the package file
1639 #Note that the version numbers are given to aapt as simple default
1642 define add-assets-to-package
1660 define add-jni-shared-libs-to-package
1668 #TODO: update the manifest to point to the dex file
1669 define add-dex-to-package
1679 define add-java-resources-to-package
1680 $(call dump-words-to-file, $(PRIVATE_EXTRA_JAR_ARGS), $(dir $@)jar-arg-list)
1709 # to make them easier to mmap.
1730 # TODO(joeo): If we can ever upgrade to post 3.81 make and get the
1731 # new prebuilt rules to work, we should change this to copy the
1732 # resources to the out directory and then copy the resources.
1735 # in transform-java-to-classes for the sake of vm-tests.
1736 define transform-host-java-to-package
1739 $(if $(PRIVATE_EXTRA_JAR_ARGS), $(call add-java-resources-to-package))
1746 # Define a rule to copy a header. Used via $(eval) by copy_headers.make.
1752 $$(copy-file-to-new-target-with-cp)
1755 # Define a rule to copy a file. For use via $(eval).
1761 $$(copy-file-to-target)
1765 # $(1): The files to copy. Each entry is a ':' separated src:dst pair
1766 # Evaluates to the list of the dst files (ie suitable for a dependency list)
1782 $(hide) xmllint $$< >/dev/null # Don't print the xml file to stdout.
1783 $$(copy-file-to-target)
1786 # The -t option to acp and the -p option to cp is
1789 # to disagree with an internal timestamp, and this
1790 # macro is used to install .a files (among other things).
1792 # Copy a single file from one place to another,
1797 # Therefore copy-file-to-target is the same as copy-file-to-new-target.
1798 define copy-file-to-target
1803 # The same as copy-file-to-target, but use the local
1805 define copy-file-to-target-with-cp
1810 # The same as copy-file-to-target, but use the zipalign tool to do so.
1811 define copy-file-to-target-with-zipalign
1816 # The same as copy-file-to-target, but strip out "# comment"-style
1818 define copy-file-to-target-strip-comments
1823 # The same as copy-file-to-target, but don't preserve
1825 define copy-file-to-new-target
1830 # The same as copy-file-to-new-target, but use the local
1832 define copy-file-to-new-target-with-cp
1837 # Copy a prebuilt file to a target location.
1838 define transform-prebuilt-to-target
1840 $(copy-file-to-target)
1843 # Copy a prebuilt file to a target location, using zipalign on it.
1844 define transform-prebuilt-to-target-with-zipalign
1846 $(copy-file-to-target-with-zipalign)
1849 # Copy a prebuilt file to a target location, stripping "# comment" comments.
1850 define transform-prebuilt-to-target-strip-comments
1852 $(copy-file-to-target-strip-comments)
1857 ## library, ranlib must be run to update an internal
1883 ## Commands to call Proguard
1885 define transform-jar-to-proguard
1905 # $(1): The file to check
1910 # Convert a partition data size (eg, as reported in /proc/mtd) to the
1911 # size of the image used to flash that partition (which includes a
1921 # $(1): The file(s) to check (often $@)
1925 # If $(2) is empty, evaluates to "true"
1928 # is left over after the image has been flashed. Round the 1% up to the
1959 # size, which we'll convert to a max image size before checking it
1962 # $(1): The file(s) to check (often $@)
1976 # Copy a radio image file to the output location, and add it to
1985 $$(transform-prebuilt-to-target)
1989 # file to be checked against the contents of
2000 $$(transform-prebuilt-to-target)
2008 # $(1): The makefile to override (relative to the source
2032 # To be used with inherit-package above
2033 # Evalutes to true if the package was overridden
2060 # the variable will be modified to hold the expanded results.
2074 # eval this to define a rule that runs apicheck.
2079 # $(3) api file to be tested
2081 # $(5) command to run if apicheck failed
2093 ## Whether to build from source if prebuilt alternative exists
2097 # Expands to empty string if not from source.
2110 # $(1): the makefile to include
2122 # Rules and functions to help copy important files to DIST_DIR