Git Product home page Git Product logo

buildhx's Introduction

BuildHX

Helps generate externs for native libraries.

Current Features

  • Generate externs from manually defined XML
  • Generate JS externs for libraries supporting JSDuck and YUIDoc
  • Initial support for binding native C++ libraries

Usage

BuildHX is simple to use:

haxelib run buildhx [options] build.xml

...where options are:

  • -v, -verbose Verbose output.
  • -Dkey Define key.
  • -lpath Include path.
  • key=value Define key with a value.

"build.xml" is your XML definitions file:

<build>
	<source path="path_to_folder_with_js_files" parser="jsduck|yuidoc|cpp" />
	<type name="name" remap="new_name" />
	<class name="name" ignore="true" native="native_name" header="native_header" type="type" extends="parent_class_name" implements="a,b" config="true">
	    <import name="name" />
	    <property type="Dynamic" getter="getter" setter="setter" native="native_name" ignore="true" owner="owner" static="true" />
	    <static-property type="Dynamic" getter="getter" setter="setter" native="native_name" ignore="true" owner="" />
	    <method name="name" native="" ignore="true" owner="" parameters="" params="" return="" static="true">
	        <parameter name="name" type="type" optional="true" />
	        <return type="" />
	    <static-method  name="name" native="" ignore="true" owner="" parameters="" params="" return="">
	        <parameter name="name" type="type" optional="true" />
	        <return type="" />
	    </static-method>
	    <constructor native="native_name" ignore="true" owner="" parameters="" params="" static="true">
	        <parameter name="name" type="type" optional="true" />
	    </constructor>
	</class>
	<output path="path_to_folder" namespace="custom_namespace" native="native_namespace" />
	<library name="ndll_file_name_without extension" type="cpp" />
</build>

buildhx's People

Contributors

andyli avatar danieluranga avatar fintan avatar jgranick avatar meychi avatar yar3333 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.