def cmd_info(args): output_dir = args.view + os.sep + '.ctx/obj' from contexo.ctx_depmgr import CTXDepMgr # # Get Code Module Paths from view. # cview = ctx_view.CTXView(args.view, ctx_view.AP_NO_REMOTE_ACCESS, False, False) # # Show info # print "Contexo version: ", ctx_sysinfo.CTX_DISPLAYVERSION print "Using build config file: ", CTX_DEFAULT_BCONF # # Module # # Prepare all bc = getBuildConfiguration( cview, args ) if args.module != None: deprecated_tolerate_missing_headers_warning(args) depmgr = CTXDepMgr ( codeModulePaths = cview.getItemPaths('modules'), failOnMissingHeaders = args.fail_on_missing_headers, archPath = bc.getArchPath(), legacyCompilingMod = args.legacy_compiling_mod ) depmgr.addCodeModules( args.module ) module_names = depmgr.getCodeModulesWithDependencies () module_names.sort () if len ( module_names ) > 0: print "\nModules '" + args.module[0] + "' depends on:\n" for module in module_names: print "\t",module pub_headers = depmgr.getPublicHeaders ( args.module) pub_headers.sort() if len ( pub_headers ) > 0: print "\nPublic headers '" + args.module[0] + "' depends on:\n" for header in pub_headers: print "\t",header module_names = depmgr.getDependentModules( args.module[0] ) if len ( module_names ) > 0: print "\nModule(s) that depend(s) on '" + args.module[0] + "':\n" for module in module_names: print "\t",module
def cmd_info(args): from contexo.ctx_depmgr import CTXDepMgr # # Get Code Module Paths from view. # cview = ctx_view.CTXView(args.view, ctx_view.AP_NO_REMOTE_ACCESS, False, False) # # Show info # print "Contexo version: ", ctx_sysinfo.CTX_DISPLAYVERSION print "Using build config file: ", CTX_DEFAULT_BCONF # # Module # if args.module != None: depmgr = CTXDepMgr ( cview.getItemPaths('modules') ) depmgr.addCodeModules( args.module ) module_names = depmgr.getCodeModulesWithDependencies () module_names.sort () if len ( module_names ) > 0: print "\nModules '" + args.module[0] + "' depends on:\n" for module in module_names: print "\t",module pub_headers = depmgr.getPublicHeaders ( args.module) pub_headers.sort() if len ( pub_headers ) > 0: print "\nPublic headers '" + args.module[0] + "' depends on:\n" for header in pub_headers: print "\t",header module_names = depmgr.getDependentModules( args.module[0] ) if len ( module_names ) > 0: print "\nModule(s) that depend(s) on '" + args.module[0] + "':\n" for module in module_names: print "\t",module