def missing_build_tools(fips_dir, tool_name) : """check if a build tool is installed""" missing = [] if tool_name == 'cmake' : if not cmake.check_exists(fips_dir): missing.append(cmake.name) elif tool_name == 'make' : if not make.check_exists(fips_dir): missing.append(make.name) elif tool_name == 'ninja' : if not ninja.check_exists(fips_dir): missing.append(ninja.name) elif tool_name == 'xcodebuild' : if not xcodebuild.check_exists(fips_dir): missing.append(xcodebuild.name) elif tool_name == 'vscode_cmake' : if not vscode.check_exists(fips_dir): missing.append(vscode.name) if not cmake.check_exists(fips_dir): missing.append(cmake.name) elif tool_name == 'vscode_ninja' : if not vscode.check_exists(fips_dir): missing.append(vscode.name) if not ninja.check_exists(fips_dir): missing.append(ninja.name) elif tool_name == 'clion' : if not clion.check_exists(fips_dir): missing.append(clion.name) return missing
def check_build_tool(fips_dir, tool_name) : """check if a build tool is installed""" if tool_name == 'cmake' : return cmake.check_exists(fips_dir) elif tool_name == 'make' : return make.check_exists(fips_dir) elif tool_name == 'ninja' : return ninja.check_exists(fips_dir) elif tool_name == 'xcodebuild' : return xcodebuild.check_exists(fips_dir) else : return False;
def check_build_tool(fips_dir, tool_name): """check if a build tool is installed""" if tool_name == 'cmake': return cmake.check_exists(fips_dir) elif tool_name == 'make': return make.check_exists(fips_dir) elif tool_name == 'ninja': return ninja.check_exists(fips_dir) elif tool_name == 'xcodebuild': return xcodebuild.check_exists(fips_dir) else: return False