Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | # License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 3 | # You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | CC=emcc |
michael@0 | 6 | |
michael@0 | 7 | SOURCES= \ |
michael@0 | 8 | internal/cldutil.cc \ |
michael@0 | 9 | internal/cldutil_shared.cc \ |
michael@0 | 10 | internal/compact_lang_det.cc \ |
michael@0 | 11 | internal/compact_lang_det_hint_code.cc \ |
michael@0 | 12 | internal/compact_lang_det_impl.cc \ |
michael@0 | 13 | internal/debug_empty.cc \ |
michael@0 | 14 | internal/fixunicodevalue.cc \ |
michael@0 | 15 | internal/generated_entities.cc \ |
michael@0 | 16 | internal/generated_language.cc \ |
michael@0 | 17 | internal/generated_ulscript.cc \ |
michael@0 | 18 | internal/getonescriptspan.cc \ |
michael@0 | 19 | internal/lang_script.cc \ |
michael@0 | 20 | internal/offsetmap.cc \ |
michael@0 | 21 | internal/scoreonescriptspan.cc \ |
michael@0 | 22 | internal/tote.cc \ |
michael@0 | 23 | internal/utf8statetable.cc \ |
michael@0 | 24 | internal/cld_generated_cjk_uni_prop_80.cc \ |
michael@0 | 25 | internal/cld2_generated_cjk_compatible.cc \ |
michael@0 | 26 | internal/cld_generated_cjk_delta_bi_4.cc \ |
michael@0 | 27 | internal/generated_distinct_bi_0.cc \ |
michael@0 | 28 | internal/cld2_generated_quadchrome0122_16.cc \ |
michael@0 | 29 | internal/cld2_generated_deltaoctachrome0122.cc \ |
michael@0 | 30 | internal/cld2_generated_distinctoctachrome0122.cc \ |
michael@0 | 31 | internal/cld_generated_score_quad_octa_0122_2.cc \ |
michael@0 | 32 | cldapp.cc \ |
michael@0 | 33 | $(NULL) |
michael@0 | 34 | |
michael@0 | 35 | %.o: %.cc |
michael@0 | 36 | $(CC) -Os -I. -o $@ $< |
michael@0 | 37 | |
michael@0 | 38 | FLAGS=-s USE_TYPED_ARRAYS=2 -O3 -s INLINING_LIMIT=1 --llvm-lto 1 --memory-init-file 1 --closure 1 |
michael@0 | 39 | |
michael@0 | 40 | all: $(SOURCES:.cc=.o) |
michael@0 | 41 | $(CC) $(FLAGS) -I. -o cld-worker.js $^ --post-js post.js -s EXPORTED_FUNCTIONS="['_detectLangCode', '_lastResultReliable']" |
michael@0 | 42 | |
michael@0 | 43 | clean: |
michael@0 | 44 | rm -rf $(SOURCES:.cc=.o) |