Create the WORKER_SRC_FILES and EXT_SRC_FILES lists in make automatically
This commit is contained in:
parent
a6e5f31ca1
commit
5a49d2eb83
2 changed files with 25 additions and 30 deletions
33
make.js
33
make.js
|
@ -325,33 +325,8 @@ target.bundle = function(args) {
|
|||
'display/font_loader.js'
|
||||
]);
|
||||
|
||||
var WORKER_SRC_FILES = [
|
||||
'core/network.js',
|
||||
'core/chunked_stream.js',
|
||||
'core/pdf_manager.js',
|
||||
'core/core.js',
|
||||
'core/obj.js',
|
||||
'core/charsets.js',
|
||||
'core/cidmaps.js',
|
||||
'core/crypto.js',
|
||||
'core/pattern.js',
|
||||
'core/evaluator.js',
|
||||
'core/fonts.js',
|
||||
'core/font_renderer.js',
|
||||
'core/glyphlist.js',
|
||||
'core/image.js',
|
||||
'core/metrics.js',
|
||||
'core/parser.js',
|
||||
'core/ps_parser.js',
|
||||
'core/stream.js',
|
||||
'core/worker.js',
|
||||
'core/arithmetic_decoder.js',
|
||||
'core/jpx.js',
|
||||
'core/jbig2.js',
|
||||
'core/bidi.js',
|
||||
'core/cmap.js',
|
||||
'core/murmurhash3.js'
|
||||
];
|
||||
var srcFiles = builder.getWorkerSrcFiles('src/worker_loader.js');
|
||||
var WORKER_SRC_FILES = srcFiles.srcFiles;
|
||||
|
||||
if (!defines.SINGLE_FILE) {
|
||||
// We want shared_src_files in both pdf.js and pdf.worker.js
|
||||
|
@ -363,9 +338,7 @@ target.bundle = function(args) {
|
|||
MAIN_SRC_FILES = MAIN_SRC_FILES.concat(WORKER_SRC_FILES);
|
||||
}
|
||||
|
||||
var EXT_SRC_FILES = [
|
||||
'../external/jpgjs/jpg.js'
|
||||
];
|
||||
var EXT_SRC_FILES = srcFiles.externalSrcFiles;
|
||||
|
||||
cd(SRC_DIR);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue