Ejemplo n.º 1
0
Archivo: flex.py Proyecto: Dimrok/drake
 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(),
                   )
Ejemplo n.º 2
0
 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(),
     )
Ejemplo n.º 3
0
 def mkpath(path):
     if not path.absolute():
         path = drake.srctree() / path
     return str(path)
Ejemplo n.º 4
0
Archivo: flex.py Proyecto: Dimrok/drake
 def mkpath(path):
   if not path.absolute():
     path = drake.srctree() / path
   return str(path)