[buildj] Patch from Simon Wenner <simon wenner ch>



commit 81a10e9c2835532325bc5475d4417c3c7f71ba04
Author: Alberto Ruiz <aruiz gnome org>
Date:   Fri Mar 12 00:21:35 2010 +0000

    Patch from Simon Wenner <simon wenner ch>

 wscript |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/wscript b/wscript
index 5aab2e6..2a9a260 100644
--- a/wscript
+++ b/wscript
@@ -5,12 +5,16 @@ import re
 
 #BuilDj Tool -> Waf tool	
 WAF_TOOLS = {'cc':   'compiler_cc',
+             'cxx':  'compiler_cxx',
              'vala': 'compiler_cc vala'}
 
 # (Tool,Type) -> Waf features map
 FEATURES_MAP = {('cc', 'program'):     'cc cprogram',
                 ('cc', 'sharedlib'):   'cc cshlib',
                 ('cc', 'staticlib'):   'cc cstaticlib',
+                ('cxx', 'program'):    'cxx cprogram',
+                ('cxx', 'sharedlib'):  'cxx cshlib',
+                ('cxx', 'staticlib'):  'cxx cstaticlib',
                 ('vala', 'program'):   'cc cprogram',
                 ('vala', 'sharedlib'): 'cc cshlib',
                 ('vala', 'staticlib'): 'cc cstaticlib'}
@@ -281,6 +285,7 @@ class ProjectFile:
 ####### Utils ##################################################################
 #Mapping between tools and target classes
 TOOL_CLASS_MAP = {'cc':   CcTarget,
+                  'cxx':   CcTarget,
                   'vala': ValaTarget}
 
 def parse_project_file (project_file=DEFAULT_BUILDJ_FILE):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]