the local copy of the decoder files.
--- /dev/null
+[submodule "brotli"]
+ path = "brotli"
+ url = "https://github.com/google/brotli.git"
#include "ppport.h"
#include <dec/decode.h>
+#include <common/dictionary.h>
#define BUFFER_SIZE 1048576
static uint8_t buffer[BUFFER_SIZE]; /* It's almost 2016, is anyone still using ithreads? */
BUILD_REQUIRES => {
qw/File::Slurp 0/,
},
- INC => '-I.',
- OBJECT => 'Brotli.o bit_reader.o decode.o dictionary.o huffman.o state.o streams.o',
- C => [<dec/*c>],
- depend => {'$(INST_DYNAMIC)' => '$(O_FILES)'},
+ INC => '-Ibrotli',
+ MYEXTLIB => 'brotli/libbrotli$(LIB_EXT)',
META_ADD => {
dynamic_config => 0,
resources => {
},
}
);
+
+sub MY::postamble {
+'
+$(MYEXTLIB): brotli/Makefile
+ cd brotli && CFLAGS=-fPIC $(MAKE) lib
+'
+}
--- /dev/null
+Subproject commit 2e0d3214c2b6248a486822d2c5267d1c961a29d0