~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to emmake

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-02 13:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20130502131151-q8dvteqr1ef2x7xz
Tags: upstream-1.4.1~20130504~adb56cb
ImportĀ upstreamĀ versionĀ 1.4.1~20130504~adb56cb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python2
 
2
 
 
3
'''
 
4
This is a helper script. It runs make for you, setting
 
5
the environment variables to use emcc and so forth. Usage:
 
6
 
 
7
  emmake make [FLAGS]
 
8
 
 
9
Not that if you ran configure with emconfigure, then
 
10
the environment variables have already been detected
 
11
and set. This script is useful if you have no configure
 
12
step, and your Makefile uses the environment vars
 
13
directly.
 
14
 
 
15
The difference between this and emconfigure is that
 
16
emconfigure runs compilation into native code, so
 
17
that configure tests pass. emmake uses Emscripten to
 
18
generate JavaScript.
 
19
'''
 
20
 
 
21
import os, sys
 
22
from tools import shared
 
23
from subprocess import CalledProcessError
 
24
 
 
25
try:
 
26
        shared.Building.make(sys.argv[1:])
 
27
except CalledProcessError, e:
 
28
        sys.exit(e.returncode)
 
29