ttf2woff2 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/.travis.yml +25 -15
  2. package/build/Makefile +2 -2
  3. package/build/Release/.deps/Release/obj.target/addon/csrc/addon.o.d +31 -31
  4. package/build/Release/.deps/Release/obj.target/addon/csrc/enc/backward_references.o.d +1 -1
  5. package/build/Release/.deps/Release/obj.target/addon/csrc/enc/block_splitter.o.d +1 -1
  6. package/build/Release/.deps/Release/obj.target/addon/csrc/enc/brotli_bit_stream.o.d +1 -1
  7. package/build/Release/.deps/Release/obj.target/addon/csrc/enc/encode.o.d +1 -1
  8. package/build/Release/.deps/Release/obj.target/addon/csrc/enc/encode_parallel.o.d +1 -1
  9. package/build/Release/.deps/Release/obj.target/addon/csrc/enc/entropy_encode.o.d +1 -1
  10. package/build/Release/.deps/Release/obj.target/addon/csrc/enc/histogram.o.d +1 -1
  11. package/build/Release/.deps/Release/obj.target/addon/csrc/enc/literal_cost.o.d +1 -1
  12. package/build/Release/.deps/Release/obj.target/addon/csrc/enc/metablock.o.d +1 -1
  13. package/build/Release/.deps/Release/obj.target/addon/csrc/enc/streams.o.d +1 -1
  14. package/build/Release/.deps/Release/obj.target/addon/csrc/woff2/font.o.d +1 -1
  15. package/build/Release/.deps/Release/obj.target/addon/csrc/woff2/glyph.o.d +1 -1
  16. package/build/Release/.deps/Release/obj.target/addon/csrc/woff2/normalize.o.d +1 -1
  17. package/build/Release/.deps/Release/obj.target/addon/csrc/woff2/table_tags.o.d +1 -1
  18. package/build/Release/.deps/Release/obj.target/addon/csrc/woff2/transform.o.d +1 -1
  19. package/build/Release/.deps/Release/obj.target/addon/csrc/woff2/variable_length.o.d +1 -1
  20. package/build/Release/.deps/Release/obj.target/addon/csrc/woff2/woff2_common.o.d +1 -1
  21. package/build/Release/.deps/Release/obj.target/addon/csrc/woff2/woff2_enc.o.d +1 -1
  22. package/build/Release/addon.node +0 -0
  23. package/build/Release/obj.target/addon/csrc/addon.o +0 -0
  24. package/build/Release/obj.target/addon.node +0 -0
  25. package/build/addon.target.mk +8 -8
  26. package/csrc/addon.cc +4 -4
  27. package/csrc/fallback.cc +35 -17
  28. package/csrc/woff2/port.h +2 -0
  29. package/jssrc/index.js +7 -9
  30. package/jssrc/ttf2woff2.js +8 -8
  31. package/package.json +4 -4
  32. package/builderror.log +0 -23
package/.travis.yml CHANGED
@@ -1,17 +1,27 @@
1
- language: node_js
2
- node_js:
3
- - 4
4
-
5
- before_install:
6
- # We need this line to have g++4.8 available in apt
7
- - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
8
- - sudo apt-get update -qq
9
- - sudo apt-get install -qq gcc-4.8 g++-4.8
10
- # We want to compile with g++ 4.8 when rather than the default g++
11
- - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
12
-
13
- before_script:
14
- - npm install --dev
15
-
1
+ os:
2
+ - linux
3
+ - osx
4
+ sudo: false
5
+ language: cpp
6
+ addons:
7
+ apt:
8
+ sources:
9
+ - ubuntu-toolchain-r-test
10
+ packages:
11
+ - g++-4.8
12
+ env:
13
+ matrix:
14
+ - TRAVIS_NODE_VERSION="0.12"
15
+ - TRAVIS_NODE_VERSION="4"
16
+ - TRAVIS_NODE_VERSION="5"
17
+ cache:
18
+ directories:
19
+ - node_modules
20
+ install:
21
+ - rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
22
+ - node --version
23
+ - if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi
24
+ - $CXX --version
25
+ - travis_retry npm install
16
26
  script:
17
27
  - npm test
package/build/Makefile CHANGED
@@ -308,8 +308,8 @@ ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
308
308
  endif
309
309
 
310
310
  quiet_cmd_regen_makefile = ACTION Regenerating $@
311
- cmd_regen_makefile = cd $(srcdir); /usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py -fmake --ignore-environment "--toplevel-dir=." -I/home/nfroidure/projects/ttf2woff2/build/config.gypi -I/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi -I/home/nfroidure/.node-gyp/4.0.0/include/node/common.gypi "--depth=." "-Goutput_dir=." "--generator-output=build" "-Dlibrary=shared_library" "-Dvisibility=default" "-Dnode_root_dir=/home/nfroidure/.node-gyp/4.0.0" "-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp" "-Dnode_lib_file=node.lib" "-Dmodule_root_dir=/home/nfroidure/projects/ttf2woff2" binding.gyp
312
- Makefile: $(srcdir)/../../.node-gyp/4.0.0/include/node/common.gypi $(srcdir)/build/config.gypi $(srcdir)/binding.gyp $(srcdir)/../../../../usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi
311
+ cmd_regen_makefile = cd $(srcdir); /usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py -fmake --ignore-environment "--toplevel-dir=." -I/home/nfroidure/projects/ttf2woff2/build/config.gypi -I/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi -I/home/nfroidure/.node-gyp/5.0.0/include/node/common.gypi "--depth=." "-Goutput_dir=." "--generator-output=build" "-Dlibrary=shared_library" "-Dvisibility=default" "-Dnode_root_dir=/home/nfroidure/.node-gyp/5.0.0" "-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp" "-Dnode_lib_file=node.lib" "-Dmodule_root_dir=/home/nfroidure/projects/ttf2woff2" binding.gyp
312
+ Makefile: $(srcdir)/../../.node-gyp/5.0.0/include/node/common.gypi $(srcdir)/build/config.gypi $(srcdir)/binding.gyp $(srcdir)/../../../../usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi
313
313
  $(call do_cmd,regen_makefile)
314
314
 
315
315
  # "all" is a concatenation of the "all" targets from all the included
@@ -1,21 +1,21 @@
1
- cmd_Release/obj.target/addon/csrc/addon.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/4.0.0/include/node -I/home/nfroidure/.node-gyp/4.0.0/src -I/home/nfroidure/.node-gyp/4.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/4.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/addon.o.d.raw -c -o Release/obj.target/addon/csrc/addon.o ../csrc/addon.cc
1
+ cmd_Release/obj.target/addon/csrc/addon.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/5.0.0/include/node -I/home/nfroidure/.node-gyp/5.0.0/src -I/home/nfroidure/.node-gyp/5.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/5.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/addon.o.d.raw -c -o Release/obj.target/addon/csrc/addon.o ../csrc/addon.cc
2
2
  Release/obj.target/addon/csrc/addon.o: ../csrc/addon.cc \
3
3
  ../node_modules/nan/nan.h \
4
- /home/nfroidure/.node-gyp/4.0.0/include/node/node_version.h \
5
- /home/nfroidure/.node-gyp/4.0.0/include/node/uv.h \
6
- /home/nfroidure/.node-gyp/4.0.0/include/node/uv-errno.h \
7
- /home/nfroidure/.node-gyp/4.0.0/include/node/uv-version.h \
8
- /home/nfroidure/.node-gyp/4.0.0/include/node/uv-unix.h \
9
- /home/nfroidure/.node-gyp/4.0.0/include/node/uv-threadpool.h \
10
- /home/nfroidure/.node-gyp/4.0.0/include/node/uv-linux.h \
11
- /home/nfroidure/.node-gyp/4.0.0/include/node/node.h \
12
- /home/nfroidure/.node-gyp/4.0.0/include/node/v8.h \
13
- /home/nfroidure/.node-gyp/4.0.0/include/node/v8-version.h \
14
- /home/nfroidure/.node-gyp/4.0.0/include/node/v8config.h \
15
- /home/nfroidure/.node-gyp/4.0.0/include/node/node_version.h \
16
- /home/nfroidure/.node-gyp/4.0.0/include/node/node_buffer.h \
17
- /home/nfroidure/.node-gyp/4.0.0/include/node/node.h \
18
- /home/nfroidure/.node-gyp/4.0.0/include/node/node_object_wrap.h \
4
+ /home/nfroidure/.node-gyp/5.0.0/include/node/node_version.h \
5
+ /home/nfroidure/.node-gyp/5.0.0/include/node/uv.h \
6
+ /home/nfroidure/.node-gyp/5.0.0/include/node/uv-errno.h \
7
+ /home/nfroidure/.node-gyp/5.0.0/include/node/uv-version.h \
8
+ /home/nfroidure/.node-gyp/5.0.0/include/node/uv-unix.h \
9
+ /home/nfroidure/.node-gyp/5.0.0/include/node/uv-threadpool.h \
10
+ /home/nfroidure/.node-gyp/5.0.0/include/node/uv-linux.h \
11
+ /home/nfroidure/.node-gyp/5.0.0/include/node/node.h \
12
+ /home/nfroidure/.node-gyp/5.0.0/include/node/v8.h \
13
+ /home/nfroidure/.node-gyp/5.0.0/include/node/v8-version.h \
14
+ /home/nfroidure/.node-gyp/5.0.0/include/node/v8config.h \
15
+ /home/nfroidure/.node-gyp/5.0.0/include/node/node_version.h \
16
+ /home/nfroidure/.node-gyp/5.0.0/include/node/node_buffer.h \
17
+ /home/nfroidure/.node-gyp/5.0.0/include/node/node.h \
18
+ /home/nfroidure/.node-gyp/5.0.0/include/node/node_object_wrap.h \
19
19
  ../node_modules/nan/nan_callbacks.h \
20
20
  ../node_modules/nan/nan_callbacks_12_inl.h \
21
21
  ../node_modules/nan/nan_maybe_43_inl.h \
@@ -29,21 +29,21 @@ Release/obj.target/addon/csrc/addon.o: ../csrc/addon.cc \
29
29
  ../csrc/./woff2/woff2_enc.h
30
30
  ../csrc/addon.cc:
31
31
  ../node_modules/nan/nan.h:
32
- /home/nfroidure/.node-gyp/4.0.0/include/node/node_version.h:
33
- /home/nfroidure/.node-gyp/4.0.0/include/node/uv.h:
34
- /home/nfroidure/.node-gyp/4.0.0/include/node/uv-errno.h:
35
- /home/nfroidure/.node-gyp/4.0.0/include/node/uv-version.h:
36
- /home/nfroidure/.node-gyp/4.0.0/include/node/uv-unix.h:
37
- /home/nfroidure/.node-gyp/4.0.0/include/node/uv-threadpool.h:
38
- /home/nfroidure/.node-gyp/4.0.0/include/node/uv-linux.h:
39
- /home/nfroidure/.node-gyp/4.0.0/include/node/node.h:
40
- /home/nfroidure/.node-gyp/4.0.0/include/node/v8.h:
41
- /home/nfroidure/.node-gyp/4.0.0/include/node/v8-version.h:
42
- /home/nfroidure/.node-gyp/4.0.0/include/node/v8config.h:
43
- /home/nfroidure/.node-gyp/4.0.0/include/node/node_version.h:
44
- /home/nfroidure/.node-gyp/4.0.0/include/node/node_buffer.h:
45
- /home/nfroidure/.node-gyp/4.0.0/include/node/node.h:
46
- /home/nfroidure/.node-gyp/4.0.0/include/node/node_object_wrap.h:
32
+ /home/nfroidure/.node-gyp/5.0.0/include/node/node_version.h:
33
+ /home/nfroidure/.node-gyp/5.0.0/include/node/uv.h:
34
+ /home/nfroidure/.node-gyp/5.0.0/include/node/uv-errno.h:
35
+ /home/nfroidure/.node-gyp/5.0.0/include/node/uv-version.h:
36
+ /home/nfroidure/.node-gyp/5.0.0/include/node/uv-unix.h:
37
+ /home/nfroidure/.node-gyp/5.0.0/include/node/uv-threadpool.h:
38
+ /home/nfroidure/.node-gyp/5.0.0/include/node/uv-linux.h:
39
+ /home/nfroidure/.node-gyp/5.0.0/include/node/node.h:
40
+ /home/nfroidure/.node-gyp/5.0.0/include/node/v8.h:
41
+ /home/nfroidure/.node-gyp/5.0.0/include/node/v8-version.h:
42
+ /home/nfroidure/.node-gyp/5.0.0/include/node/v8config.h:
43
+ /home/nfroidure/.node-gyp/5.0.0/include/node/node_version.h:
44
+ /home/nfroidure/.node-gyp/5.0.0/include/node/node_buffer.h:
45
+ /home/nfroidure/.node-gyp/5.0.0/include/node/node.h:
46
+ /home/nfroidure/.node-gyp/5.0.0/include/node/node_object_wrap.h:
47
47
  ../node_modules/nan/nan_callbacks.h:
48
48
  ../node_modules/nan/nan_callbacks_12_inl.h:
49
49
  ../node_modules/nan/nan_maybe_43_inl.h:
@@ -1,4 +1,4 @@
1
- cmd_Release/obj.target/addon/csrc/enc/backward_references.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/4.0.0/include/node -I/home/nfroidure/.node-gyp/4.0.0/src -I/home/nfroidure/.node-gyp/4.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/4.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/enc/backward_references.o.d.raw -c -o Release/obj.target/addon/csrc/enc/backward_references.o ../csrc/enc/backward_references.cc
1
+ cmd_Release/obj.target/addon/csrc/enc/backward_references.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/5.0.0/include/node -I/home/nfroidure/.node-gyp/5.0.0/src -I/home/nfroidure/.node-gyp/5.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/5.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/enc/backward_references.o.d.raw -c -o Release/obj.target/addon/csrc/enc/backward_references.o ../csrc/enc/backward_references.cc
2
2
  Release/obj.target/addon/csrc/enc/backward_references.o: \
3
3
  ../csrc/enc/backward_references.cc ../csrc/enc/./backward_references.h \
4
4
  ../csrc/enc/././hash.h ../csrc/enc/./././dictionary_hash.h \
@@ -1,4 +1,4 @@
1
- cmd_Release/obj.target/addon/csrc/enc/block_splitter.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/4.0.0/include/node -I/home/nfroidure/.node-gyp/4.0.0/src -I/home/nfroidure/.node-gyp/4.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/4.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/enc/block_splitter.o.d.raw -c -o Release/obj.target/addon/csrc/enc/block_splitter.o ../csrc/enc/block_splitter.cc
1
+ cmd_Release/obj.target/addon/csrc/enc/block_splitter.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/5.0.0/include/node -I/home/nfroidure/.node-gyp/5.0.0/src -I/home/nfroidure/.node-gyp/5.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/5.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/enc/block_splitter.o.d.raw -c -o Release/obj.target/addon/csrc/enc/block_splitter.o ../csrc/enc/block_splitter.cc
2
2
  Release/obj.target/addon/csrc/enc/block_splitter.o: \
3
3
  ../csrc/enc/block_splitter.cc ../csrc/enc/./block_splitter.h \
4
4
  ../csrc/enc/././command.h ../csrc/enc/./././fast_log.h \
@@ -1,4 +1,4 @@
1
- cmd_Release/obj.target/addon/csrc/enc/brotli_bit_stream.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/4.0.0/include/node -I/home/nfroidure/.node-gyp/4.0.0/src -I/home/nfroidure/.node-gyp/4.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/4.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/enc/brotli_bit_stream.o.d.raw -c -o Release/obj.target/addon/csrc/enc/brotli_bit_stream.o ../csrc/enc/brotli_bit_stream.cc
1
+ cmd_Release/obj.target/addon/csrc/enc/brotli_bit_stream.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/5.0.0/include/node -I/home/nfroidure/.node-gyp/5.0.0/src -I/home/nfroidure/.node-gyp/5.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/5.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/enc/brotli_bit_stream.o.d.raw -c -o Release/obj.target/addon/csrc/enc/brotli_bit_stream.o ../csrc/enc/brotli_bit_stream.cc
2
2
  Release/obj.target/addon/csrc/enc/brotli_bit_stream.o: \
3
3
  ../csrc/enc/brotli_bit_stream.cc ../csrc/enc/./brotli_bit_stream.h \
4
4
  ../csrc/enc/././metablock.h ../csrc/enc/./././command.h \
@@ -1,4 +1,4 @@
1
- cmd_Release/obj.target/addon/csrc/enc/encode.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/4.0.0/include/node -I/home/nfroidure/.node-gyp/4.0.0/src -I/home/nfroidure/.node-gyp/4.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/4.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/enc/encode.o.d.raw -c -o Release/obj.target/addon/csrc/enc/encode.o ../csrc/enc/encode.cc
1
+ cmd_Release/obj.target/addon/csrc/enc/encode.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/5.0.0/include/node -I/home/nfroidure/.node-gyp/5.0.0/src -I/home/nfroidure/.node-gyp/5.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/5.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/enc/encode.o.d.raw -c -o Release/obj.target/addon/csrc/enc/encode.o ../csrc/enc/encode.cc
2
2
  Release/obj.target/addon/csrc/enc/encode.o: ../csrc/enc/encode.cc \
3
3
  ../csrc/enc/./encode.h ../csrc/enc/././command.h \
4
4
  ../csrc/enc/./././fast_log.h ../csrc/enc/././hash.h \
@@ -1,4 +1,4 @@
1
- cmd_Release/obj.target/addon/csrc/enc/encode_parallel.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/4.0.0/include/node -I/home/nfroidure/.node-gyp/4.0.0/src -I/home/nfroidure/.node-gyp/4.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/4.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/enc/encode_parallel.o.d.raw -c -o Release/obj.target/addon/csrc/enc/encode_parallel.o ../csrc/enc/encode_parallel.cc
1
+ cmd_Release/obj.target/addon/csrc/enc/encode_parallel.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/5.0.0/include/node -I/home/nfroidure/.node-gyp/5.0.0/src -I/home/nfroidure/.node-gyp/5.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/5.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/enc/encode_parallel.o.d.raw -c -o Release/obj.target/addon/csrc/enc/encode_parallel.o ../csrc/enc/encode_parallel.cc
2
2
  Release/obj.target/addon/csrc/enc/encode_parallel.o: \
3
3
  ../csrc/enc/encode_parallel.cc ../csrc/enc/./encode_parallel.h \
4
4
  ../csrc/enc/././encode.h ../csrc/enc/./././command.h \
@@ -1,4 +1,4 @@
1
- cmd_Release/obj.target/addon/csrc/enc/entropy_encode.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/4.0.0/include/node -I/home/nfroidure/.node-gyp/4.0.0/src -I/home/nfroidure/.node-gyp/4.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/4.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/enc/entropy_encode.o.d.raw -c -o Release/obj.target/addon/csrc/enc/entropy_encode.o ../csrc/enc/entropy_encode.cc
1
+ cmd_Release/obj.target/addon/csrc/enc/entropy_encode.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/5.0.0/include/node -I/home/nfroidure/.node-gyp/5.0.0/src -I/home/nfroidure/.node-gyp/5.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/5.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/enc/entropy_encode.o.d.raw -c -o Release/obj.target/addon/csrc/enc/entropy_encode.o ../csrc/enc/entropy_encode.cc
2
2
  Release/obj.target/addon/csrc/enc/entropy_encode.o: \
3
3
  ../csrc/enc/entropy_encode.cc ../csrc/enc/./entropy_encode.h \
4
4
  ../csrc/enc/././histogram.h ../csrc/enc/./././command.h \
@@ -1,4 +1,4 @@
1
- cmd_Release/obj.target/addon/csrc/enc/histogram.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/4.0.0/include/node -I/home/nfroidure/.node-gyp/4.0.0/src -I/home/nfroidure/.node-gyp/4.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/4.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/enc/histogram.o.d.raw -c -o Release/obj.target/addon/csrc/enc/histogram.o ../csrc/enc/histogram.cc
1
+ cmd_Release/obj.target/addon/csrc/enc/histogram.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/5.0.0/include/node -I/home/nfroidure/.node-gyp/5.0.0/src -I/home/nfroidure/.node-gyp/5.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/5.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/enc/histogram.o.d.raw -c -o Release/obj.target/addon/csrc/enc/histogram.o ../csrc/enc/histogram.cc
2
2
  Release/obj.target/addon/csrc/enc/histogram.o: ../csrc/enc/histogram.cc \
3
3
  ../csrc/enc/./histogram.h ../csrc/enc/././command.h \
4
4
  ../csrc/enc/./././fast_log.h ../csrc/enc/././fast_log.h \
@@ -1,4 +1,4 @@
1
- cmd_Release/obj.target/addon/csrc/enc/literal_cost.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/4.0.0/include/node -I/home/nfroidure/.node-gyp/4.0.0/src -I/home/nfroidure/.node-gyp/4.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/4.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/enc/literal_cost.o.d.raw -c -o Release/obj.target/addon/csrc/enc/literal_cost.o ../csrc/enc/literal_cost.cc
1
+ cmd_Release/obj.target/addon/csrc/enc/literal_cost.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/5.0.0/include/node -I/home/nfroidure/.node-gyp/5.0.0/src -I/home/nfroidure/.node-gyp/5.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/5.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/enc/literal_cost.o.d.raw -c -o Release/obj.target/addon/csrc/enc/literal_cost.o ../csrc/enc/literal_cost.cc
2
2
  Release/obj.target/addon/csrc/enc/literal_cost.o: \
3
3
  ../csrc/enc/literal_cost.cc ../csrc/enc/./literal_cost.h \
4
4
  ../csrc/enc/./fast_log.h
@@ -1,4 +1,4 @@
1
- cmd_Release/obj.target/addon/csrc/enc/metablock.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/4.0.0/include/node -I/home/nfroidure/.node-gyp/4.0.0/src -I/home/nfroidure/.node-gyp/4.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/4.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/enc/metablock.o.d.raw -c -o Release/obj.target/addon/csrc/enc/metablock.o ../csrc/enc/metablock.cc
1
+ cmd_Release/obj.target/addon/csrc/enc/metablock.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/5.0.0/include/node -I/home/nfroidure/.node-gyp/5.0.0/src -I/home/nfroidure/.node-gyp/5.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/5.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/enc/metablock.o.d.raw -c -o Release/obj.target/addon/csrc/enc/metablock.o ../csrc/enc/metablock.cc
2
2
  Release/obj.target/addon/csrc/enc/metablock.o: ../csrc/enc/metablock.cc \
3
3
  ../csrc/enc/./metablock.h ../csrc/enc/././command.h \
4
4
  ../csrc/enc/./././fast_log.h ../csrc/enc/././histogram.h \
@@ -1,4 +1,4 @@
1
- cmd_Release/obj.target/addon/csrc/enc/streams.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/4.0.0/include/node -I/home/nfroidure/.node-gyp/4.0.0/src -I/home/nfroidure/.node-gyp/4.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/4.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/enc/streams.o.d.raw -c -o Release/obj.target/addon/csrc/enc/streams.o ../csrc/enc/streams.cc
1
+ cmd_Release/obj.target/addon/csrc/enc/streams.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/5.0.0/include/node -I/home/nfroidure/.node-gyp/5.0.0/src -I/home/nfroidure/.node-gyp/5.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/5.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/enc/streams.o.d.raw -c -o Release/obj.target/addon/csrc/enc/streams.o ../csrc/enc/streams.cc
2
2
  Release/obj.target/addon/csrc/enc/streams.o: ../csrc/enc/streams.cc \
3
3
  ../csrc/enc/./streams.h
4
4
  ../csrc/enc/streams.cc:
@@ -1,4 +1,4 @@
1
- cmd_Release/obj.target/addon/csrc/woff2/font.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/4.0.0/include/node -I/home/nfroidure/.node-gyp/4.0.0/src -I/home/nfroidure/.node-gyp/4.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/4.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/woff2/font.o.d.raw -c -o Release/obj.target/addon/csrc/woff2/font.o ../csrc/woff2/font.cc
1
+ cmd_Release/obj.target/addon/csrc/woff2/font.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/5.0.0/include/node -I/home/nfroidure/.node-gyp/5.0.0/src -I/home/nfroidure/.node-gyp/5.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/5.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/woff2/font.o.d.raw -c -o Release/obj.target/addon/csrc/woff2/font.o ../csrc/woff2/font.cc
2
2
  Release/obj.target/addon/csrc/woff2/font.o: ../csrc/woff2/font.cc \
3
3
  ../csrc/woff2/./font.h ../csrc/woff2/./buffer.h ../csrc/woff2/./port.h \
4
4
  ../csrc/woff2/./store_bytes.h ../csrc/woff2/./table_tags.h \
@@ -1,4 +1,4 @@
1
- cmd_Release/obj.target/addon/csrc/woff2/glyph.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/4.0.0/include/node -I/home/nfroidure/.node-gyp/4.0.0/src -I/home/nfroidure/.node-gyp/4.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/4.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/woff2/glyph.o.d.raw -c -o Release/obj.target/addon/csrc/woff2/glyph.o ../csrc/woff2/glyph.cc
1
+ cmd_Release/obj.target/addon/csrc/woff2/glyph.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/5.0.0/include/node -I/home/nfroidure/.node-gyp/5.0.0/src -I/home/nfroidure/.node-gyp/5.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/5.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/woff2/glyph.o.d.raw -c -o Release/obj.target/addon/csrc/woff2/glyph.o ../csrc/woff2/glyph.cc
2
2
  Release/obj.target/addon/csrc/woff2/glyph.o: ../csrc/woff2/glyph.cc \
3
3
  ../csrc/woff2/./glyph.h ../csrc/woff2/./buffer.h \
4
4
  ../csrc/woff2/./store_bytes.h
@@ -1,4 +1,4 @@
1
- cmd_Release/obj.target/addon/csrc/woff2/normalize.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/4.0.0/include/node -I/home/nfroidure/.node-gyp/4.0.0/src -I/home/nfroidure/.node-gyp/4.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/4.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/woff2/normalize.o.d.raw -c -o Release/obj.target/addon/csrc/woff2/normalize.o ../csrc/woff2/normalize.cc
1
+ cmd_Release/obj.target/addon/csrc/woff2/normalize.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/5.0.0/include/node -I/home/nfroidure/.node-gyp/5.0.0/src -I/home/nfroidure/.node-gyp/5.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/5.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/woff2/normalize.o.d.raw -c -o Release/obj.target/addon/csrc/woff2/normalize.o ../csrc/woff2/normalize.cc
2
2
  Release/obj.target/addon/csrc/woff2/normalize.o: \
3
3
  ../csrc/woff2/normalize.cc ../csrc/woff2/./normalize.h \
4
4
  ../csrc/woff2/./buffer.h ../csrc/woff2/./port.h ../csrc/woff2/./font.h \
@@ -1,4 +1,4 @@
1
- cmd_Release/obj.target/addon/csrc/woff2/table_tags.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/4.0.0/include/node -I/home/nfroidure/.node-gyp/4.0.0/src -I/home/nfroidure/.node-gyp/4.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/4.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/woff2/table_tags.o.d.raw -c -o Release/obj.target/addon/csrc/woff2/table_tags.o ../csrc/woff2/table_tags.cc
1
+ cmd_Release/obj.target/addon/csrc/woff2/table_tags.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/5.0.0/include/node -I/home/nfroidure/.node-gyp/5.0.0/src -I/home/nfroidure/.node-gyp/5.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/5.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/woff2/table_tags.o.d.raw -c -o Release/obj.target/addon/csrc/woff2/table_tags.o ../csrc/woff2/table_tags.cc
2
2
  Release/obj.target/addon/csrc/woff2/table_tags.o: \
3
3
  ../csrc/woff2/table_tags.cc ../csrc/woff2/./table_tags.h
4
4
  ../csrc/woff2/table_tags.cc:
@@ -1,4 +1,4 @@
1
- cmd_Release/obj.target/addon/csrc/woff2/transform.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/4.0.0/include/node -I/home/nfroidure/.node-gyp/4.0.0/src -I/home/nfroidure/.node-gyp/4.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/4.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/woff2/transform.o.d.raw -c -o Release/obj.target/addon/csrc/woff2/transform.o ../csrc/woff2/transform.cc
1
+ cmd_Release/obj.target/addon/csrc/woff2/transform.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/5.0.0/include/node -I/home/nfroidure/.node-gyp/5.0.0/src -I/home/nfroidure/.node-gyp/5.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/5.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/woff2/transform.o.d.raw -c -o Release/obj.target/addon/csrc/woff2/transform.o ../csrc/woff2/transform.cc
2
2
  Release/obj.target/addon/csrc/woff2/transform.o: \
3
3
  ../csrc/woff2/transform.cc ../csrc/woff2/./transform.h \
4
4
  ../csrc/woff2/././font.h ../csrc/woff2/./buffer.h ../csrc/woff2/./font.h \
@@ -1,4 +1,4 @@
1
- cmd_Release/obj.target/addon/csrc/woff2/variable_length.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/4.0.0/include/node -I/home/nfroidure/.node-gyp/4.0.0/src -I/home/nfroidure/.node-gyp/4.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/4.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/woff2/variable_length.o.d.raw -c -o Release/obj.target/addon/csrc/woff2/variable_length.o ../csrc/woff2/variable_length.cc
1
+ cmd_Release/obj.target/addon/csrc/woff2/variable_length.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/5.0.0/include/node -I/home/nfroidure/.node-gyp/5.0.0/src -I/home/nfroidure/.node-gyp/5.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/5.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/woff2/variable_length.o.d.raw -c -o Release/obj.target/addon/csrc/woff2/variable_length.o ../csrc/woff2/variable_length.cc
2
2
  Release/obj.target/addon/csrc/woff2/variable_length.o: \
3
3
  ../csrc/woff2/variable_length.cc ../csrc/woff2/./variable_length.h \
4
4
  ../csrc/woff2/././buffer.h
@@ -1,4 +1,4 @@
1
- cmd_Release/obj.target/addon/csrc/woff2/woff2_common.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/4.0.0/include/node -I/home/nfroidure/.node-gyp/4.0.0/src -I/home/nfroidure/.node-gyp/4.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/4.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/woff2/woff2_common.o.d.raw -c -o Release/obj.target/addon/csrc/woff2/woff2_common.o ../csrc/woff2/woff2_common.cc
1
+ cmd_Release/obj.target/addon/csrc/woff2/woff2_common.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/5.0.0/include/node -I/home/nfroidure/.node-gyp/5.0.0/src -I/home/nfroidure/.node-gyp/5.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/5.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/woff2/woff2_common.o.d.raw -c -o Release/obj.target/addon/csrc/woff2/woff2_common.o ../csrc/woff2/woff2_common.cc
2
2
  Release/obj.target/addon/csrc/woff2/woff2_common.o: \
3
3
  ../csrc/woff2/woff2_common.cc ../csrc/woff2/./woff2_common.h
4
4
  ../csrc/woff2/woff2_common.cc:
@@ -1,4 +1,4 @@
1
- cmd_Release/obj.target/addon/csrc/woff2/woff2_enc.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/4.0.0/include/node -I/home/nfroidure/.node-gyp/4.0.0/src -I/home/nfroidure/.node-gyp/4.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/4.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/woff2/woff2_enc.o.d.raw -c -o Release/obj.target/addon/csrc/woff2/woff2_enc.o ../csrc/woff2/woff2_enc.cc
1
+ cmd_Release/obj.target/addon/csrc/woff2/woff2_enc.o := g++ '-DNODE_GYP_MODULE_NAME=addon' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nfroidure/.node-gyp/5.0.0/include/node -I/home/nfroidure/.node-gyp/5.0.0/src -I/home/nfroidure/.node-gyp/5.0.0/deps/uv/include -I/home/nfroidure/.node-gyp/5.0.0/deps/v8/include -I../node_modules/nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -std=c++11 -std=c++11 -w -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/addon/csrc/woff2/woff2_enc.o.d.raw -c -o Release/obj.target/addon/csrc/woff2/woff2_enc.o ../csrc/woff2/woff2_enc.cc
2
2
  Release/obj.target/addon/csrc/woff2/woff2_enc.o: \
3
3
  ../csrc/woff2/woff2_enc.cc ../csrc/woff2/./woff2_enc.h \
4
4
  ../csrc/woff2/./buffer.h ../csrc/woff2/./../enc/encode.h \
Binary file
Binary file
@@ -35,10 +35,10 @@ CFLAGS_CC_Debug := \
35
35
  -std=c++11
36
36
 
37
37
  INCS_Debug := \
38
- -I/home/nfroidure/.node-gyp/4.0.0/include/node \
39
- -I/home/nfroidure/.node-gyp/4.0.0/src \
40
- -I/home/nfroidure/.node-gyp/4.0.0/deps/uv/include \
41
- -I/home/nfroidure/.node-gyp/4.0.0/deps/v8/include \
38
+ -I/home/nfroidure/.node-gyp/5.0.0/include/node \
39
+ -I/home/nfroidure/.node-gyp/5.0.0/src \
40
+ -I/home/nfroidure/.node-gyp/5.0.0/deps/uv/include \
41
+ -I/home/nfroidure/.node-gyp/5.0.0/deps/v8/include \
42
42
  -I$(srcdir)/node_modules/nan
43
43
 
44
44
  DEFS_Release := \
@@ -74,10 +74,10 @@ CFLAGS_CC_Release := \
74
74
  -std=c++11
75
75
 
76
76
  INCS_Release := \
77
- -I/home/nfroidure/.node-gyp/4.0.0/include/node \
78
- -I/home/nfroidure/.node-gyp/4.0.0/src \
79
- -I/home/nfroidure/.node-gyp/4.0.0/deps/uv/include \
80
- -I/home/nfroidure/.node-gyp/4.0.0/deps/v8/include \
77
+ -I/home/nfroidure/.node-gyp/5.0.0/include/node \
78
+ -I/home/nfroidure/.node-gyp/5.0.0/src \
79
+ -I/home/nfroidure/.node-gyp/5.0.0/deps/uv/include \
80
+ -I/home/nfroidure/.node-gyp/5.0.0/deps/v8/include \
81
81
  -I$(srcdir)/node_modules/nan
82
82
 
83
83
  OBJS := \
package/csrc/addon.cc CHANGED
@@ -22,7 +22,7 @@ NAN_METHOD(convert) {
22
22
  reinterpret_cast<const uint8_t*>(input_data), input_length);
23
23
  size_t actual_output_length = max_output_length;
24
24
 
25
- char* output_data[max_output_length];
25
+ char* output_data = (char*) calloc(max_output_length, 1);
26
26
 
27
27
  // Create the Woff2 font
28
28
  if (!woff2::ConvertTTFToWOFF2(
@@ -33,11 +33,11 @@ NAN_METHOD(convert) {
33
33
  return;
34
34
  }
35
35
 
36
- char* final_output_data = (char*) malloc(actual_output_length);
37
- memcpy(final_output_data, output_data, actual_output_length);
36
+ // Free the unused memory
37
+ output_data = (char*) realloc(output_data, actual_output_length);
38
38
 
39
39
  Nan::MaybeLocal<v8::Object> outputBuffer = Nan::NewBuffer(
40
- final_output_data,
40
+ output_data,
41
41
  actual_output_length
42
42
  );
43
43
 
package/csrc/fallback.cc CHANGED
@@ -1,33 +1,51 @@
1
1
  // Emscripten wrapper
2
-
2
+ #include <emscripten/bind.h>
3
3
  #include <stdlib.h>
4
4
  #include "./woff2/woff2_enc.h"
5
5
 
6
+ using namespace emscripten;
6
7
  using std::string;
7
8
 
8
- extern "C"
9
- {
9
+ int getSizePtr() {
10
+ int* sizePtr = reinterpret_cast<int*>(calloc(1, sizeof(int)));
11
+ return reinterpret_cast<int>(sizePtr);
12
+ }
10
13
 
11
- char * convertTTFToWOFF2(char * input, int length, int * outputLength) {
14
+ int convert(int inputDataAddress, int inputLength, int outputSizePtrAddress) {
15
+ int* outputSizePtr = reinterpret_cast<int*>(outputSizePtrAddress);
16
+ char* inputData = reinterpret_cast<char*>(inputDataAddress);
12
17
 
13
- const uint8_t* input_data = reinterpret_cast<const uint8_t*>(input);
14
- size_t output_size = woff2::MaxWOFF2CompressedSize(input_data, length);
18
+ size_t outputSize = woff2::MaxWOFF2CompressedSize(
19
+ reinterpret_cast<const uint8_t*>(inputData),
20
+ inputLength
21
+ );
15
22
 
16
- uint8_t* output_data = reinterpret_cast<uint8_t*>(malloc(output_size));
23
+ uint8_t* outputData = reinterpret_cast<uint8_t*>(calloc(outputSize, sizeof(uint8_t)));
17
24
 
18
25
 
19
- if (woff2::ConvertTTFToWOFF2(input_data, length,
20
- output_data, &output_size)) {
21
- //output.resize(output_size);
22
- }
26
+ if(!woff2::ConvertTTFToWOFF2(
27
+ reinterpret_cast<const uint8_t*>(inputData),
28
+ inputLength,
29
+ outputData,
30
+ &outputSize
31
+ )) {
32
+ // throw an error
33
+ }
23
34
 
24
- *outputLength = output_size;
35
+ *outputSizePtr = outputSize;
25
36
 
26
- return (char *) output_data;
27
- }
37
+ return reinterpret_cast<int>(outputData);
38
+ }
28
39
 
29
- void freeTTFToWOFF2(char * output_data) {
30
- free(output_data);
31
- }
40
+ void freePtrs(int outputDataAddress, int sizePtrAddress) {
41
+ int* sizePtr = reinterpret_cast<int*>(sizePtrAddress);
42
+ char* outputData = reinterpret_cast<char*>(outputDataAddress);
43
+ free(outputData);
44
+ free(sizePtr);
45
+ }
32
46
 
47
+ EMSCRIPTEN_BINDINGS(ttf2woff2_fallback) {
48
+ function("getSizePtr", &getSizePtr, allow_raw_pointers());
49
+ function("convert", &convert, allow_raw_pointers());
50
+ function("freePtrs", &freePtrs, allow_raw_pointers());
33
51
  }
package/csrc/woff2/port.h CHANGED
@@ -17,6 +17,8 @@
17
17
  #ifndef WOFF2_PORT_H_
18
18
  #define WOFF2_PORT_H_
19
19
 
20
+ #include <assert.h>
21
+
20
22
  namespace woff2 {
21
23
 
22
24
  typedef unsigned int uint32;
package/jssrc/index.js CHANGED
@@ -3,20 +3,20 @@
3
3
  var theTTFToWOFF2Module = require('./ttf2woff2');
4
4
 
5
5
  module.exports = function ttf2woff2(inputContent) {
6
- var outputSize;
7
- var outputContent;
8
- var outputBufferPtr;
9
- var i;
10
6
 
11
7
  // Prepare input
12
8
  var inputBuffer = theTTFToWOFF2Module._malloc(inputContent.length + 1);
13
9
  var outputSizePtr = theTTFToWOFF2Module._malloc(4);
10
+ var outputBufferPtr;
11
+ var outputSize;
12
+ var outputContent;
13
+ var i;
14
14
 
15
15
  theTTFToWOFF2Module.writeArrayToMemory(inputContent, inputBuffer);
16
16
 
17
17
  // Run
18
- outputBufferPtr = theTTFToWOFF2Module._convertTTFToWOFF2(
19
- inputBuffer, inputContent.length + 1, outputSizePtr
18
+ outputBufferPtr = theTTFToWOFF2Module.convert(
19
+ inputBuffer, inputContent.length, outputSizePtr
20
20
  );
21
21
 
22
22
  // Retrieve output
@@ -27,9 +27,7 @@ module.exports = function ttf2woff2(inputContent) {
27
27
  outputContent[i] = theTTFToWOFF2Module.getValue(outputBufferPtr + i, 'i8');
28
28
  }
29
29
 
30
- theTTFToWOFF2Module._free(inputBuffer);
31
- theTTFToWOFF2Module._free(outputSizePtr);
32
- theTTFToWOFF2Module._freeTTFToWOFF2(outputBufferPtr);
30
+ theTTFToWOFF2Module.freePtrs(outputBufferPtr, outputSizePtr);
33
31
 
34
32
  return outputContent;
35
33
  };