Commit 0a9a7741 authored by Ghislain MARY's avatar Ghislain MARY

Allow project to define the target to use to list the features.

parent b09d37d1
......@@ -270,6 +270,9 @@ class Preparator:
def list_feature_target(self):
return None
def first_target(self):
return self.targets[[0]]
......@@ -282,7 +285,9 @@ class Preparator:
def list_features_with_args(self, args, additional_args):
tmpdir = tempfile.mkdtemp(prefix="linphone-prepare")
tmptarget = self.first_target()
tmptarget = self.list_feature_target()
if tmptarget is None:
tmptarget = self.first_target()
tmptarget.abs_cmake_dir = tmpdir
option_regex = re.compile("ENABLE_(.*):(.*)=(.*)")
options = {}
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