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