Exemplo n.º 1
0
def main():
    logging.basicConfig(level=logging.DEBUG)

    args, _ = parse_args()

    os.environ.update(env_vars(args.target_arch_name, args.android_api_level))

    (BASE / 'deps').mkdir(exist_ok=True)
    SYSROOT.mkdir(exist_ok=True)

    package_classes = (
        # ncurses is a dependency of readline
        NCurses,
        BZip2,
        GDBM,
        LibFFI,
        LibUUID,
        OpenSSL,
        Readline,
        SQLite,
        XZ,
        ZLib,
    )

    for pkg_cls in package_classes:
        build_package(pkg_cls(args.target_arch_name, args.android_api_level))
Exemplo n.º 2
0
async def new_loop(request):
    question = await request.json()
    response = state_machine.state_machine(question)
    response["origin"] = "iris"
    response["type"] = "ADD_SERVER_MESSAGE"
    response["variables"] = util.env_vars(iris)
    #print("response", response)
    return web.json_response(response)
Exemplo n.º 3
0
async def new_loop(request):
    question = await request.json()
    response = state_machine.state_machine(question)
    # TODO: possibly encapsulate this into a helper function
    # this is also constucting JSON to be read by the JS reducer, so a bit weird
    response["origin"] = "iris"
    response["type"] = "ADD_SERVER_MESSAGE"
    response["variables"] = util.env_vars(iris)
    return web.json_response(response)
Exemplo n.º 4
0
def main():
    args, remaining = parse_args()
    os.environ.update(env_vars(args.target_arch_name, args.android_api_level))

    # CPython requires explicit --build, and its value does not matter
    # (e.g., x86_64-linux-gnu should also work on macOS)
    cmd = [
        'bash', './configure',
        '--host=' + ARCHITECTURES[args.target_arch_name].ANDROID_TARGET,
        '--build=x86_64-linux-gnu',
        'ac_cv_file__dev_ptmx=yes',
        'ac_cv_file__dev_ptc=no',
        'ac_cv_buggy_getaddrinfo=no',  # for IPv6 functionality
    ]

    os.execvp('bash', cmd + remaining)
Exemplo n.º 5
0
async def variables(request):
    # again, this maps directly onto a react reducer, somewhat weird
    response = {"type": "UPDATE_VARIABLES", "variables": util.env_vars(iris)}
    return web.json_response(response)
Exemplo n.º 6
0
async def variables(request):
    response = {"type": "UPDATE_VARIABLES", "variables": util.env_vars(iris)}
    return web.json_response(response)