equal
deleted
inserted
replaced
100 )) |
100 )) |
101 |
101 |
102 ################################################################################ |
102 ################################################################################ |
103 |
103 |
104 # Extensions of files handled by this macro. |
104 # Extensions of files handled by this macro. |
105 NATIVE_SOURCE_EXTENSIONS := %.s %.c %.cpp %.m %.mm |
105 NATIVE_SOURCE_EXTENSIONS := %.s %.c %.cpp %.cc %.m %.mm |
106 |
106 |
107 # Replaces native source extensions with the object file extension in a string. |
107 # Replaces native source extensions with the object file extension in a string. |
108 # Param 1: the string containing source file names with extensions |
108 # Param 1: the string containing source file names with extensions |
109 # The surrounding strip is needed to keep additional whitespace out |
109 # The surrounding strip is needed to keep additional whitespace out |
110 define replace_with_obj_extension |
110 define replace_with_obj_extension |
165 else ifneq (,$$(filter %.s,$2)) |
165 else ifneq (,$$(filter %.s,$2)) |
166 # Compile as assembler file |
166 # Compile as assembler file |
167 $1_$2_FLAGS=$8 -DTHIS_FILE='"$$(<F)"' |
167 $1_$2_FLAGS=$8 -DTHIS_FILE='"$$(<F)"' |
168 $1_$2_COMP=$(AS) |
168 $1_$2_COMP=$(AS) |
169 $1_$2_DEP_FLAG:= |
169 $1_$2_DEP_FLAG:= |
170 else ifneq (,$$(filter %.cpp,$2)$$(filter %.mm,$2)) |
170 else ifneq (,$$(filter %.cpp,$2)$$(filter %.cc,$2)$$(filter %.mm,$2)) |
171 # Compile as a C++ or Objective-C++ file |
171 # Compile as a C++ or Objective-C++ file |
172 $1_$2_FLAGS=$(CFLAGS_CCACHE) $6 $$($1_$(notdir $2)_CXXFLAGS) -DTHIS_FILE='"$$(<F)"' -c |
172 $1_$2_FLAGS=$(CFLAGS_CCACHE) $6 $$($1_$(notdir $2)_CXXFLAGS) -DTHIS_FILE='"$$(<F)"' -c |
173 $1_$2_COMP=$7 |
173 $1_$2_COMP=$7 |
174 $1_$2_DEP_FLAG:=$(CXX_FLAG_DEPS) |
174 $1_$2_DEP_FLAG:=$(CXX_FLAG_DEPS) |
175 else |
175 else |