Lines Matching refs:source
1 # Copyright (C) 2009 The Android Open Source Project
679 # Source file tagging support.
681 # Each source file listed in LOCAL_SRC_FILES can have any number of
694 # LOCAL_SRC_FILES contains the list of all source files.
695 # LOCAL_SRC_TAG.<tagname> contains the set of source file names tagged
698 # source file name
701 # which will call various functions to compute source-file specific settings.
706 # source file. This is set by the function TARGET-set-cflags
717 # Returns : remove all source file tags and associated data.
733 # Arguments: 1: list of source files to tag
735 # Usage : $(call tag-src-files,<list-of-source-files>,<tagname>)
736 # Rationale: Add a tag to a list of source files
749 # Return : The list of source file names that have been tagged with <tagname>
757 # Return : The list of source file names that have NOT been tagged with <tagname>
763 # Arguments: 1: list of source files
767 # when building a given set of source files. This function should
769 # computes all compiler flags for all source files.
775 # Arguments: 1: list of source files
780 # source files.
786 # Arguments: 1: single source file name
787 # Usage : $(call get-src-file-target-cflags,<source>)
789 # applied to a given source file. These must be set prior to this
796 # Arguments: 1: list of source files
799 # Rationale: Set or replace the 'text' associated to a set of source files.
803 # toolchain-specific functions that processes all source files.
809 # Arguments: 1: single source file
810 # Usage : $(call get-src-file-text,<source>)
811 # Rationale: Return the 'text' associated to a given source file when
816 # This should only be called for debugging the source files tagging system
897 # _SRC: source file
922 define ev-build-source-file
930 # the source into an assembler file, send it to the
945 # If the source file is a plain assembler file, we're going to
953 # We need to transform the source into an assembly file, instead of
956 # For C and C++ source files, simply replace the -c by an -S in the
997 # Template : ev-compile-c-source
998 # Arguments : 1: single C source file name (relative to LOCAL_PATH)
1001 # Usage : $(eval $(call ev-compile-c-source,<srcfile>,<objfile>)
1002 # Rationale : Internal template evaluated by compile-c-source and
1003 # compile-s-source
1005 define ev-compile-c-source
1020 $$(eval $$(call ev-build-source-file))
1024 # Function : compile-c-source
1025 # Arguments : 1: single C source file name (relative to LOCAL_PATH)
1027 # Usage : $(call compile-c-source,<srcfile>)
1028 # Rationale : Setup everything required to build a single C source file
1030 compile-c-source = $(eval $(call ev-compile-c-source,$1,$(1:%.c=%.o)))
1033 # Function : compile-s-source
1034 # Arguments : 1: single Assembly source file name (relative to LOCAL_PATH)
1036 # Usage : $(call compile-s-source,<srcfile>)
1037 # Rationale : Setup everything required to build a single Assembly source file
1039 compile-s-source = $(eval $(call ev-compile-c-source,$1,$(patsubst %.s,%.o,$(patsubst %.S,%.o,$1))))
1043 # Template : ev-compile-cpp-source
1044 # Arguments : 1: single C++ source file name (relative to LOCAL_PATH)
1047 # Usage : $(eval $(call ev-compile-cpp-source,<srcfile>,<objfile>)
1048 # Rationale : Internal template evaluated by compile-cpp-source
1051 define ev-compile-cpp-source
1069 $$(eval $$(call ev-build-source-file))
1073 # Function : compile-cpp-source
1074 # Arguments : 1: single C++ source file name (relative to LOCAL_PATH)
1076 # Usage : $(call compile-c-source,<srcfile>)
1077 # Rationale : Setup everything required to build a single C++ source file
1079 compile-cpp-source = $(eval $(call ev-compile-cpp-source,$1,$(1:%$(LOCAL_CPP_EXTENSION)=%.o)))
1083 # Arguments : 1: source file