An abstraction of an extension implemented in C/C++
| 29 | win32api = None # User has already been warned |
| 30 | |
| 31 | class CExtension: |
| 32 | """An abstraction of an extension implemented in C/C++ |
| 33 | """ |
| 34 | def __init__(self, name, sourceFiles): |
| 35 | self.name = name |
| 36 | # A list of strings defining additional compiler options. |
| 37 | self.sourceFiles = sourceFiles |
| 38 | # A list of special compiler options to be applied to |
| 39 | # all source modules in this extension. |
| 40 | self.compilerOptions = [] |
| 41 | # A list of .lib files the final .EXE will need. |
| 42 | self.linkerLibs = [] |
| 43 | |
| 44 | def GetSourceFiles(self): |
| 45 | return self.sourceFiles |
| 46 | |
| 47 | def AddCompilerOption(self, option): |
| 48 | self.compilerOptions.append(option) |
| 49 | def GetCompilerOptions(self): |
| 50 | return self.compilerOptions |
| 51 | |
| 52 | def AddLinkerLib(self, lib): |
| 53 | self.linkerLibs.append(lib) |
| 54 | def GetLinkerLibs(self): |
| 55 | return self.linkerLibs |
| 56 | |
| 57 | def checkextensions(unknown, extra_inis, prefix): |
| 58 | # Create a table of frozen extensions |
no outgoing calls
no test coverage detected
searching dependent graphs…