def __init__(self): self._logger = logging.getLogger(__name__) self._sys_info = system.SystemInfo() self._cmake_launcher = None self._dict_generator_choice = { 'linux': ['umake', 'ninja'], 'macosx': ['xcode', 'umake', 'ninja'], 'windows': ['vs15', 'vs14', 'vs12', 'vs11', 'vs10', 'mgwmake', 'ninja'] } self._msvc_dict = MsvcToolsetSpecDict() self._top_dir = None self._cmake_mod_list = [ 'pyhhi.cmbuild.app.cmk', 'pyhhi.build.common.bldtools', 'pyhhi.cmbuild.cmksupp', 'pyhhi.build.common.system', 'pyhhi.build.common.util', 'pyhhi.build.common.ver' ]
def __init__(self, use_env=True): self._logger = logging.getLogger(__name__) self._sys_info = system.SystemInfo() self._use_env = use_env # check for ANDROID_NDK_ROOT when searching for NDK. self._re_ndk_root = re.compile( r'((android-ndk-r\d+([a-z]?))|(ndk-bundle))$') self._ndksa_root = os.path.join(self._sys_info.get_home_dir(), 'bin', 'ndk-sa') # set up a platform specific NDK search path if self._sys_info.is_macosx(): ndk_search_path = [ os.path.join(self._sys_info.get_home_dir(), 'Library', 'Android', 'Sdk'), os.path.join(self._sys_info.get_home_dir(), 'Library'), self._sys_info.get_home_dir() ] else: ndk_search_path = [ os.path.join(self._sys_info.get_home_dir(), 'Android', 'Sdk'), self._sys_info.get_home_dir() ] self._ndk_search_path = [ d for d in ndk_search_path if os.path.exists(d) ] self._logger.debug("NDK search path: " + ';'.join(self._ndk_search_path)) # (self._ndk_root, self._ndk_version) = self._find_ndk_root() self._ndk_platforms = self._query_platforms(self._ndk_root) self._ndksa_toolchains = { 'gnustl': self._query_ndksa_toolchains(self.get_ndksa_root('gnustl')), 'libc++': self._query_ndksa_toolchains(self.get_ndksa_root('libc++')) } self._ndk_toolchain_dict = { 'arm-linux-androideabi': 'arm-linux-androideabi', 'aarch64-linux-android': 'aarch64-linux-android', 'x86': 'i686-linux-android', 'x86_64': 'x86_64-linux-android' }
def __init__(self): self._sys_info = system.SystemInfo() assert not self._sys_info.is_windows()
def setUp(self): self._sys_info = system.SystemInfo()
def __init__(self): self._sys_info = system.SystemInfo()
def __init__(self): # creates the system info object and performs python version checks self._sys_info = system.SystemInfo(True) # Mapping between CMake VC toolsets and Boost.Build VC toolsets. self._msvc_dict = MsvcToolsetSpecDict()