def __init__(self, type, module_name, stderr=sys.stderr): """ @param type is usually one of "adjunct", "modules" or "platforms". @param module_name is the directory name of the module from which to load the module.sources file. @param stderr can be set to the error-stream to which to print warnings and errors. The default is sys.stderr. """ WarningsAndErrors.__init__(self, stderr) self.__type = type # (= "adjunct", "modules", "platforms") self.__module_name = module_name self.__plain_sources = SourcesSet() self.__jumbo_sources = SourcesSet() self.__source_options = {} self.__jumbo_compile_units = {}
def __init__(self, sourceRoot, outputRoot, types=["modules", "adjunct", "platforms"], stderr=sys.stderr): """ @param sourceRoot is the path to the Opera source tree. The directories specified in the argument types are expected relative to the source root. @param types is a list of directories realtive to the specified source root in which the modules are located. Usually this list contains "adjunct", "modules" and "platforms". @param stderr can be set to the error-stream to which to print warnings and errors. The default is sys.stderr. """ WarningsAndErrors.__init__(self, stderr) self.__sourceRoot = sourceRoot self.__outputRoot = outputRoot self.__types = types self.__modules = [] self.__plain_sources = None self.__jumbo_sources = None