Пример #1
0
 def __init__(self, context, name, files, objects, localLibraries, externalLibraries, explicit):
     AtomicArtifact.__init__(
         self,
         context=context,
         name=name,
         files=files,
         strongDependencies=objects,
         orderOnlyDependencies=[],
         automaticDependencies=[],
         explicit=explicit,
     )
Пример #2
0
 def __init__( self, context, generatorScript, explicit ):
     self.__context = context # Needed because self.context is initialized in AtomicArtifact.__init__, but the context is used in self.__getAllFiles
     AtomicArtifact.__init__(
         self,
         context = context,
         name = "tests",
         files = self.__getAllFiles(),
         strongDependencies = [ generatorScript ],
         orderOnlyDependencies = [],
         automaticDependencies = [],
         explicit = explicit
     )
 def __init__( self, context, url ):
     self.__url = url
     self.__file = os.path.join( ViDE.toolsCacheDirectory(), os.path.basename( urlparse.urlparse( url ).path ) )
     AtomicArtifact.__init__(
         self,
         context = context,
         name = self.__file,
         files = [ self.__file ],
         strongDependencies = [],
         orderOnlyDependencies = [],
         automaticDependencies = [],
         explicit = False
     )
Пример #4
0
 def __init__( self, context, files, source, explicit ):
     self.context = context
     AtomicArtifact.__init__(
         self,
         context = context,
         name = files[ 0 ],
         files = files,
         strongDependencies = [ source ],
         orderOnlyDependencies = [],
         automaticDependencies = [],
         explicit = explicit
     )
     self.__source = source
Пример #5
0
 def __init__( self, context, xsdSchema, explicit ):
     self.__hppFileName = context.fileName( "gen", xsdSchema.getFileName() + ".hpp" )
     self.__cppFileName = context.fileName( "gen", xsdSchema.getFileName() + ".cpp" )
     AtomicArtifact.__init__(
         self,
         context = context,
         name = xsdSchema.getFileName() + "_tree",
         files = [ self.__hppFileName, self.__cppFileName ],
         strongDependencies = [ xsdSchema ],
         orderOnlyDependencies = [],
         automaticDependencies = [],
         explicit = explicit
     )
Пример #6
0
 def __init__( self, context, source, strip, explicit ):
     self.__fileName = context.fileName( "pyd", strip( source.getFileName() ) + "c" )
     self.__source = source
     AtomicArtifact.__init__(
         self,
         context = context,
         name = self.__fileName,
         files = [ self.__fileName ],
         strongDependencies = [ source ],
         orderOnlyDependencies = [],
         automaticDependencies = [],
         explicit = explicit
     )
 def __init__( self, context, toolName, madePackage ):
     self.context = context
     self.__madePackage = madePackage
     self.__marker = os.path.join( context.toolset.getMarkerDirectory(), toolName + "_installed"  )
     AtomicArtifact.__init__(
         self,
         context = context,
         name = self.__marker,
         files = [ self.__marker ],
         strongDependencies = [ madePackage ],
         orderOnlyDependencies = [],
         automaticDependencies = [],
         explicit = False
     )
 def __init__( self, context, toolName, configureOptions, strongDependencies, unarchivedArchive ):
     self.context = context
     self.__configureOptions = configureOptions
     self.__unarchivedArchive = unarchivedArchive
     self.__marker = os.path.join( context.toolset.getMarkerDirectory(), toolName + "_configured"  )
     AtomicArtifact.__init__(
         self,
         context = context,
         name = self.__marker,
         files = [ self.__marker ],
         strongDependencies = strongDependencies + [ unarchivedArchive ],
         orderOnlyDependencies = [],
         automaticDependencies = [],
         explicit = False
     )
 def __init__( self, context, toolName, downloadedArchive ):
     self.context = context
     self.__toolName = toolName
     self.__downloadedArchive = downloadedArchive
     self.__marker = os.path.join( self.context.toolset.getMarkerDirectory(), toolName + "_unarchived"  )
     self.__destination = os.path.join( self.context.toolset.getTempDirectory(), self.__toolName )
     AtomicArtifact.__init__(
         self,
         context = context,
         name = self.__marker,
         files = [ self.__marker ],
         strongDependencies = [ downloadedArchive ],
         orderOnlyDependencies = [],
         automaticDependencies = [],
         explicit = False
     )
Пример #10
0
 def __init__(self, context, name, files, objects, localLibraries, externalLibraries, explicit):
     self.__librariesToLink, staticLibraryBinaries, dynamicLibraryBinaries = LinkedBinary.__extractLibraries(
         localLibraries
     )
     for o in objects:
         self.__librariesToLink += o.getLibrariesToLink()
     AtomicArtifact.__init__(
         self,
         context=context,
         name=name,
         files=files,
         strongDependencies=objects + staticLibraryBinaries,
         orderOnlyDependencies=dynamicLibraryBinaries,
         automaticDependencies=[],
         explicit=explicit,
     )
Пример #11
0
 def __init__(self, context, files, source, localLibraries, externalLibraries, explicit):
     candidateCopiedHeaders = CandidateCopiedHeaders(context, localLibraries)
     if isinstance(source, InputArtifact) or os.path.exists(source.getFileName()):
         headers = self.__parseCppHeaders(context, source, candidateCopiedHeaders)
     else:
         headers = Headers()
     includedHeaders = [self.__retrieveOrCreateHeader(header) for header in headers.getDoubleQuotedHeaders()]
     for searchedHeader in headers.getAngleHeaders():
         includedHeaders.append(candidateCopiedHeaders.find(searchedHeader))
     AtomicArtifact.__init__(
         self,
         context=context,
         name=files[0],
         files=files,
         strongDependencies=[source],
         orderOnlyDependencies=list(itertools.chain.from_iterable(lib.getCopiedHeaders() for lib in localLibraries)),
         automaticDependencies=includedHeaders,
         explicit=explicit,
     )
     self.__source = source
     self.__externalLibraries = externalLibraries
Пример #12
0
 def __init__(self, context, source, candidateCopiedHeaders):
     fileName = context.fileName("dep", source.getFileName() + ".dep")
     if os.path.exists(fileName):
         headers = Headers.load(fileName)
         automaticDependencies = [DepFile.Header(context, header) for header in headers.getDoubleQuotedHeaders()]
         for searchedHeader in headers.getAngleHeaders():
             automaticDependencies.append(
                 DepFile.Header(context, candidateCopiedHeaders.find(searchedHeader).getSource().getFileName())
             )
     else:
         automaticDependencies = []
     AtomicArtifact.__init__(
         self,
         context=context,
         name=fileName,
         files=[fileName],
         strongDependencies=[source],
         orderOnlyDependencies=[],
         automaticDependencies=automaticDependencies,
         explicit=False,
     )
     self.__fileName = fileName
     self.__source = source
     self.__candidateCopiedHeaders = candidateCopiedHeaders