Commit 04b1576f authored by Gautier Pelloux-Prayer's avatar Gautier Pelloux-Prayer
Browse files

Handle other generators than Visual Studio in

parent 4764f84d
......@@ -89,13 +89,19 @@ class Target:
def build_instructions(self, debug = False):
if self.generator is None:
return "Run the following command to build:\n\tmake -C WORK/cmake-{target}".format(
elif self.generator.startswith('Visual Studio'):
if self.generator.startswith('Visual Studio'):
config = "Release"
if debug:
config = "Debug"
return "Open the \"WORK\\cmake-{target}\\Project.sln\" Visual Studio solution and build with the \"{config}\" configuration".format(, config=config)
if self.generator in [None, "Unix Makefiles"]:
builder = "make"
elif self.generator == "Ninja":
builder = "ninja"
return "Unknown generator. Files have been generated in WORK/cmake-{target}".format(
return "Run the following command to build:\n\t{builder} -C WORK/cmake-{target}".format(builder=builder,
class BB10Target(Target):
def __init__(self, arch):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment