equal
deleted
inserted
replaced
272 metaReader = raptor_meta.MetaReader(build, build.buildUnitsToBuild) |
272 metaReader = raptor_meta.MetaReader(build, build.buildUnitsToBuild) |
273 |
273 |
274 # convert the list of bld.inf files into a specification |
274 # convert the list of bld.inf files into a specification |
275 # hierarchy suitable for all the configurations we are using. |
275 # hierarchy suitable for all the configurations we are using. |
276 self.specs = list(build.generic_specs) |
276 self.specs = list(build.generic_specs) |
277 self.specs.extend(metaReader.ReadBldInfFiles(self.children, build.doExportOnly)) |
277 self.specs.extend(metaReader.ReadBldInfFiles(self.children, doexport = build.doExport, dobuild = not build.doExportOnly)) |
278 |
278 |
279 except raptor_meta.MetaDataError, e: |
279 except raptor_meta.MetaDataError, e: |
280 build.Error(e.Text) |
280 build.Error(e.Text) |
281 |
281 |
282 self.unfurled = True |
282 self.unfurled = True |
353 var = raptor_data.Variant() |
353 var = raptor_data.Variant() |
354 var.AddOperation(raptor_data.Set("COMPONENT_PATHS", componentList)) |
354 var.AddOperation(raptor_data.Set("COMPONENT_PATHS", componentList)) |
355 var.AddOperation(raptor_data.Set("MAKEFILE_PATH", makefile_path)) |
355 var.AddOperation(raptor_data.Set("MAKEFILE_PATH", makefile_path)) |
356 var.AddOperation(raptor_data.Set("CONFIGS", configList)) |
356 var.AddOperation(raptor_data.Set("CONFIGS", configList)) |
357 var.AddOperation(raptor_data.Set("CLI_OPTIONS", cli_options)) |
357 var.AddOperation(raptor_data.Set("CLI_OPTIONS", cli_options)) |
|
358 |
|
359 |
|
360 # Allow the flm to skip exports. Note: this parameter |
|
361 doexport_str = '1' |
|
362 if not build.doExport: |
|
363 doexport_str = '' |
|
364 var.AddOperation(raptor_data.Set("DOEXPORT", doexport_str )) |
|
365 |
358 # Pass on '-n' (if specified) to the makefile-generating sbs calls |
366 # Pass on '-n' (if specified) to the makefile-generating sbs calls |
359 if build.noBuild: |
367 if build.noBuild: |
360 var.AddOperation(raptor_data.Set("NO_BUILD", "1")) |
368 var.AddOperation(raptor_data.Set("NO_BUILD", "1")) |
361 specNode.AddVariant(var) |
369 specNode.AddVariant(var) |
362 |
370 |
465 self.configsToBuild = set() |
473 self.configsToBuild = set() |
466 self.makeOptions = [] |
474 self.makeOptions = [] |
467 self.maker = None |
475 self.maker = None |
468 self.debugOutput = False |
476 self.debugOutput = False |
469 self.doExportOnly = False |
477 self.doExportOnly = False |
|
478 self.doExport = True |
470 self.noBuild = False |
479 self.noBuild = False |
471 self.noDependInclude = False |
480 self.noDependInclude = False |
472 self.projects = set() |
481 self.projects = set() |
473 |
482 |
474 self.cache = raptor_cache.Cache(self) |
483 self.cache = raptor_cache.Cache(self) |
566 |
575 |
567 def SetExportOnly(self, TrueOrFalse): |
576 def SetExportOnly(self, TrueOrFalse): |
568 self.doExportOnly = TrueOrFalse |
577 self.doExportOnly = TrueOrFalse |
569 return True |
578 return True |
570 |
579 |
|
580 def SetNoExport(self, TrueOrFalse): |
|
581 self.doExport = TrueOrFalse |
|
582 return True |
|
583 |
571 def SetNoBuild(self, TrueOrFalse): |
584 def SetNoBuild(self, TrueOrFalse): |
572 self.noBuild = TrueOrFalse |
585 self.noBuild = TrueOrFalse |
573 return True |
586 return True |
574 |
587 |
575 def SetNoDependInclude(self, TrueOrFalse): |
588 def SetNoDependInclude(self, TrueOrFalse): |
632 |
645 |
633 def SetParallelParsing(self, type): |
646 def SetParallelParsing(self, type): |
634 type = type.lower() |
647 type = type.lower() |
635 if type == "on": |
648 if type == "on": |
636 self.doParallelParsing = True |
649 self.doParallelParsing = True |
637 elif type == "slave": |
|
638 self.isParallelParsingSlave = True |
|
639 elif type == "off": |
650 elif type == "off": |
640 self.doParallelParsing = False |
651 self.doParallelParsing = False |
641 else: |
652 else: |
642 self.Warn(" parallel parsing option must be either 'on' or 'off' (was %s)" % type) |
653 self.Warn(" parallel parsing option must be either 'on' or 'off' (was %s)" % type) |
643 return False |
654 return False |