diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-13 17:23:33 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-13 17:23:33 (GMT) |
| commit | 723677d43137e7e3686466cdbf348ddc7d7aeea0 (patch) | |
| tree | ce2826544405de3ac1797ade9ac1723b99af6615 /site_scons/site_tools | |
| parent | d8c299c30aa7b9f6cb4ecf2ed6661b7d4eca8eaf (diff) | |
| download | powder-723677d43137e7e3686466cdbf348ddc7d7aeea0.zip powder-723677d43137e7e3686466cdbf348ddc7d7aeea0.tar.gz | |
Add CPPDEFINES to the compile command
Diffstat (limited to 'site_scons/site_tools')
| -rw-r--r-- | site_scons/site_tools/mfprogram/__init__.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/site_scons/site_tools/mfprogram/__init__.py b/site_scons/site_tools/mfprogram/__init__.py index 2d94ac2..97f075a 100644 --- a/site_scons/site_tools/mfprogram/__init__.py +++ b/site_scons/site_tools/mfprogram/__init__.py @@ -203,8 +203,13 @@ def MFProgramGenerator(source, target, env, for_signature): #else: # _CPPPATH.append(relpath(os.path.join(sconscript_dir, i), # destdir)) + + defines = "" + for t in env['CPPDEFINES']: + defines += ("-D"+str(t)+" ") + _CPPINCFLAGS = ['-I' + i for i in _CPPPATH] - _CCOMCOM = '$CPPFLAGS $_CPPDEFFLAGS %s' % ' '.join(_CPPINCFLAGS) + _CCOMCOM = '$CPPFLAGS $_CPPDEFFLAGS $defines %s' % ' '.join(_CPPINCFLAGS) libstr = "" for t in env['LIBS']: |
