|
|
@ -97,9 +97,9 @@ class Conf: |
|
|
|
else: |
|
|
|
else: |
|
|
|
print('{0:{width[0]}} {1:{width[1]}} {3}'.format(*line, width=col_widths)) |
|
|
|
print('{0:{width[0]}} {1:{width[1]}} {3}'.format(*line, width=col_widths)) |
|
|
|
|
|
|
|
|
|
|
|
def split_options_per_subproject(self, options_iter): |
|
|
|
def split_options_per_subproject(self, options): |
|
|
|
result = {} |
|
|
|
result = {} |
|
|
|
for k, o in options_iter: |
|
|
|
for k, o in options.items(): |
|
|
|
subproject = '' |
|
|
|
subproject = '' |
|
|
|
if ':' in k: |
|
|
|
if ':' in k: |
|
|
|
subproject, optname = k.split(':') |
|
|
|
subproject, optname = k.split(':') |
|
|
@ -211,15 +211,15 @@ class Conf: |
|
|
|
return 'build.' + k |
|
|
|
return 'build.' + k |
|
|
|
return k[:idx + 1] + 'build.' + k[idx + 1:] |
|
|
|
return k[:idx + 1] + 'build.' + k[idx + 1:] |
|
|
|
|
|
|
|
|
|
|
|
core_options = self.split_options_per_subproject(core_options.items()) |
|
|
|
core_options = self.split_options_per_subproject(core_options) |
|
|
|
host_compiler_options = self.split_options_per_subproject( |
|
|
|
host_compiler_options = self.split_options_per_subproject( |
|
|
|
self.coredata.flatten_lang_iterator( |
|
|
|
dict(self.coredata.flatten_lang_iterator( |
|
|
|
self.coredata.compiler_options.host.items())) |
|
|
|
self.coredata.compiler_options.host.items()))) |
|
|
|
build_compiler_options = self.split_options_per_subproject( |
|
|
|
build_compiler_options = self.split_options_per_subproject( |
|
|
|
self.coredata.flatten_lang_iterator( |
|
|
|
dict(self.coredata.flatten_lang_iterator( |
|
|
|
(insert_build_prefix(k), o) |
|
|
|
(insert_build_prefix(k), o) |
|
|
|
for k, o in self.coredata.compiler_options.build.items())) |
|
|
|
for k, o in self.coredata.compiler_options.build.items()))) |
|
|
|
project_options = self.split_options_per_subproject(self.coredata.user_options.items()) |
|
|
|
project_options = self.split_options_per_subproject(self.coredata.user_options) |
|
|
|
show_build_options = self.default_values_only or self.build.environment.is_cross_build() |
|
|
|
show_build_options = self.default_values_only or self.build.environment.is_cross_build() |
|
|
|
|
|
|
|
|
|
|
|
self.add_section('Main project options') |
|
|
|
self.add_section('Main project options') |
|
|
|