Giter Club home page Giter Club logo

bindee's Introduction

bindee

bindee is a best-effort, binding tool for generating C++-Python bindings.

Requirements

bindee depends on two open source projects:

Building

bindee uses llvm-config, which should have been installed with Clang, to generate correct compilation flags. After the correct versions of clang++ and llvm-config have been loaded:

$ make [EXTRA_FLAGS=compiler_flags] && make test

The EXTRA_FLAGS variable allow users to avoid specifying common compiler_flags for every bindee invocation (see below).

Running

To bind all possible names:

$ ./bindee file.hh -- [compiler_flags]

compiler_flags is the set of flags you would use to normally compile file.hh, e.g. macro definitions or include paths.

To bind specific names:

$ ./bindee -d file.hh -- [compiler_flags]
$ # remove unnecessary lines in file.in
$ ./bindee -i file.in file.hh -- [compiler_flags]

After generating a bind file, replace any @TEXT@ strings until the code successfully compiles.

Limitations

  • Fails to qualify typedefs of namespaced, templated classes used in function signatures.
  • Does not generate custom lambda bindings or trampolines.

Contributing

Contributions may be made by creating a pull request into the master branch. Bugfixes and features must be accompanied by a test.

License

bindee is distributed under the terms of the MIT license. All new contributions must be made under this license.

See LICENSE and NOTICE for details.

SPDX-License-Identifier: MIT

LLNL-CODE-803397

bindee's People

Contributors

jskimko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.