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

« back to all changes in this revision

Viewing changes to .pc/pythonpath.diff/emscons

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-09-20 22:44:35 UTC
  • mfrom: (4.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130920224435-apuwj4fsl3fqv1a6
Tags: 1.5.6~20130920~6010666-1
* New snapshot release
* Update the list of supported architectures to the same as libv8
  (Closes: #723129)
* emlibtool has been removed from upstream.
* Fix warning syntax-error-in-dep5-copyright
* Refresh of the patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python2
 
2
 
 
3
'''
 
4
Wrapping the scons invocation, EMSCRIPTEN_TOOL_PATH is set in the process
 
5
environment, and can be used to locate the emscripten SCons Tool.
 
6
Example:
 
7
# Load emscripten Tool
 
8
my_env = Environment(tools=['emscripten'], toolpath=[os.environ['EMSCRIPTEN_TOOL_PATH']])
 
9
'''
 
10
 
 
11
import os, subprocess, sys
 
12
from tools import shared
 
13
 
 
14
tool_path = os.path.join(shared.path_from_root('tools'), 'scons', 'site_scons', 'site_tools', 'emscripten')
 
15
 
 
16
env = os.environ.copy()
 
17
env[ 'EMSCRIPTEN_TOOL_PATH' ] = tool_path
 
18
 
 
19
exit(subprocess.call(sys.argv[1:], env=env))
 
20