Alon Zakai
2416d19b0b
bundle preloaded files also when not compressing them
2012-03-29 13:39:53 -07:00
Alon Zakai
f88f3af217
do not use blob constructor if not present, and closure workaround
2012-03-27 15:39:35 -07:00
Alon Zakai
7450114c4d
support wav and mp3 audio suffixes too
2012-03-27 13:24:49 -07:00
Alon Zakai
b4dcd8daa2
support for playing audio chunks through SDL mix
2012-03-27 11:59:12 -07:00
Alon Zakai
84d65c025b
show 'Downloading..' when downloading data archive
2012-03-26 20:57:02 -07:00
Alon Zakai
ca18402ba1
show status messages for decompressing and clear status on run
2012-03-26 17:54:44 -07:00
Alon Zakai
b0e285503b
compression docs
2012-03-26 16:46:24 -07:00
Alon Zakai
825407da4f
compress all data files into one big file
2012-03-26 16:42:43 -07:00
Alon Zakai
eb0f4c41bf
use shlex
2012-03-26 10:21:25 -07:00
Alon Zakai
74acbe73a8
--llvm-lto option to disable lto
2012-03-25 14:13:53 -07:00
Alon Zakai
61443c6118
fix webkitURL
2012-03-24 11:57:54 -07:00
Alon Zakai
d7c13abc2d
support window.WebKitURL
2012-03-24 11:44:37 -07:00
Alon Zakai
26f0edbd0c
support both Moz and WebKit BlobBuilders
2012-03-24 10:42:57 -07:00
Alon Zakai
406c106b0c
save the canvas in preloadedImages, and do canvas blits in IMG_Load etc.
2012-03-22 10:40:06 -07:00
Alon Zakai
44e1d4a267
typo on directory generation code
2012-03-21 14:34:49 -07:00
Alon Zakai
e0092a687d
fix some bugs with preloading of entire directories
2012-03-21 14:24:55 -07:00
Alon Zakai
cdc82664d8
Merge pull request #312 from SiggyBar/incoming
...
Misc fixes for Windows.
2012-03-20 16:03:39 -07:00
Alon Zakai
ed9b24c684
emcc help on --pre and --post-js
2012-03-20 13:37:59 -07:00
Sigmund Vik
f829735cc3
Misc fixes for Windows.
...
Most of these changes have to do with how python scripts are invoked.
For Linux, 'Popen([EMCC] + args)' works because the first line in emcc
is '#!/usr/bin/env python'. On Windows, the python interpreter has
to be explicitly invoked, e.g. 'Popen(['python', EMCC] + args)'. Note
that there is no harm in explicitly invoking the python interpreter
on Linux, so this works on both platforms.
For Windows, execvp() behaves differently than on Linux:
http://mail.python.org/pipermail/python-list/2002-July/763863.html
http://msdn.microsoft.com/en-us/library/3xw6zy53.aspx
This causes many strange things to happen as the parent process
terminated before its children. In this change the use of execvp()
has been replaced with subprocess.call().
This change also fixes some code that assumed that the path separator
always is '/', but for Windows it is '\'. And where the path module
can be required, we use path.normalize() and path.resolve() to check
if a filename is absolute in a platform agnostic manner.
2012-03-20 14:26:50 +01:00
Alon Zakai
2a6749efe2
fix test_emcc_multifile
2012-03-19 17:10:36 -07:00
Alon Zakai
f9ef501d57
define -DEMSCRIPTEN even when just configuring, so bundled headers work
2012-03-19 16:52:59 -07:00
Alon Zakai
af8eab2920
nicer debug output in emcc
2012-03-19 16:49:36 -07:00
Alon Zakai
3bb37508db
remove .compress if the compress wasn't worth it
2012-03-19 15:48:21 -07:00
Alon Zakai
e4a926f49b
do compression of downloaded code+datafiles in a worker
2012-03-19 14:52:49 -07:00
Alon Zakai
10cfa9fc93
emcc 'just copy' should do nothing if there is no target
2012-03-19 10:44:16 -07:00
Alon Zakai
bca3596472
fix bug with compressed images
2012-03-17 18:30:09 -07:00
Alon Zakai
163e9c1cf4
unify data and image file preloading
2012-03-17 17:37:15 -07:00
Alon Zakai
105967a256
refactor datafile code
2012-03-17 16:43:49 -07:00
Alon Zakai
c096ac45ee
preload/embed file compression option in emcc
2012-03-16 14:18:30 -07:00
Alon Zakai
1a2df275c5
source code compression option in emcc
2012-03-16 12:39:12 -07:00
Alon Zakai
19520c66ee
rename --compress to --minify in emcc
2012-03-16 11:00:12 -07:00
Alon Zakai
04961832c6
allow preloading/embedding of entire directories using emcc
2012-03-16 10:48:45 -07:00
Alon Zakai
3fc8b5c9b7
preload images for SDL
2012-03-15 18:15:12 -07:00
Alon Zakai
36afa3f0eb
support files in directories in --embed-file and --preload-file
2012-03-15 14:58:22 -07:00
Alon Zakai
be16312325
add file preloading in browsers
2012-03-15 14:07:04 -07:00
Alon Zakai
4f81862d24
add conftest.c workaround in emcc
2012-03-15 10:20:01 -07:00
Alon Zakai
44161f79bd
helpful comment about necessary suffixes for emcc
2012-03-11 13:19:02 -07:00
Alon Zakai
84c9c22525
improve emcc input finding so that it ignores -MT x
2012-03-07 14:28:13 -08:00
Alon Zakai
89642b135f
Merge pull request #294 from LCID-Fire/error_fix
...
Catch and log the errors when calling Processes
2012-03-06 10:16:11 -08:00
LCID Fire
2292b1a9b4
Remove unnecessary accessing of stdout
2012-03-05 13:59:53 +01:00
Alon Zakai
dc769bd62f
.o .bc comment
2012-03-03 12:00:39 -08:00
Alon Zakai
3c71f36c40
don't run optimizeShiftsAggressive without relooping, since it assumes non-switch structures
2012-03-01 16:02:37 -08:00
LCID Fire
16116a352f
Catch and log the errors when calling Processes because users don't get any clue to what failed.
2012-03-01 15:32:24 +01:00
Alon Zakai
40f2ae9e94
EMCC_CFLAGS support
2012-02-27 20:09:09 -08:00
Alon Zakai
c540f3f36a
emcc fix
2012-02-27 15:59:30 -08:00
Alon Zakai
71cccfcf79
--pre-js and --post-js options
2012-02-26 21:30:20 -08:00
Alon Zakai
b649dec410
emcc help
2012-02-26 10:32:39 -08:00
Alon Zakai
f5d4f09244
--ignore-dynamic-linking option in emcc
2012-02-24 20:31:11 -08:00
Alon Zakai
508e953fd4
--embed-file option in emcc
2012-02-24 15:54:47 -08:00
Alon Zakai
d125f1bd3d
support -L/-l syntax in emcc
2012-02-23 11:14:52 -08:00
Alon Zakai
2c14a7b749
use libcxxabi for dynamic_cast
2012-02-22 12:29:38 -08:00
Alon Zakai
c4e578be4c
use aggressive shift optimizations, small but significant speedups on fannkuch and skinning
2012-02-17 10:17:26 -05:00
Alon Zakai
e4a37fdb02
fix test_cases
2012-02-15 23:30:07 -05:00
Alon Zakai
7d756357d7
handle singleton .a files
2012-02-15 18:14:46 -05:00
Alon Zakai
d8e25261b6
support compiling .so files directly in emcc
2012-02-15 17:00:25 -05:00
Ehsan Akhgari
8d402d08d7
Fix a typo
2012-02-09 20:56:23 -05:00
Ehsan Akhgari
88d76d4ad9
Fix the usage of temp_file in one location
2012-02-09 13:37:33 -05:00
Ehsan Akhgari
fefc3d59b5
Preserve the extension of shared libraries as well
2012-02-08 18:52:18 -05:00
Ehsan Akhgari
06048b0e62
Use ld for linking multiple files passed to emcc
2012-02-08 18:46:22 -05:00
Ehsan Akhgari
f0fe97c448
Use llvm-ar instead of llvm-link in emar
...
This makes the semantics of emar to be the same as the semantics of
system ar.
2012-02-08 18:45:37 -05:00
Alon Zakai
f4af7740c1
remove warning on relooper slowness - it is reasonably fast at this point
2012-02-04 21:30:26 -08:00
Alon Zakai
a122841331
Merge pull request #214 from ehsan/suffixes
...
Add the so and dll suffixes as bitcode suffixes as well
2012-02-03 15:07:33 -08:00
Ehsan Akhgari
49c3db581a
Add the so and dll suffixes as bitcode suffixes as well
2012-02-03 18:05:24 -05:00
Alon Zakai
3299f8dc40
enable full optimizations with bindings generator
2012-02-03 15:00:45 -08:00
Alon Zakai
aebbf2a994
fix for handling of suffixes in emcc
2012-02-02 13:58:58 -08:00
Alon Zakai
55b7aff21e
add .a and .dylib as suffixes assumed to be bitcode
2012-02-02 10:11:56 -08:00
Alon Zakai
1549a85427
llvm inlining support (disabled by default; enabled in benchmarks)
2012-02-01 18:37:13 -08:00
Alon Zakai
97bcf96615
make it clear that some emcc messages are warnings
2012-02-01 17:43:37 -08:00
Alon Zakai
fe6518c8da
refactor build checks for standalone and unsafe opts
2012-02-01 10:37:40 -08:00
Alon Zakai
1204c42f4f
fix usage of llvm opt level in emcc, and test_emcc fixes
2012-01-31 19:09:32 -08:00
Alon Zakai
88c3f16304
Merge branch 'master' into llvmopts
2012-01-31 18:11:28 -08:00
Ehsan Akhgari
f10e3e811d
Import shared.py properly
2012-01-30 17:31:07 -05:00
Alon Zakai
764e81bd04
do not do -Ox or LTO when building a linkable module
2012-01-30 10:41:55 -08:00
Alon Zakai
7caf985807
split LLVM LTO into separate pass
2012-01-29 21:05:12 -08:00
Alon Zakai
b7f5745fd8
save raw and optimized bc in EMCC_DEBUG
2012-01-29 20:50:29 -08:00
Alon Zakai
687b8cfa3d
Merge branch 'master' into llvmopts
2012-01-28 21:29:02 -08:00
Ehsan Akhgari
86e5310006
Add support for using a shell file except than the built-in one
...
This adds a --shell-file compiler option which allows users to use a
custom shell file.
2012-01-27 16:32:46 -05:00
Alon Zakai
c3403cd5e0
do not include libraries when autodebugging
2012-01-25 18:06:39 -08:00
Alon Zakai
72133a5942
autodebugger support in emcc
2012-01-25 09:55:58 -08:00
Alon Zakai
594b8a6a56
do not suppress child process output in emcc in DEBUG mode
2012-01-23 20:29:31 -08:00
Alon Zakai
699e85c1d4
emcc help fix
2012-01-23 18:24:19 -08:00
Alon Zakai
71360ca6a7
simplify llvm opt picking code, and allow up to level 3
2012-01-23 14:11:41 -08:00
Alon Zakai
ff69c85ed7
enable unsafe llvm opts in emcc
2012-01-23 13:44:36 -08:00
Alon Zakai
61e4b6b9d4
do not generate annotations when disassembling bitcode
2012-01-21 17:16:50 -08:00
Alon Zakai
a38f613823
EMCC_DEBUG info for library inclusion
2012-01-21 14:12:18 -08:00
Alon Zakai
3f87ba46fc
test fixes, and fail on trying to use q1 with libcxx
2012-01-21 14:01:42 -08:00
Alon Zakai
0647e9d3d9
turn on all CORRECT options for libcxx, just to be safe for now
2012-01-20 17:56:59 -08:00
Alon Zakai
875ee5d9db
emcc comment
2012-01-19 11:26:56 -08:00
Alon Zakai
30a94d3f6f
always include dlmalloc if including libcxx, since libcxx uses new internally
2012-01-18 21:24:11 -08:00
Alon Zakai
f0c1bdde63
move libc++ new into dlmalloc in terms of emcc library autolinking
2012-01-18 21:02:12 -08:00
Alon Zakai
28686e4941
move dlmalloc to system/lib
2012-01-18 19:39:01 -08:00
Alon Zakai
f6be80cbd7
LINKABLE options, disabling dead code elimination for shared libraries and main files that have things that shared libraries will access through an extern
2012-01-18 18:10:57 -08:00
Alon Zakai
dfca41cfde
fix bug with doing dead code elimination even with LEAVE_INPUTS_RAW
2012-01-18 17:40:58 -08:00
Alon Zakai
e7c773654d
use llvm internalive and globaldce to remove unneeded code before compiling to js
2012-01-18 12:31:45 -08:00
Alon Zakai
20ce1c2c6e
automatically use libcxx when needed
2012-01-18 11:35:00 -08:00
Alon Zakai
dd68fbf78c
further refactor the library scanning code, and prepare for libcxx
2012-01-18 10:40:29 -08:00
Alon Zakai
67040a3b6e
refactor library def scanning code
2012-01-18 09:53:48 -08:00
Alon Zakai
5ac93aaa0f
fix typo
2012-01-17 19:06:45 -08:00
Alon Zakai
c3be0254c5
preparations for libcxx building
2012-01-17 19:05:12 -08:00
Alon Zakai
907f7b1c9c
fix emcc bug from last commit
2012-01-17 18:53:57 -08:00