diff options
-rwxr-xr-x | emcc | 7 | ||||
-rw-r--r-- | tools/file_packager.py | 3 |
2 files changed, 10 insertions, 0 deletions
@@ -311,6 +311,13 @@ Options that are modified or new in %s include: If a directory is passed here, its entire contents will be embedded. + Note: Embedding files is much less + efficient than preloading them. You + should only use it for small amounts + of small files. Instead, use + --preload-file which emits efficient + binary data. + --preload-file <name> A file to preload before running the compiled code asynchronously. Otherwise similar to --embed-file, except that this diff --git a/tools/file_packager.py b/tools/file_packager.py index 874ad942..448bb994 100644 --- a/tools/file_packager.py +++ b/tools/file_packager.py @@ -13,6 +13,9 @@ Usage: file_packager.py TARGET [--preload A [B..]] [--embed C [D..]] [--exclude E [F..]] [--compress COMPRESSION_DATA] [--crunch[=X]] [--js-output=OUTPUT.js] [--no-force] [--use-preload-cache] [--no-heap-copy] + --preload , + --embed See emcc --help for more details on those options. + --crunch=X Will compress dxt files to crn with quality level X. The crunch commandline tool must be present and CRUNCH should be defined in ~/.emscripten that points to it. JS crunch decompressing code will be added to convert the crn to dds in the browser. |