add .mm as valid source files

This commit is contained in:
gephilipp 2007-05-18 18:27:11 +00:00
parent 840fc1826a
commit 964098caca
2 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@
// Now compute the source files.
#define c_sources $[filter %.c,$[get_sources]]
#define cxx_sources $[filter-out %_src.cxx,$[filter %.cxx %.cpp,$[get_sources]]]
#define cxx_sources $[filter-out %_src.cxx,$[filter %.cxx %.mm %.cpp,$[get_sources]]]
#define cxx_interrogate_sources
#if $[PYTHON_MODULE_ONLY]
#set cxx_interrogate_sources $[cxx_sources]
@ -93,7 +93,7 @@
// Define what the object files are.
#foreach file $[c_sources] $[cxx_sources] $[cxx_interrogate_sources] $[yxx_sources] $[lxx_sources]
#define $[file]_obj $[patsubst %.c %.cxx %.cpp %.yxx %.lxx,$[ODIR]/$[obj_prefix]%$[OBJ],$[notdir $[file]]]
#define $[file]_obj $[patsubst %.c %.cxx %.mm %.cpp %.yxx %.lxx,$[ODIR]/$[obj_prefix]%$[OBJ],$[notdir $[file]]]
#push 1 $[file]_obj
#end file

View File

@ -71,7 +71,7 @@
// These are the source files that our dependency cache file will
// depend on. If it's an empty list, we won't bother writing rules to
// freshen the cache file.
#define dep_sources $[sort $[filter %.c %.cxx %.yxx %.lxx %.h %.I %.T,$[dep_sources_1]]]
#define dep_sources $[sort $[filter %.c %.cxx %.mm %.yxx %.lxx %.h %.I %.T,$[dep_sources_1]]]
// If there is an __init__.py in the directory, then all Python
// files in the directory just get installed without having to be