Ejemplo n.º 1
0
 def cmake(self, args):
     """Return new CMake object initialized with given args
     """
     toolchain = host_toolchain()
     toolchain.cc = args.host_cc
     toolchain.cxx = args.host_cxx
     if args.distcc:
         toolchain.distcc = self.mock_distcc_path()
     return CMake(args=args, toolchain=toolchain)
Ejemplo n.º 2
0
 def cmake(self, args):
     """Return new CMake object initialized with given args
     """
     host_distcc = None
     if args.distcc:
         host_distcc = self.mock_distcc_path()
     return CMake(args=args,
                  host_cc=args.host_cc,
                  host_cxx=args.host_cxx,
                  host_distcc=host_distcc)
Ejemplo n.º 3
0
 def cmake(self, args):
     """Return new CMake object initialized with given args
     """
     toolchain = host_toolchain()
     toolchain.cc = args.cmake_c_compiler
     toolchain.cxx = args.cmake_cxx_compiler
     if args.distcc:
         toolchain.distcc = self.mock_distcc_path()
     toolchain.ninja = self.which_ninja(args)
     return CMake(args=args, toolchain=toolchain)
Ejemplo n.º 4
0
 def cmake(self, args):
     """Return new CMake object initialized with given args
     """
     toolchain = host_toolchain()
     toolchain.cc = args.host_cc
     toolchain.cxx = args.host_cxx
     if args.distcc:
         toolchain.distcc = self.mock_distcc_path()
     if args.build_ninja:
         toolchain.ninja = '/path/to/built/ninja'
     return CMake(args=args, toolchain=toolchain)
Ejemplo n.º 5
0
 def cmake(self, args):
     """Return new CMake object initialized with given args
     """
     toolchain = host_toolchain()
     toolchain.cc = args.host_cc
     toolchain.cxx = args.host_cxx
     toolchain.libtool = args.host_libtool
     if args.distcc:
         toolchain.distcc = self.mock_distcc_path()
     if args.sccache:
         toolchain.sccache = self.mock_sccache_path()
     toolchain.ninja = self.which_ninja(args)
     return CMake(args=args, toolchain=toolchain)