コード例 #1
0
 def __init__(self, dir, basename):
     BuildInformation.__init__(self)
     assert type(dir) is types.ListType
     self.__dir = dir
     self.__basename = basename
     self.__unique_key = self.__class__.__name__ + ':' + '.'.join(
         self.__dir) + ':' + self.__basename
     pass
コード例 #2
0
 def set_marshalling_data(self, data):
     version = data[Marshallable.VERSIONS]['BuildInfo_CXXFLAGS']
     if version != 1:
         raise MarshalledVersionUnknownError(klass=self.__class__,
                                             marshalled_version=version,
                                             current_version=1)
     self.__cxxflags = data[Marshallable.ATTRIBUTES]['cxxflags']
     BuildInformation.set_marshalling_data(self, data)
     pass
コード例 #3
0
 def set_marshalling_data(self, data):
     version = data[
         Marshallable.VERSIONS]['BuildInfo_CIncludePath_NativeInstalled']
     if version != 1:
         raise MarshalledVersionUnknownError(klass=self.__class__,
                                             marshalled_version=version,
                                             current_version=1)
     BuildInformation.set_marshalling_data(self, data)
     pass
コード例 #4
0
 def set_marshalling_data(self, data):
     version = data[Marshallable.VERSIONS]['BuildInfo_CommandlineMacros_AM']
     if version != 1:
         raise MarshalledVersionUnknownError(klass=self.__class__,
                                             marshalled_version=version,
                                             current_version=1)
     self.__macros = data[Marshallable.ATTRIBUTES]['macros']
     BuildInformation.set_marshalling_data(self, data)
     pass
コード例 #5
0
 def set_marshalling_data(self, data):
     version = data[
         Marshallable.VERSIONS]['BuildInfo_CLibrary_NativeInstalled']
     if version != 1:
         raise MarshalledVersionUnknownError(klass=self.__class__,
                                             marshalled_version=version,
                                             current_version=1)
     self.__basename = data[Marshallable.ATTRIBUTES]['basename']
     BuildInformation.set_marshalling_data(self, data)
     pass
コード例 #6
0
 def set_marshalling_data(self, data):
     version = data[Marshallable.VERSIONS]['BuildInfo_Toplevel_CMakeLists_FindCall']
     if version != 1:
         raise MarshalledVersionUnknownError(
             klass=self.__class__,
             marshalled_version=version,
             current_version=1)
     self.__find_call = data[Marshallable.ATTRIBUTES]['find_call']
     BuildInformation.set_marshalling_data(self, data)
     pass
コード例 #7
0
ファイル: buildinfo.py プロジェクト: ssi-schaefer/confix
 def set_marshalling_data(self, data):
     version = data[Marshallable.VERSIONS]['BuildInfo_IDL_Native']
     if version != 1:
         raise MarshalledVersionUnknownError(klass=self.__class__,
                                             marshalled_version=version,
                                             current_version=1)
     self.filename_ = data[Marshallable.ATTRIBUTES]['filename']
     self.includes_ = data[Marshallable.ATTRIBUTES]['includes']
     BuildInformation.set_marshalling_data(self, data)
     pass
コード例 #8
0
 def set_marshalling_data(self, data):
     version = data[Marshallable.VERSIONS]['BuildInfo_Library_External_AM']
     if version != 1:
         raise MarshalledVersionUnknownError(klass=self.__class__,
                                             marshalled_version=version,
                                             current_version=1)
     self.__libpath = data[Marshallable.ATTRIBUTES]['libpath']
     self.__libs = data[Marshallable.ATTRIBUTES]['libs']
     BuildInformation.set_marshalling_data(self, data)
     pass
コード例 #9
0
 def set_marshalling_data(self, data):
     version = data[
         Marshallable.VERSIONS]['BuildInfo_IncludePath_External_AM']
     if version != 1:
         raise MarshalledVersionUnknownError(klass=self.__class__,
                                             marshalled_version=version,
                                             current_version=1)
     self.incpath_ = data[Marshallable.ATTRIBUTES]['incpath']
     BuildInformation.set_marshalling_data(self, data)
     pass
コード例 #10
0
 def set_marshalling_data(self, data):
     version = data[Marshallable.VERSIONS]['BuildInfo_CMakeModule']
     if version != 1:
         raise MarshalledVersionUnknownError(
             klass=self.__class__,
             marshalled_version=version,
             current_version=1)
     self.__name = data[Marshallable.ATTRIBUTES]['name']
     self.__lines = data[Marshallable.ATTRIBUTES]['lines']
     BuildInformation.set_marshalling_data(self, data)
     pass
コード例 #11
0
    def __init__(self, include_dir):
        """include_dir is either a list of strings or None. If it is a
        list, then the list is the path to the directory that has to
        be added to the consumer's include path (supposedly prefixed
        with $(top_srcdir). If it is None, the consumer will have to
        add the local install directory to its path."""
        BuildInformation.__init__(self)
        self.__include_dir = include_dir

        self.__unique_key = self.__class__.__name__
        if include_dir is not None:
            self.__unique_key += ':' + '/'.join(include_dir)
            pass
        pass
コード例 #12
0
 def set_marshalling_data(self, data):
     version = data[Marshallable.VERSIONS]['BuildInfo_ACInclude_m4']
     if version == 1:
         self.__lines = data[Marshallable.ATTRIBUTES]['lines']
         self.__md5 = helper.md5_hexdigest_from_lines(self.__lines)
     elif version == 2:
         self.__lines = data[Marshallable.ATTRIBUTES]['lines']
         self.__md5 = data[Marshallable.ATTRIBUTES]['md5']
     else:
         raise MarshalledVersionUnknownError(klass=self.__class__,
                                             marshalled_version=version,
                                             current_version=2)
     BuildInformation.set_marshalling_data(self, data)
     pass
コード例 #13
0
 def get_marshalling_data(self):
     return update_marshalling_data(
         marshalling_data=BuildInformation.get_marshalling_data(self),
         generating_class=BuildInfo_CMakeModule,
         attributes={'name': self.__name,
                     'lines': self.__lines},
         version={'BuildInfo_CMakeModule': 1})
コード例 #14
0
 def get_marshalling_data(self):
     return update_marshalling_data(
         marshalling_data=BuildInformation.get_marshalling_data(self),
         generating_class=BuildInfo_Library_External_AM,
         attributes={
             'libpath': self.__libpath,
             'libs': self.__libs
         },
         version={'BuildInfo_Library_External_AM': 1})
コード例 #15
0
ファイル: buildinfo.py プロジェクト: ssi-schaefer/confix
 def get_marshalling_data(self):
     return update_marshalling_data(
         marshalling_data=BuildInformation.get_marshalling_data(self),
         generating_class=BuildInfo_IDL_Native,
         attributes={
             'filename': self.filename_,
             'includes': self.includes_
         },
         version={'BuildInfo_IDL_Native': 1})
コード例 #16
0
 def get_marshalling_data(self):
     return update_marshalling_data(
         marshalling_data=BuildInformation.get_marshalling_data(self),
         generating_class=BuildInfo_ACInclude_m4,
         attributes={
             'lines': self.__lines,
             'md5': self.__md5
         },
         version={'BuildInfo_ACInclude_m4': 2})
コード例 #17
0
 def get_marshalling_data(self):
     return update_marshalling_data(
         marshalling_data=BuildInformation.get_marshalling_data(self),
         generating_class=BuildInfo_Configure_in,
         attributes={
             'lines': self.__lines,
             'order': self.__order,
             'md5': self.__md5
         },
         version={'BuildInfo_Configure_in': 2})
コード例 #18
0
 def get_marshalling_data(self):
     return update_marshalling_data(
         marshalling_data=BuildInformation.get_marshalling_data(self),
         generating_class=BuildInfo_CommandlineMacros,
         attributes={'macros': self.__macros},
         version={'BuildInfo_CommandlineMacros': 1})
コード例 #19
0
 def __init__(self, libpath, libs):
     BuildInformation.__init__(self)
     self.__libpath = libpath
     self.__libs = libs
     pass
コード例 #20
0
 def __init__(self):
     BuildInformation.__init__(self)
コード例 #21
0
 def get_marshalling_data(self):
     return update_marshalling_data(
         marshalling_data=BuildInformation.get_marshalling_data(self),
         generating_class=BuildInfo_CIncludePath_NativeInstalled,
         attributes={},
         version={'BuildInfo_CIncludePath_NativeInstalled': 1})
コード例 #22
0
 def get_marshalling_data(self):
     return update_marshalling_data(
         marshalling_data=BuildInformation.get_marshalling_data(self),
         generating_class=BuildInfo_IncludePath_External_AM,
         attributes={'incpath': self.incpath_},
         version={'BuildInfo_IncludePath_External_AM': 1})
コード例 #23
0
 def __init__(self, cxxflags):
     BuildInformation.__init__(self)
     self.__cxxflags = cxxflags
     pass
コード例 #24
0
 def __init__(self, lines, order):
     BuildInformation.__init__(self)
     self.__lines = lines
     self.__order = order
     self.__md5 = helper.md5_hexdigest_from_lines(lines)
     pass
コード例 #25
0
 def get_marshalling_data(self):
     return update_marshalling_data(
         marshalling_data=BuildInformation.get_marshalling_data(self),
         generating_class=BuildInfo_CXXFLAGS,
         attributes={'cxxflags': self.__cxxflags},
         version={'BuildInfo_CXXFLAGS': 1})
コード例 #26
0
 def __init__(self, incpath):
     BuildInformation.__init__(self)
     self.incpath_ = incpath
     pass
コード例 #27
0
 def __init__(self, basename):
     BuildInformation.__init__(self)
     self.__basename = basename
     pass
コード例 #28
0
 def get_marshalling_data(self):
     return update_marshalling_data(
         marshalling_data=BuildInformation.get_marshalling_data(self),
         generating_class=BuildInfo_CLibrary_NativeInstalled,
         attributes={'basename': self.__basename},
         version={'BuildInfo_CLibrary_NativeInstalled': 1})
コード例 #29
0
ファイル: buildinfo.py プロジェクト: ssi-schaefer/confix
 def __init__(self, filename, includes):
     BuildInformation.__init__(self)
     assert filename.__class__ is types.StringType
     self.filename_ = filename
     self.includes_ = includes
     pass
コード例 #30
0
 def __init__(self, macros):
     BuildInformation.__init__(self)
     self.__macros = macros
     pass