コード例 #1
0
    def TESTS_ENVIRONMENT(self, name, value):
        if type(name) is not types.StringType:
            raise Error('TESTS_ENVIRONMENT(): key must be a string')
        if type(value) is not types.StringType:
            raise Error('TESTS_ENVIRONMENT(): value must be a string')

        automake_output_builder = find_automake_output_builder(
            self.__dirbuilder)
        automake_output_builder.makefile_am().add_tests_environment(
            name, value)
        pass
コード例 #2
0
 def ACINCLUDE_M4(self, lines, flags=None):
     if flags is None or self.AC_BUILDINFO_TRANSPORT_LOCAL in flags:
         automake_output_builder = find_automake_output_builder(
             self.__dirbuilder)
         assert automake_output_builder
         automake_output_builder.acinclude_m4().add_paragraph(
             paragraph=Paragraph(lines=lines))
         pass
     if flags is None or self.AC_BUILDINFO_TRANSPORT_PROPAGATE in flags:
         self.__dirbuilder.add_buildinfo(
             BuildInfo_ACInclude_m4(lines=lines))
         pass
     pass
コード例 #3
0
 def CONFIGURE_AC(self, lines, order, flags=None):
     if type(order) not in [types.IntType or types.LongType]:
         raise Error('CONFIGURE_AC(): "order" parameter must be an integer')
     if flags is None or self.AC_BUILDINFO_TRANSPORT_LOCAL in flags:
         automake_output_builder = find_automake_output_builder(
             self.__dirbuilder)
         assert automake_output_builder
         automake_output_builder.configure_ac().add_paragraph(
             paragraph=Paragraph(lines=lines), order=order)
         pass
     if flags is None or self.AC_BUILDINFO_TRANSPORT_PROPAGATE in flags:
         self.__dirbuilder.add_buildinfo(
             BuildInfo_Configure_in(lines=lines, order=order))
         pass
     pass
コード例 #4
0
ファイル: out_idl.py プロジェクト: ssi-schaefer/confix
    def output(self):
        super(IDLOutputBuilder, self).output()

        output_builder = None

        for idl in self.parentbuilder().iter_builders():
            if type(idl) is not IDLBuilder:
                continue

            if output_builder is None:
                output_builder = find_automake_output_builder(
                    self.parentbuilder())
                assert output_builder is not None
                pass

            output_builder.makefile_am().add_extra_dist(idl.file().name())
            output_builder.file_installer().add_private_header(
                filename=idl.file().name(), dir=idl.install_path())
            output_builder.file_installer().add_public_header(
                filename=idl.file().name(), dir=idl.install_path())

            pass
        pass
コード例 #5
0
 def ADD_EXTRA_DIST(self, filename):
     automake_output_builder = find_automake_output_builder(
         self.__dirbuilder)
     assert automake_output_builder
     automake_output_builder.makefile_am().add_extra_dist(filename)
     pass
コード例 #6
0
 def ADD_AM_CXXFLAGS(self, str):
     automake_output_builder = find_automake_output_builder(
         self.__dirbuilder)
     assert automake_output_builder
     automake_output_builder.makefile_am().add_am_cxxflags(str)
     pass
コード例 #7
0
 def MAKEFILE_AM(self, line):
     automake_output_builder = find_automake_output_builder(
         self.__dirbuilder)
     assert automake_output_builder
     automake_output_builder.makefile_am().add_line(line)
     pass