def execute(self): # Options options = ' -compiler.locale -compiler.optimize -static-link-runtime-shared-libraries -compiler.debug' # Sources sources = ' '.join(map(lambda src: str(src.path()), self.__sources)) # Libraries libraries = '' if self.__libraries: libraries = ' -library-path+=%s' % ':'.join(map(lambda n: str(n.path().dirname()), self.__libraries)) # Output output = str(self.__target.path()) # Command return self.cmd('Flex %s' % self.__target, '%s%s -load-config %s -compiler.source-path %s -output %s %s', self.__sdk.mxmlc(), libraries, self.__config.path(), drake.srctree() / self.__source_path, self.__target.path(), self.__source.path(), )
def execute(self): # Options options = ' -compiler.locale -compiler.optimize -static-link-runtime-shared-libraries -compiler.debug' # Sources sources = ' '.join(map(lambda src: str(src.path()), self.__sources)) # Libraries libraries = '' if self.__libraries: libraries = ' -library-path+=%s' % ':'.join( map(lambda n: str(n.path().dirname()), self.__libraries)) # Output output = str(self.__target.path()) # Command return self.cmd( 'Flex %s' % self.__target, '%s%s -load-config %s -compiler.source-path %s -output %s %s', self.__sdk.mxmlc(), libraries, self.__config.path(), drake.srctree() / self.__source_path, self.__target.path(), self.__source.path(), )
def mkpath(path): if not path.absolute(): path = drake.srctree() / path return str(path)