Git Product home page Git Product logo

rules_gmp's Introduction


forked from phst/gmp

This repository contains Bazel targets for version 6.1.2 of the GNU Multiple Precision Arithmetic Library. To use, add the following to your WORKSPACE file:

http_archive(
    name = "phst_gmp",
    sha256 = "6b138c773afbc41ede0233f873d2508c6ea9dc71c2809ea56aa1f8c4b658c743",
    strip_prefix = "gmp-b02eaae05766c7eae4046d3f65ab9cf277b5519f/",
    urls = ["https://github.com/phst/gmp/archive/b02eaae05766c7eae4046d3f65ab9cf277b5519f.zip"],
)

load("@phst_gmp//:def.bzl", "phst_gmp_repos")

phst_gmp_repos()

load("@rules_foreign_cc//:workspace_definitions.bzl", "rules_foreign_cc_dependencies")

rules_foreign_cc_dependencies(register_default_tools = False)

The register_default_tools = False attribute isn’t necessary; you can also leave it out if you e. g. want to use CMake.

Then you can use the cc_library targets @phst_gmp//:gmp and @phst_gmp//:gmpxx to use the C and C++ bindings of GNU MP, respectively.

This repository relies on rules_foreign_cc. It should work fine on recent versions of GNU/Linux or macOS, but Windows isn’t supported at this point. It includes workarounds for the rules_foreign_cc bugs 185 and 296.

This is not an officially supported Google product.

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.