2500 # one platform is picked as the "default" for extracting things |
2500 # one platform is picked as the "default" for extracting things |
2501 # that are supposedly platform independent (e.g. PRJ_PLATFORMS) |
2501 # that are supposedly platform independent (e.g. PRJ_PLATFORMS) |
2502 self.defaultPlatform = self.ExportPlatforms[0] |
2502 self.defaultPlatform = self.ExportPlatforms[0] |
2503 |
2503 |
2504 |
2504 |
2505 def ReadBldInfFiles(self, aComponentList, doExportOnly): |
2505 def ReadBldInfFiles(self, aComponentList, doexport, dobuild = True): |
2506 """Take a list of bld.inf files and return a list of build specs. |
2506 """Take a list of bld.inf files and return a list of build specs. |
2507 |
2507 |
2508 The returned specification nodes will be suitable for all the build |
2508 The returned specification nodes will be suitable for all the build |
2509 configurations under consideration (using Filter nodes where required). |
2509 configurations under consideration (using Filter nodes where required). |
2510 """ |
2510 """ |
2580 |
2580 |
2581 # we now need to process the EXPORTS for all the bld.inf nodes |
2581 # we now need to process the EXPORTS for all the bld.inf nodes |
2582 # before we can do anything else (because raptor itself must do |
2582 # before we can do anything else (because raptor itself must do |
2583 # some exports before the MMP files that include them can be |
2583 # some exports before the MMP files that include them can be |
2584 # processed). |
2584 # processed). |
2585 for i,p in enumerate(exportNodes): |
2585 if doexport: |
2586 exportPlatform = self.ExportPlatforms[i] |
2586 for i,p in enumerate(exportNodes): |
2587 for s in p.GetChildSpecs(): |
2587 exportPlatform = self.ExportPlatforms[i] |
2588 try: |
2588 for s in p.GetChildSpecs(): |
2589 self.ProcessExports(s, exportPlatform) |
2589 try: |
2590 |
2590 self.ProcessExports(s, exportPlatform) |
2591 except MetaDataError, e: |
2591 |
2592 self.__Raptor.Error("%s",e.Text) |
2592 except MetaDataError, e: |
2593 if not self.__Raptor.keepGoing: |
2593 self.__Raptor.Error("%s",e.Text) |
2594 return [] |
2594 if not self.__Raptor.keepGoing: |
|
2595 return [] |
2595 |
2596 |
2596 # this is a switch to return the function at this point if export |
2597 # this is a switch to return the function at this point if export |
2597 # only option is specified in the run |
2598 # only option is specified in the run |
2598 if (self.__Raptor.doExportOnly): |
2599 if dobuild is not True: |
2599 self.__Raptor.Info("Processing Exports only") |
2600 self.__Raptor.Info("Processing Exports only") |
2600 return[] |
2601 return[] |
2601 |
2602 |
2602 # after exports are done we can look to see if there are any |
2603 # after exports are done we can look to see if there are any |
2603 # new Interfaces which can be used for EXTENSIONS. Make sure |
2604 # new Interfaces which can be used for EXTENSIONS. Make sure |