Update setup.py

This commit is contained in:
Eugene Kliuchnikov 2016-06-03 12:02:01 +02:00
parent 5a206dd9ab
commit 11d1337baf
2 changed files with 20 additions and 18 deletions

View File

@ -1,4 +1,6 @@
include CONTRIBUTING.md
include common/*.c
include common/*.h
include dec/*.c
include dec/*.h
include dec/Makefile

View File

@ -121,6 +121,11 @@ class BuildExt(build_ext):
brotli = Extension("brotli",
sources=[
"python/brotlimodule.cc",
"common/dictionary.c",
"dec/bit_reader.c",
"dec/decode.c",
"dec/huffman.c",
"dec/state.c",
"enc/backward_references.cc",
"enc/block_splitter.cc",
"enc/brotli_bit_stream.cc",
@ -134,13 +139,21 @@ brotli = Extension("brotli",
"enc/static_dict.cc",
"enc/streams.cc",
"enc/utf8_util.cc",
"dec/bit_reader.c",
"dec/decode.c",
"dec/dictionary.c",
"dec/huffman.c",
"dec/state.c",
],
depends=[
"common/constants.h",
"common/dictionary.h",
"common/port.h",
"common/types.h",
"dec/bit_reader.h",
"dec/context.h",
"dec/decode.h",
"dec/huffman.h",
"dec/port.h",
"dec/prefix.h",
"dec/state.h",
"dec/streams.h",
"dec/transform.h",
"enc/backward_references.h",
"enc/bit_cost.h",
"enc/block_splitter.h",
@ -150,7 +163,6 @@ brotli = Extension("brotli",
"enc/compress_fragment.h",
"enc/compress_fragment_tw_pass.h"
"enc/context.h",
"enc/dictionary.h",
"enc/dictionary_hash.h",
"enc/encode.h",
"enc/entropy_encode.h",
@ -168,20 +180,8 @@ brotli = Extension("brotli",
"enc/static_dict_lut.h",
"enc/streams.h",
"enc/transform.h",
"enc/types.h",
"enc/utf8_util.h",
"enc/write_bits.h",
"dec/bit_reader.h",
"dec/context.h",
"dec/decode.h",
"dec/dictionary.h",
"dec/huffman.h",
"dec/prefix.h",
"dec/port.h",
"dec/streams.h",
"dec/transform.h",
"dec/types.h",
"dec/state.h",
],
language="c++",
)