| 250 | | def dump(self, x): |
| 251 | | from Utilities import dumpObj |
| 252 | | dumpObj(x) |
| | 253 | def generateProject(self, path): |
| | 254 | wavedevPath = self.installPath |
| | 255 | if wavedevPath[len(wavedevPath)-1] != '/': |
| | 256 | wavedevPath = wavedevPath + '/' |
| | 257 | wavedevPath = wavedevPath + 'tools/WaveDev/wavedev/' |
| | 258 | gen = genStruct.genAll(path, wavedevPath, copy.deepcopy(self.active_waveform)) |
| | 259 | gen.genDirs() |
| | 260 | # Only include the device manager files if there is just one node |
| | 261 | if len(self.active_platform.nodes) == 1: |
| | 262 | gen.writeMakefiles(True) |
| | 263 | else: |
| | 264 | gen.writeMakefiles(False) |
| | 265 | # TODO: use different configure.ac file for application -JDG |
| | 266 | gen.genConfigureACFiles(self.installPath) |
| | 267 | for c in self.active_waveform.components: |
| | 268 | if c.generate: |
| | 269 | gen.genCompFiles(c) |
| | 270 | |
| | 271 | xml_gen.genxml(copy.deepcopy(self.active_waveform.components), path, wavedevPath, self.active_waveform.name) |
| | 272 | xml_gen.genDAS(copy.deepcopy(self.active_waveform.components), path, wavedevPath, self.active_waveform.name) |
| | 273 | xml_gen.writeWaveSetuppy(path, wavedevPath, self.active_waveform.name) |
| | 274 | |
| | 275 | gen.cleanUp() |
| | 276 | |
| | 277 | |
| | 278 | # This is a utility method in the file, not a class member |
| | 279 | def dump(x): |
| | 280 | from Utilities import dumpObj |
| | 281 | dumpObj(x) |