Giter Club home page Giter Club logo

dstep's Introduction

Introduction

DStep is a tool for translating C and Objective-C headers to D modules.

Download

Pre compiled binaries are available for Mac OS X and Linux 32bit.

https://github.com/jacob-carlborg/dstep/downloads

License

The source code is available under the Boost Software License 1.0

Building

Requirements

Building

  1. Install all requirements, see below

  2. Clone the repository by running:

     $ git clone --recursive git://github.com/jacob-carlborg/dstep.git
    
  3. run ./build.sh

Usage

$ dstep Foo.h -o Foo.d

For translating Objective-C headers add the -ObjC flag.

$ dstep Foo.h -o Foo.d -ObjC

Any flags recognized by Clang can be used.

Install Requirements

These are install instructions for Mac OS X 10.7 and later. It should be easy to modify to work on other Posix platforms.

LLVM and Clang

Download the pre-compiled libraries here:

http://llvm.org/releases/download.html#3.1

Or compile them yourself:

$ git clone http://llvm.org/git/llvm.git
$ cd llvm
$ git co -b release_31
$ cd tools
$ git clone http://llvm.org/git/clang.git
$ cd clang
$ git co -b release_31
$ cd ../..
$ ./configure --enable-optimized
$ cp Release+Asserts/lib/libclang.dylib <path/to/dstep>

DVM

$ wget -O dvm https://github.com/downloads/jacob-carlborg/dvm/dvm-0.4.1-osx
$ chmod +x dvm
$ ./dvm install dvm

DMD

$ dvm install 2.063.2
$ dvm use 2.063.2

Tango

$ git clone https://github.com/SiegeLord/Tango-D2
$ cd Tango-D2
$ ./build/script/bob.rb -r dmd -c dmd .
$ cp libtango.a <path/to/dstep>

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.