Example #1
0
def main():
    opts = parse_command_line()
    #orig = os.getcwd()
    try:
        expr = open( opts['pyfile'], "rt" ).read().replace('\r','')
        #os.chdir( this_script_dir() )
        d = {}
        exec( expr, d )

        cfg = d[opts['symbol']]

        # originally, configurations did set the include directories;
        # now this information is passed on the cmd line
        assert not 'includes' in cfg
        cfg['includes'] = opts['includes']
        cfg['need_doxygen'] = opts['need_doxygen']
        cfg['gccxml-path'] = opts['gccxml-path']
        cfg['gccxml-compiler'] = opts['gccxml-compiler']
        cfg['gccxml-cache'] = opts['gccxml-cache']

        cfg['rename'] = get_rename_map(cfg)
        cfg['ignore'] = get_ignored_set(cfg)
        cfg['typemap_lst'] = get_typemaps(cfg)

        cfg['running-script-dir'] = this_script_dir()

        redir_apifiles(cfg, opts)

        intro = introspect.introspect( cfg )
        for action in opts['action']:
            action( cfg , intro, opts )
    finally:
        #os.chdir( orig )
        pass
Example #2
0
def  make_quickbook_doc( opts, run_doxy=True ):
    if not os.path.isdir( opts['qbkoutdir'] ):
        os.makedirs( opts['qbkoutdir'] )
    rtti = introspect.introspect( opts, run_doxy )
    ref_str = make_reference_map(rtti, opts)
    enums_doc = enums_to_qbk( rtti, opts )
    functions_doc = functions_to_qbk( rtti, opts )
    classes_doc = classes_to_qbk(rtti, opts )
    file(os.path.join(opts['qbkoutdir'], "generated_doc.qbk"), "wb" ).write(string.Template(template_file_qbk).substitute(locals()))
    file(os.path.join(opts['qbkoutdir'], "generated_ref_links.qbk"), "wb").write(ref_str)
Example #3
0
def make_quickbook_doc(opts, run_doxy=True):
    if not os.path.isdir(opts['qbkoutdir']):
        os.makedirs(opts['qbkoutdir'])
    rtti = introspect.introspect(opts, run_doxy)
    ref_str = make_reference_map(rtti, opts)
    enums_doc = enums_to_qbk(rtti, opts)
    functions_doc = functions_to_qbk(rtti, opts)
    classes_doc = classes_to_qbk(rtti, opts)
    file(os.path.join(opts['qbkoutdir'], "generated_doc.qbk"),
         "wb").write(string.Template(template_file_qbk).substitute(locals()))
    file(os.path.join(opts['qbkoutdir'], "generated_ref_links.qbk"),
         "wb").write(ref_str)
Example #4
0
def main(cfg, intro=None):
    if not intro:
        intro = introspect.introspect(cfg, True)
    gen_c_api(intro, cfg)
Example #5
0
def main(cfg,intro=None):
    if not intro:
        intro = introspect.introspect(cfg, True)
    gen_cpp_api(intro, cfg)