Пример #1
0
        if self.target == 'none':

            # Simple integrated status tests check. Only verifies that
            # we will not get build system errors from things like missing
            # test files.

            utils.check_call("b2", "headers")
            utils.check_call("b2", "-n")
            os.chdir(os.path.join(self.root_dir, "status"))
            utils.check_call("b2", "-n", "-d0")

        else:

            # Build specified target in status/Jamfile

            os.chdir(os.path.join(self.root_dir, "status"))

            cmd = ['b2', '-j%s' % (self.jobs), self.target]

            if self.toolset:
                cmd.append('toolset=' + self.toolset)

            if self.cxxstd:
                cmd.append('cxxstd=' + self.cxxstd)

            utils.check_call(*cmd)


main(script)
Пример #2
0
        os.environ['PATH'] = os.pathsep.join([self.root_dir,os.environ['PATH']])

        if self.target == 'none':

            # Simple integrated status tests check. Only verifies that
            # we will not get build system errors from things like missing
            # test files.

            utils.check_call("b2","headers")
            utils.check_call("b2","-n")
            os.chdir(os.path.join(self.root_dir,"status"))
            utils.check_call("b2","-n","-d0")

        else:

            # Build specified target in status/Jamfile

            os.chdir(os.path.join(self.root_dir,"status"))

            cmd = [ 'b2', '-j%s' % (self.jobs), self.target ]

            if self.toolset:
                cmd.append( 'toolset=' + self.toolset )

            if self.cxxstd:
                cmd.append( 'cxxstd=' + self.cxxstd )

            utils.check_call( *cmd )

main(script)