.FOR Fortran file
.fpp Fortran file + C pre-processor
.FPP Fortran file + C pre-processor
+ .m Objective C file
+ .mm Objective C++ file
.s assembly language file
.S WIN32: assembly language file
POSIX: assembly language file + C pre-processor
[".c", ".C", ".cxx", ".cpp", ".c++", ".cc",
".h", ".H", ".hxx", ".hpp", ".hh",
".F", ".fpp", ".FPP",
+ ".m", ".mm",
".S", ".spp", ".SPP"]
.EE
.IR .c++ ,
and
.I .C++
-as C++ files.
+as C++ files,
+and files with
+.I .mm
+suffixes as Objective C++ files.
On case-sensitive systems (Linux, UNIX, and other POSIX-alikes),
SCons also treats
.I .C
- Allow Tools found on a toolpath to import Python modules from
their local directory.
+ From Timothee Besset:
+
+ - Add support for Objective C/C++ .m and .mm file suffixes (for
+ Mac OS X).
+
From Steve Christensen:
- Handle exceptions from Python functions as build actions.
CSuffixes = [".c", ".C", ".cxx", ".cpp", ".c++", ".cc",
".h", ".H", ".hxx", ".hpp", ".hh",
".F", ".fpp", ".FPP",
+ ".m", ".mm",
".S", ".spp", ".SPP"]
DSuffixes = ['.d']
compilers = ['CC', 'c++']
-CXXSuffixes = ['.cpp', '.cc', '.cxx', '.c++', '.C++']
+CXXSuffixes = ['.cpp', '.cc', '.cxx', '.c++', '.C++', '.mm']
if SCons.Util.case_sensitive_suffixes('.c', '.C'):
CXXSuffixes.append('.C')
import SCons.Defaults
import SCons.Util
-CSuffixes = ['.c']
+CSuffixes = ['.c', '.m']
if not SCons.Util.case_sensitive_suffixes('.c', '.C'):
CSuffixes.append('.C')