Giter Site home page Giter Site logo

jbb's Introduction

Download prebuilt libraries from Binary Builder

Command line

usage: jbb.py [-h] [-b ABI] [-a {aarch64,armv6l,armv7l,i686,powerpc64le,x86_64}] [-d OUTDIR] [-l {glibc,musl}] [-o {linux,windows,macos}] [-z {memory}] [-s] [-c] [-q] package [package ...]

Download prebuilt libraries from Binary Builder

positional arguments:
  package               package/GitHub tag to download

options:
  -h, --help            show this help message and exit
  -b --abi ABI          ABI type if Linux
  -a --arch {aarch64,armv6l,armv7l,i686,powerpc64le,x86_64}
                        target machine
  -d --outdir OUTDIR
                        output directory
  -l --libc {glibc,musl}
                        libc type if Linux
  -o --os {linux,windows,macos}
                        operating system
  -z --sanitize {memory}
                        sanitizer type
  -s, --static          copy .a files
  -c, --clean           remove downloaded files
  -q, --quiet           suppress output

For example:

# python3 jbb.py libcurl

Getting libcurl
- Downloading Project-libcurl.toml
- Downloading Artifacts-libcurl.toml
- Downloading LibCURL.v8.6.0.x86_64-linux-musl.tar.gz
- Extracting LibCURL.v8.6.0.x86_64-linux-musl.tar.gz
- Copying libraries
Getting libssh2
- Downloading Project-libssh2.toml
- Downloading Artifacts-libssh2.toml
- Downloading LibSSH2.v1.11.0.x86_64-linux-musl.tar.gz
- Extracting LibSSH2.v1.11.0.x86_64-linux-musl.tar.gz
- Copying libraries
Getting mbedtls
- Downloading Project-mbedtls.toml
- Downloading Artifacts-mbedtls.toml
- Downloading MbedTLS.v2.28.6.x86_64-linux-musl.tar.gz
- Extracting MbedTLS.v2.28.6.x86_64-linux-musl.tar.gz
- Copying libraries
Getting nghttp2
- Downloading Project-nghttp2.toml
- Downloading Artifacts-nghttp2.toml
- Downloading nghttp2.v1.59.0.x86_64-linux-musl.tar.gz
- Extracting nghttp2.v1.59.0.x86_64-linux-musl.tar.gz
- Copying libraries
Getting mbedtls
- Copying libraries
Getting zlib
- Downloading Project-zlib.toml
- Downloading Artifacts-zlib.toml
- Downloading Zlib.v1.3.1.x86_64-linux-musl.tar.gz
- Extracting Zlib.v1.3.1.x86_64-linux-musl.tar.gz
- Copying libraries
Downloaded to lib/x86_64-linux-musl

# ls -1 lib/x86_64-linux-musl
dl
libcurl.so.4
libmbedcrypto.so.7
libmbedtls.so.14
libmbedx509.so.1
libnghttp2.so.14
libssh2.so.1
libz.so.1

# export LD_LIBRARY_PATH=`pwd`/lib/linux-musl-x86_64

API

import os

import jbb

jbb.jbb(
    package = "zlib",
    outdir=os.path.join(os.getcwd(), "zlib"),
    arch="x86_64",
    os="linux",
    libc="musl",
    quiet=False
)

jbb's People

Contributors

genotrance avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.