Git Product home page Git Product logo

chef-emscripten's Introduction

Description

This is a Chef cookbook to setup an emscripten build environment.

What happens under the hood:

  • makes sure that git, python and node.js is installed (through standard cookbooks)
  • installs a JRE (default is the package 'default-jre')
  • creates a ~/.emscripten file
  • creates a ~/emscripten-sdk directory
  • installs standard clang-3.3 package to bootstrap the emscripten-fastcomp LLVM backend
  • compile the fastcomp backend as described here: https://github.com/kripken/emscripten/wiki/LLVM-Backend
  • git clone the emscripten sdk to ~/emscripten-sdk/emscripten
  • add EMSCRIPTEN environment variable and path to .bash_profile

Requirements

Platform:

  • Ubuntu/Debian

Dependencies

  • apt
  • git
  • python
  • nodejs
  • ark

Attributes

Default recipe attributes:

  • node['emscripten']['user'] = 'vagrant': user for file permissions and determining home dir
  • node['emscripten']['group'] = 'vagrant': group for file permissions
  • node['emscripten']['rootpath'] = '/home/vagrant/emscripten-sdk': where to put the files
  • node'emscripten']['url'] = 'git://github.com/kripken/emscripten.git': where to get the emscripten SDK
  • default['emscripten']['fastcomp_url'] = 'git://github.com/kripken/emscripten-fastcomp.git': where to find the emscripten-fastcomp repository
  • default['emscripten']['fastcomp_clang_url'] = 'git://github.com/kripken/emscripten-fastcomp-clang.git': where to find the emscripten-fastcomp-clang respository
  • node['emscripten']['branch'] = 'master': what git branch to checkout (alternative: 'incoming')
  • node['emscripten']['python'] = '/usr/bin/python': which python executable emscripten uses (goes into .emscripten file)
  • node['emscripten']['nodejs'] = '/usr/local/bin/node': where to find node.js (goes into .emscripten file)
  • node['emscripten']['jre'] = 'default-jre': which JRE to use (package name)
  • node['emscripten']['clang'] = 'clang-3.3': package name of default clang used to compile emscripten-fastcomp-clang

Author

Author:: Andre Weissflog ([email protected])

chef-emscripten's People

Contributors

floooh avatar mre-fog 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.