def _on_done_select_generator(cls, index):
if index == -1:
cls._is_selecting = False
return
cls.generator = cls.items[index][0]
platform_support = cls.items[index][1]
toolset_support = cls.items[index][2]
cls.platform_support = True if "True" in platform_support else False
cls.toolset_support = True if "True" in toolset_support else False
print("CMakeBuilder: Selected generator is", cls.generator)
if cls.platform_support:
text = "Platform for {} (Press Enter for default): ".format(
cls.generator)
print("CMakeBuilder: Presenting input panel for platform.")
cls.window.show_input_panel(text, "",
cls._on_done_select_platform,
None, None)
elif cls.toolset_support:
cls._select_toolset()
else:
cls._run_configure_with_new_settings()
评论列表
文章目录