1.1 --- a/ambuild2/nodetypes.py Fri Nov 15 20:15:05 2013 -0800
1.2 +++ b/ambuild2/nodetypes.py Fri Nov 15 22:20:02 2013 -0800
1.3 @@ -58,6 +58,10 @@
1.4 # are used when using AMBuild2's automated C++ builders.
1.5 Cxx = 'cxx'
1.6
1.7 +# RC nodes are similar to C++ nodes, but are specific for .rc files built with
1.8 +# rc.exe on Windows.
1.9 +Rc = 'rc'
1.10 +
1.11 NodeNames = {
1.12 Source: 'source',
1.13 Command: 'command',
1.14 @@ -67,7 +71,8 @@
1.15 Copy: 'copy',
1.16 CopyFolder: 'copy -R',
1.17 Symlink: 'symlink',
1.18 - Cxx: 'c++'
1.19 + Cxx: 'c++',
1.20 + Rc: 'rc'
1.21 }
1.22
1.23 def IsFile(type):
1.24 @@ -157,6 +162,8 @@
1.25 return 'cp "{0}" "{1}"'.format(self.blob[0], os.path.join(self.folder_name, self.blob[1]))
1.26 if self.type == Cxx:
1.27 return '[' + self.blob['type'] + ']' + ' -> ' + (' '.join([arg for arg in self.blob['argv']]))
1.28 + if self.type == Rc:
1.29 + return ' '.join([arg for arg in self.blob['cl_argv']]) + ' && ' + ' '.join([arg for arg in self.blob['rc_argv']])
1.30 if self.type == Group:
1.31 return 'group "{0}"'.format(self.path)
1.32 return (' '.join([arg for arg in self.blob]))