Пример #1
0
def find_headerdoc(ctx):
    try:
        headerdoc2html = find_program(ctx, ['headerdoc2html'])
        gatherheaderdoc = find_program(ctx, ['gatherheaderdoc'])
    except fbuild.ConfigFailed:
        ctx.logger.failed('cannot find headerdoc; will not generate docs')
        return None
    else:
        return Record(headerdoc2html=headerdoc2html,
                      gatherheaderdoc=gatherheaderdoc)
Пример #2
0
def find_headerdoc(ctx):
    try:
        headerdoc2html = find_program(ctx, ['headerdoc2html'])
        gatherheaderdoc = find_program(ctx, ['gatherheaderdoc'])
    except fbuild.ConfigFailed:
        ctx.logger.failed('cannot find headerdoc; will not generate docs')
        return None
    else:
        return Record(headerdoc2html=headerdoc2html,
                      gatherheaderdoc=gatherheaderdoc)
Пример #3
0
    def __init__(self, ctx, flx=None, flx_pkgconfig=None, debug=False,
                 optimize=False, flags=[]):
        self.flx = find_program(ctx, [flx or 'flx'])
        self.ctx = ctx
        self.debug = debug
        self.optimize = optimize
        self.flags = flags

        self._test()
Пример #4
0
def generate_gl3w(ctx):
    outdir = ctx.buildroot / 'gl3w'

    python3 = find_program(ctx, ['python3', 'python2', 'python'])
    cmd = [python3, 'deps/gl3w/gl3w_gen.py', '--root', outdir]

    ctx.execute(cmd,
                'gl3w_gen.py',
                'gl3w.c gl3w.h glcorearb.h',
                color='compile',
                stdout_quieter=1)
    ctx.db.add_external_dependencies_to_call(
        srcs=['deps/gl3w/gl3w_gen.py'],
        dsts=[
            outdir / 'include' / 'GL' / 'gl3w.h',
            outdir / 'include' / 'GL' / 'glcorearb.h'
        ],
    )
    return outdir / 'include', outdir / 'src' / 'gl3w.c'
Пример #5
0
 def __init__(self, ctx, *, exe=None, defs=[]):
     self.ctx = ctx
     self.exe = find_program(ctx, exe or ['lua', 'luajit'])
     self.defs = defs
Пример #6
0
 def __init__(self, ctx, *, exe=None, defs=[]):
     self.ctx = ctx
     self.exe = find_program(ctx, exe or ['lua', 'luajit'])
     self.defs = defs
Пример #7
0
 def __init__(self, ctx, exe=None, debug=False, flags=[], *, suffix='.c'):
     self.ctx = ctx
     self.exe = find_program(ctx, [exe or 'flex'])
     self.debug = debug
     self.flags = flags
     self.suffix = suffix
Пример #8
0
 def __init__(self, ctx, exe=None):
     self.ctx = ctx
     self.mrkd = exe or find_program(ctx, ['mrkd'])
Пример #9
0
 def __init__(self, ctx, exe=None, debug=False, flags=[], *, suffix='.c'):
     self.ctx = ctx
     self.exe = find_program(ctx, [exe or 'flex'])
     self.debug = debug
     self.flags = flags
     self.suffix = suffix