def __init__(self, *args, **kwargs):
    super(ApacheThriftGen, self).__init__(*args, **kwargs)
    self._thrift_defaults = ThriftDefaults.global_instance()
    self.combined_dir = os.path.join(self.workdir, 'combined')
    self.combined_relpath = os.path.relpath(self.combined_dir, get_buildroot())
    self.session_dir = os.path.join(self.workdir, 'sessions')

    self.gen_langs = set(self.get_options().lang)
    for lang in ('java', 'python'):
      if self.context.products.isrequired(lang):
        self.gen_langs.add(lang)
    def __init__(self, *args, **kwargs):
        super(ApacheThriftGen, self).__init__(*args, **kwargs)
        self._thrift_defaults = ThriftDefaults.global_instance()
        self.combined_dir = os.path.join(self.workdir, 'combined')
        self.combined_relpath = os.path.relpath(self.combined_dir,
                                                get_buildroot())
        self.session_dir = os.path.join(self.workdir, 'sessions')

        self.gen_langs = set(self.get_options().lang)
        for lang in ('java', 'python'):
            if self.context.products.isrequired(lang):
                self.gen_langs.add(lang)
Exemple #3
0
 def __init__(self, *args, **kwargs):
   super(ScroogeGen, self).__init__(*args, **kwargs)
   self._thrift_defaults = ThriftDefaults.global_instance()
   self._depinfo = None
Exemple #4
0
 def __init__(self, *args, **kwargs):
   super(ApacheThriftGen, self).__init__(*args, **kwargs)
   self._thrift_defaults = ThriftDefaults.global_instance()
Exemple #5
0
 def __init__(self, *args, **kwargs):
     super(ScroogeGen, self).__init__(*args, **kwargs)
     self._thrift_defaults = ThriftDefaults.global_instance()
     self._depinfo = None
Exemple #6
0
 def create_thrift_defaults(self, **options):
   self.context(for_subsystems=[ThriftDefaults], options={
     ThriftDefaults.options_scope: options
   })
   return ThriftDefaults.global_instance()
Exemple #7
0
 def create_strategy(self, option_values):
     self.context(for_subsystems=[ThriftDefaults],
                  options={ThriftDefaults.options_scope: option_values})
     return JavaThriftLibraryFingerprintStrategy(
         ThriftDefaults.global_instance())
 def create_strategy(self, option_values):
     self.context(for_subsystems=[ThriftDefaults], options={ThriftDefaults.options_scope: option_values})
     return JavaThriftLibraryFingerprintStrategy(ThriftDefaults.global_instance())