Git Product home page Git Product logo

rebar3_idl_compiler's Introduction

rebar3_idl_compiler

This is a plugin for compiling Erlang IDL files using Rebar3.

Use

Add the plugin to your rebar config:

{plugins, [
    {idl, ".*",
     {git,
      "[email protected]:sebastiw/rebar3_idl_compiler.git",
      {branch, "master"}}}
]}.

Then just call your plugin directly in an existing application:

$ rebar3 idl compile
===> Fetching idl ({git ...})
===> Compiling idl
<Plugin Output>

There are two options that can be specified in your rebar.config:

{idl_paths, [Paths]}.
        Path = {file, FilePath, Options} | {file, FilePath} |
               {dir, Directory, Options} | {dir, Directory}

{idl_opts, [Options]}.
        Options: Options specified by the ic module, check
                 http://www.erlang.org/doc/man/ic.html for more info.

If the options is not given with the path tuple, then the idl_opts option is used.

Example:

{idl_opts, [{'Wall', true}]}.
{idl_files, [
             {file, "idl/system.idl", [{outdir, "generated"}]},
             {dir, "idlfiles"}
             ]}.

In the given example, all *.idl-files found under the path "app_root/idlfiles" would be compiled with the 'Wall' option, while the file "app_root/idl/system.idl" would be compiled into the directory "generated".

rebar3_idl_compiler's People

Contributors

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