slnProjects.append( { 'PROJNAME': proj['PROJNAME'], 'PROJGUID': guidDict[proj['PROJNAME']], 'DEBUG': debugmode } ) contexo.ctx_msvc.make_solution8( args.solution, args.output, slnProjects, external_vcproj, args.platform ) # # The End # infoMessage("Export done.", 1) ##### ENTRY POINT ############################################################# # Create Parser parser = ArgumentParser( description="""MSVC project export - plugin to Contexo Build System (c) 2006-2009 Scalado AB""", version="0.1") parser.set_defaults(func=cmd_parse) parser.add_argument('-vcver', '--vcversion', default='8', help="Resulting export will comply to this major version of MSVC. Supported versions: 8" ) parser.add_argument('-pn', '--project-name', default=None, help="""Used as the title and filename for the resulting project. If the export operation generates multiple projects, this parameter will be ignored. If omitted, default name '%s' will be used."""%default_projname ) parser.add_argument('-sln', '--solution', default=None, help="""Name of solution file (*.sln). If specified, all projects generated during the export are bundled into a solution with this name.""")
parser = ArgumentParser( description="""Android NDK MK export - plugin to Contexo Build System (c) 2006-2009 Scalado AB. Creates makefiles for building a set of contexo component files with the Android NDK. Note that Contexo has a default bconf which likely is not compatible with Android. Make sure to specify a bc-file in the export. The @ can be used to put arguments in a file. Example usage: <Contexo Export> | andkmk.py @args.txt --ndk C:/dev/android/android-ndk-1.6_r1 --project project --abs-sub C: /cygdrive/c Content of args.txt = [ --app midemo --shared albv_android --ldlibs GLESv1_CM dl log --static-libs deplib1 deplib2 deplib3 deplib4 --arm-mode arm ] The example will create: <NDK>/apps/midemo/Application.mk <CWD>/project/jni/Android.mk <CWD>/project/jni/static_<LIBNAME>/Android.mk (for each static library) <CWD>/project/jni/shared/Android.mk Example, exporting to a the android source tree: $ python /usr/local/bin/ctx.py export mycomp.comp --bconf android_mk_rel.bc --view . --tolerate-missing-headers > exported.txt $ cat exported.txt | python andkmk.py @args.txt --mydroid /home/user/android/eclair Content of args.txt = [ --app mymodule --shared mysharedmodule --static-libs mystaticmodule --vars-android LOCAL_C_INCLUDES += $(JNI_H_INCLUDE) frameworks/base/include/binder external/skia/include/core frameworks/base/core/jni/android/graphics --vars-shared LOCAL_SHARED_LIBRARIES := libandroid_runtime libnativehelper libcutils libutils libui libbinder libskia libmedia LOCAL_PRELINK_MODULE := false ] The example will create a number of Android.mk files under /home/user/android/eclair/mymodule. """, version="0.5", formatter_class=RawDescriptionHelpFormatter, fromfile_prefix_chars='@')
map(writeCall, allNames[inname]) map(writeName, nameMap.items() ) outputfile.close() # # The End # infoMessage("Export done.", 1) ##### ENTRY POINT ############################################################# # Create Parser parser = ArgumentParser( description="""tengil testcase parser""", version="0.1") parser.set_defaults(func=cmd_parse) parser.add_argument('-in', '--input-names', nargs = '+', help="""names of the calls or macros to find""") parser.add_argument('-on', '--output-names', default='', nargs = '*', help="""names of the calls to generate""") parser.add_argument('-o', '--output', default=os.getcwd(), help="The path to the output file.") #parser.add_argument('-ld','--libdir', default="", help=standard_description['--libdir'])
if args.all == True: import shutil try: shutil.rmtree(obj_dir) infoMessage("All objects successfully removed.") except: warningMessage("No objects removed.") pass ############################################################################### # ENTRY POINT # Create Parser parser = ArgumentParser( prog="ctx", description=ctx_sysinfo.CTX_BANNER, version=ctx_sysinfo.CTX_DISPLAYVERSION, fromfile_prefix_chars='@' ) subparsers = parser.add_subparsers () standard_description = dict({\ '--bconf': "Build configuration file (*.bc/*.bconf)",\ '--env': "One or more enviroment replacement files (*.env)",\ '--output': "The location (path) in which to place output files",\ '--libdir': "Relative directory within '--output' in which to place built binaries. Will be created if not already present.",\ '--headerdir': "Directory name within '--output' in which to place exported header files. Will be created if not already present.",\ '--deps': "If specified, all dependencies (modules) are processed as well.",\ '--tests': "If specified, the unit tests for each processed code module are included as well.",\ '--view': "The local view directory to use for this operation. If omitted, current working directory is used.",\ '--logfile': "Name of logfile to generate. Will be created in output folder as defined by the --output option.",\ '--repo-validation': "DEPRECATED: validation is only performed by the subcommands 'ctx freeze', 'ctx view', and 'ctx validate'",\
incPaths, args.output, ) # # The End # infoMessage("Export done.", 1) ##### ENTRY POINT ############################################################# # Create Parser parser = ArgumentParser( description="""Netbeans project export - plugin to Contexo Build System (c) 2006-2010 Scalado AB""", version="0.1", ) parser.set_defaults(func=cmd_parse) parser.add_argument( "-ai", "--additional-includes", default=None, help="""Directory, or path to a file with include paths to append to the include directories of all projects generated. The paths in the file can be separated by line or by semicolon.""", ) parser.add_argument("-o", "--output", default=os.getcwd(), help="The output directory for the export.")
recurse_rspecs( current_rspec, current_imports, dotfile ) dotfile.write( footer ) dotfile.close() os.system( "dot.exe -Tjpeg %s -ofile -O"%(filename) ) if not args.no_display: os.system( "%s"%( filename + '.jpeg') ) print >>sys.stderr, "Done" ##### ENTRY POINT ############################################################# # Create Parser parser = ArgumentParser( description="RSpec tree image generator - plugin to Contexo Build System (c) 2006-2009 Scalado AB", epilog="Requires Graphviz dot to be installed on the system.\nObtain installer for Windows here: http://www.graphviz.org/pub/graphviz/stable/windows/graphviz-2.24.msi", version="0.1") parser.set_defaults(func=cmd_parse) parser.add_argument('-o', '--output', default=os.getcwd(), help="The output directory for the export. Default is current directory.") parser.add_argument('-nd', '--no-display', action='store_true', help="""If specified, the rendered JPEG image will not be automatically displayed""") args = parser.parse_args() args.func(args)