SConscript (8191:777459f7c61f) SConscript (8483:b5052cad1fd3)
1# -*- mode:python -*-
2
3# Copyright (c) 2009 The Hewlett-Packard Development Company
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 72 unchanged lines hidden (view full) ---

81def MakeIncludeAction(target, source, env):
82 f = file(str(target[0]), 'w')
83 for s in source:
84 print >>f, '#include "%s"' % str(s.abspath)
85 f.close()
86
87def MakeInclude(source):
88 target = generated_dir.File(basename(source))
1# -*- mode:python -*-
2
3# Copyright (c) 2009 The Hewlett-Packard Development Company
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 72 unchanged lines hidden (view full) ---

81def MakeIncludeAction(target, source, env):
82 f = file(str(target[0]), 'w')
83 for s in source:
84 print >>f, '#include "%s"' % str(s.abspath)
85 f.close()
86
87def MakeInclude(source):
88 target = generated_dir.File(basename(source))
89 env.Command(target, source, MakeIncludeAction)
89 include_action = MakeAction(MakeIncludeAction, Transform("MAKE INC", 1))
90 env.Command(target, source, include_action)
90
91MakeInclude('slicc_interface/AbstractEntry.hh')
92MakeInclude('slicc_interface/AbstractCacheEntry.hh')
93MakeInclude('slicc_interface/AbstractProtocol.hh')
94MakeInclude('slicc_interface/Message.hh')
95MakeInclude('slicc_interface/NetworkMessage.hh')
96MakeInclude('slicc_interface/RubyRequest.hh')
97

--- 19 unchanged lines hidden ---
91
92MakeInclude('slicc_interface/AbstractEntry.hh')
93MakeInclude('slicc_interface/AbstractCacheEntry.hh')
94MakeInclude('slicc_interface/AbstractProtocol.hh')
95MakeInclude('slicc_interface/Message.hh')
96MakeInclude('slicc_interface/NetworkMessage.hh')
97MakeInclude('slicc_interface/RubyRequest.hh')
98

--- 19 unchanged lines hidden ---