Move files & update paths (#541)

* Move files & update paths

* Rename build to scripts.

* Fix paths

* Fix script.
This commit is contained in:
Eugene Kliuchnikov 2017-04-23 14:07:08 +02:00 committed by GitHub
parent 04de756ad2
commit 6ece1d8791
98 changed files with 150 additions and 152 deletions

2
.gitmodules vendored
View File

@ -1,5 +1,5 @@
[submodule "terryfy"] [submodule "terryfy"]
path = terryfy path = scripts/terryfy
url = https://github.com/MacPython/terryfy.git url = https://github.com/MacPython/terryfy.git
[submodule "research/esaxx"] [submodule "research/esaxx"]
path = research/esaxx path = research/esaxx

View File

@ -250,17 +250,17 @@ before_install:
### ###
- if [ -n "${C_COMPILER}" ]; then export CC="${C_COMPILER}"; fi - if [ -n "${C_COMPILER}" ]; then export CC="${C_COMPILER}"; fi
- if [ -n "${CXX_COMPILER}" ]; then export CXX="${CXX_COMPILER}"; fi - if [ -n "${CXX_COMPILER}" ]; then export CXX="${CXX_COMPILER}"; fi
- ./.travis.sh before_install - scripts/.travis.sh before_install
install: install:
- ./.travis.sh install - scripts/.travis.sh install
script: script:
- ./.travis.sh script - scripts/.travis.sh script
after_success: after_success:
- ./.travis.sh after_success - scripts/.travis.sh after_success
before_deploy: before_deploy:
- if [ "${BUILD_SYSTEM}" = "python" ] && [ "${TRAVIS_OS_NAME}" = "osx" ]; then export WHEELS=$(ls ./dist/*.whl); fi - if [ "${BUILD_SYSTEM}" = "python" ] && [ "${TRAVIS_OS_NAME}" = "osx" ]; then export WHEELS=$(ls ./dist/*.whl); fi
- ./.travis.sh before_deploy - scripts/.travis.sh before_deploy
deploy: deploy:
- provider: releases - provider: releases
@ -273,7 +273,7 @@ deploy:
tags: true tags: true
condition: "${BUILD_SYSTEM} = python && ${TRAVIS_OS_NAME} = osx" condition: "${BUILD_SYSTEM} = python && ${TRAVIS_OS_NAME} = osx"
- provider: bintray - provider: bintray
file: ".bintray.json" file: "scripts/.bintray.json"
user: "eustas" user: "eustas"
key: key:
secure: "Kbam/lTAdz72fZivbs6riJT+Y4PbuKP7r6t5PAWxJxAAykjwnYTRe3zF472g9HCE14KYMsdB+KSYSgg6TGJnqGC9gL9xhhGU9U/WmA+vbMWS/MSnMWpK9IRpp77pM2i2NKZD4v33JuEwKFCBJP3Vj6QQ5Qd1NKdobuXJyznhgnw=" secure: "Kbam/lTAdz72fZivbs6riJT+Y4PbuKP7r6t5PAWxJxAAykjwnYTRe3zF472g9HCE14KYMsdB+KSYSgg6TGJnqGC9gL9xhhGU9U/WmA+vbMWS/MSnMWpK9IRpp77pM2i2NKZD4v33JuEwKFCBJP3Vj6QQ5Qd1NKdobuXJyznhgnw="

18
BUILD
View File

@ -25,44 +25,44 @@ STRICT_C_OPTIONS = [
filegroup( filegroup(
name = "public_headers", name = "public_headers",
srcs = glob(["include/brotli/*.h"]), srcs = glob(["c/include/brotli/*.h"]),
) )
filegroup( filegroup(
name = "common_headers", name = "common_headers",
srcs = glob(["common/*.h"]), srcs = glob(["c/common/*.h"]),
) )
filegroup( filegroup(
name = "common_sources", name = "common_sources",
srcs = glob(["common/*.c"]), srcs = glob(["c/common/*.c"]),
) )
filegroup( filegroup(
name = "dec_headers", name = "dec_headers",
srcs = glob(["dec/*.h"]), srcs = glob(["c/dec/*.h"]),
) )
filegroup( filegroup(
name = "dec_sources", name = "dec_sources",
srcs = glob(["dec/*.c"]), srcs = glob(["c/dec/*.c"]),
) )
filegroup( filegroup(
name = "enc_headers", name = "enc_headers",
srcs = glob(["enc/*.h"]), srcs = glob(["c/enc/*.h"]),
) )
filegroup( filegroup(
name = "enc_sources", name = "enc_sources",
srcs = glob(["enc/*.c"]), srcs = glob(["c/enc/*.c"]),
) )
cc_library( cc_library(
name = "brotli", name = "brotli",
hdrs = [":public_headers"], hdrs = [":public_headers"],
copts = STRICT_C_OPTIONS, copts = STRICT_C_OPTIONS,
includes = ["include"], includes = ["c/include"],
) )
cc_library( cc_library(
@ -92,7 +92,7 @@ cc_library(
cc_binary( cc_binary(
name = "bro", name = "bro",
srcs = ["tools/bro.c"], srcs = ["c/tools/bro.c"],
copts = STRICT_C_OPTIONS, copts = STRICT_C_OPTIONS,
linkstatic = 1, linkstatic = 1,
deps = [ deps = [

View File

@ -73,7 +73,7 @@ function(hex_to_dec HEXADECIMAL DECIMAL)
endfunction(hex_to_dec) endfunction(hex_to_dec)
# Version information # Version information
file(STRINGS "common/version.h" _brotli_version_line REGEX "^#define BROTLI_VERSION (0x[0-9a-fA-F]+)$") file(STRINGS "c/common/version.h" _brotli_version_line REGEX "^#define BROTLI_VERSION (0x[0-9a-fA-F]+)$")
string(REGEX REPLACE "^#define BROTLI_VERSION 0x([0-9a-fA-F]+)$" "\\1" _brotli_version_hex "${_brotli_version_line}") string(REGEX REPLACE "^#define BROTLI_VERSION 0x([0-9a-fA-F]+)$" "\\1" _brotli_version_hex "${_brotli_version_line}")
hex_to_dec("${_brotli_version_hex}" _brotli_version) hex_to_dec("${_brotli_version_hex}" _brotli_version)
math(EXPR BROTLI_VERSION_MAJOR "${_brotli_version} >> 24") math(EXPR BROTLI_VERSION_MAJOR "${_brotli_version} >> 24")
@ -112,7 +112,7 @@ if(NOT LOG2_RES)
endif() endif()
unset(LOG2_RES) unset(LOG2_RES)
set(BROTLI_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/include") set(BROTLI_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/c/include")
set(BROTLI_LIBRARIES_CORE brotlienc brotlidec brotlicommon) set(BROTLI_LIBRARIES_CORE brotlienc brotlidec brotlicommon)
set(BROTLI_LIBRARIES ${BROTLI_LIBRARIES_CORE} ${LIBM_LIBRARY}) set(BROTLI_LIBRARIES ${BROTLI_LIBRARIES_CORE} ${LIBM_LIBRARY})
mark_as_advanced(BROTLI_INCLUDE_DIRS BROTLI_LIBRARIES) mark_as_advanced(BROTLI_INCLUDE_DIRS BROTLI_LIBRARIES)
@ -126,30 +126,30 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
endif() endif()
add_library(brotlicommon add_library(brotlicommon
common/dictionary.c) c/common/dictionary.c)
add_library(brotlidec add_library(brotlidec
dec/bit_reader.c c/dec/bit_reader.c
dec/decode.c c/dec/decode.c
dec/huffman.c c/dec/huffman.c
dec/state.c) c/dec/state.c)
add_library(brotlienc add_library(brotlienc
enc/backward_references.c c/enc/backward_references.c
enc/backward_references_hq.c c/enc/backward_references_hq.c
enc/bit_cost.c c/enc/bit_cost.c
enc/block_splitter.c c/enc/block_splitter.c
enc/brotli_bit_stream.c c/enc/brotli_bit_stream.c
enc/cluster.c c/enc/cluster.c
enc/compress_fragment.c c/enc/compress_fragment.c
enc/compress_fragment_two_pass.c c/enc/compress_fragment_two_pass.c
enc/dictionary_hash.c c/enc/dictionary_hash.c
enc/encode.c c/enc/encode.c
enc/entropy_encode.c c/enc/entropy_encode.c
enc/histogram.c c/enc/histogram.c
enc/literal_cost.c c/enc/literal_cost.c
enc/memory.c c/enc/memory.c
enc/metablock.c c/enc/metablock.c
enc/static_dict.c c/enc/static_dict.c
enc/utf8_util.c) c/enc/utf8_util.c)
# Older CMake versions does not understand INCLUDE_DIRECTORIES property. # Older CMake versions does not understand INCLUDE_DIRECTORIES property.
include_directories(${BROTLI_INCLUDE_DIRS}) include_directories(${BROTLI_INCLUDE_DIRS})
@ -182,7 +182,7 @@ if(BROTLI_PARENT_DIRECTORY)
endif() endif()
# Build the bro executable # Build the bro executable
add_executable(bro tools/bro.c) add_executable(bro c/tools/bro.c)
target_link_libraries(bro ${BROTLI_LIBRARIES}) target_link_libraries(bro ${BROTLI_LIBRARIES})
# Installation # Installation
@ -229,9 +229,9 @@ if(NOT BROTLI_DISABLE_TESTS)
tests/testdata/asyoulik.txt tests/testdata/asyoulik.txt
tests/testdata/lcet10.txt tests/testdata/lcet10.txt
tests/testdata/plrabn12.txt tests/testdata/plrabn12.txt
enc/encode.c c/enc/encode.c
common/dictionary.h c/common/dictionary.h
dec/decode.c) c/dec/decode.c)
foreach(INPUT ${ROUNDTRIP_INPUTS}) foreach(INPUT ${ROUNDTRIP_INPUTS})
get_filename_component(OUTPUT_NAME "${INPUT}" NAME) get_filename_component(OUTPUT_NAME "${INPUT}" NAME)

View File

@ -1,11 +1,11 @@
include CONTRIBUTING.md include CONTRIBUTING.md
include common/*.c include c/common/*.c
include common/*.h include c/common/*.h
include dec/*.c include c/dec/*.c
include dec/*.h include c/dec/*.h
include enc/*.c include c/enc/*.c
include enc/*.h include c/enc/*.h
include include/brotli/*.h include c/include/brotli/*.h
include LICENSE include LICENSE
include MANIFEST.in include MANIFEST.in
include python/bro.py include python/bro.py
@ -13,4 +13,4 @@ include python/brotlimodule.cc
include python/README.md include python/README.md
include README.md include README.md
include setup.py include setup.py
include tools/bro.c include c/tools/bro.c

View File

@ -1,14 +1,14 @@
OS := $(shell uname) OS := $(shell uname)
LIBSOURCES = $(wildcard common/*.c) $(wildcard dec/*.c) $(wildcard enc/*.c) LIBSOURCES = $(wildcard c/common/*.c) $(wildcard c/dec/*.c) $(wildcard c/enc/*.c)
SOURCES = $(LIBSOURCES) tools/bro.c SOURCES = $(LIBSOURCES) c/tools/bro.c
BINDIR = bin BINDIR = bin
OBJDIR = $(BINDIR)/obj OBJDIR = $(BINDIR)/obj
LIBOBJECTS = $(addprefix $(OBJDIR)/, $(LIBSOURCES:.c=.o)) LIBOBJECTS = $(addprefix $(OBJDIR)/, $(LIBSOURCES:.c=.o))
OBJECTS = $(addprefix $(OBJDIR)/, $(SOURCES:.c=.o)) OBJECTS = $(addprefix $(OBJDIR)/, $(SOURCES:.c=.o))
LIB_A = libbrotli.a LIB_A = libbrotli.a
EXECUTABLE = bro EXECUTABLE = bro
DIRS = $(OBJDIR)/common $(OBJDIR)/dec $(OBJDIR)/enc \ DIRS = $(OBJDIR)/c/common $(OBJDIR)/c/dec $(OBJDIR)/c/enc \
$(OBJDIR)/tools $(BINDIR)/tmp $(OBJDIR)/c/tools $(BINDIR)/tmp
CFLAGS += -O2 CFLAGS += -O2
ifeq ($(os), Darwin) ifeq ($(os), Darwin)
CPPFLAGS += -DOS_MACOSX CPPFLAGS += -DOS_MACOSX
@ -38,5 +38,5 @@ clean:
.SECONDEXPANSION: .SECONDEXPANSION:
$(OBJECTS): $$(patsubst %.o,%.c,$$(patsubst $$(OBJDIR)/%,%,$$@)) | $(DIRS) $(OBJECTS): $$(patsubst %.o,%.c,$$(patsubst $$(OBJDIR)/%,%,$$@)) | $(DIRS)
$(CC) $(CFLAGS) $(CPPFLAGS) -Iinclude \ $(CC) $(CFLAGS) $(CPPFLAGS) -Ic/include \
-c $(patsubst %.o,%.c,$(patsubst $(OBJDIR)/%,%,$@)) -o $@ -c $(patsubst %.o,%.c,$(patsubst $(OBJDIR)/%,%,$@)) -o $@

View File

@ -32,8 +32,8 @@ PREFIX=/usr/local
LIBDIR= LIBDIR=
CMAKE_ARGS= CMAKE_ARGS=
if [ -e "${TOP_SRCDIR}/.configure-custom.sh" ]; then if [ -e "${TOP_SRCDIR}/scripts/.configure-custom.sh" ]; then
. "${TOP_SRCDIR}/.configure-custom.sh" . "${TOP_SRCDIR}/scripts/.configure-custom.sh"
fi fi
quote() { quote() {

View File

@ -4,7 +4,7 @@ configurations { "Release", "Debug" }
targetdir "bin" targetdir "bin"
location "buildfiles" location "buildfiles"
flags "RelativeLinks" flags "RelativeLinks"
includedirs { "include" } includedirs { "c/include" }
filter "configurations:Release" filter "configurations:Release"
optimize "Speed" optimize "Speed"
@ -29,43 +29,43 @@ configuration { "macosx" }
project "brotlicommon" project "brotlicommon"
kind "SharedLib" kind "SharedLib"
language "C" language "C"
files { "common/**.h", "common/**.c" } files { "c/common/**.h", "c/common/**.c" }
project "brotlicommon_static" project "brotlicommon_static"
kind "StaticLib" kind "StaticLib"
targetname "brotlicommon" targetname "brotlicommon"
language "C" language "C"
files { "common/**.h", "common/**.c" } files { "c/common/**.h", "c/common/**.c" }
project "brotlidec" project "brotlidec"
kind "SharedLib" kind "SharedLib"
language "C" language "C"
files { "dec/**.h", "dec/**.c" } files { "c/dec/**.h", "c/dec/**.c" }
links "brotlicommon" links "brotlicommon"
project "brotlidec_static" project "brotlidec_static"
kind "StaticLib" kind "StaticLib"
targetname "brotlidec" targetname "brotlidec"
language "C" language "C"
files { "dec/**.h", "dec/**.c" } files { "c/dec/**.h", "c/dec/**.c" }
links "brotlicommon_static" links "brotlicommon_static"
project "brotlienc" project "brotlienc"
kind "SharedLib" kind "SharedLib"
language "C" language "C"
files { "enc/**.h", "enc/**.c" } files { "c/enc/**.h", "c/enc/**.c" }
links "brotlicommon" links "brotlicommon"
project "brotlienc_static" project "brotlienc_static"
kind "StaticLib" kind "StaticLib"
targetname "brotlienc" targetname "brotlienc"
language "C" language "C"
files { "enc/**.h", "enc/**.c" } files { "c/enc/**.h", "c/enc/**.c" }
links "brotlicommon_static" links "brotlicommon_static"
project "bro" project "bro"
kind "ConsoleApp" kind "ConsoleApp"
language "C" language "C"
linkoptions "-static" linkoptions "-static"
files { "tools/bro.c" } files { "c/tools/bro.c" }
links { "brotlicommon_static", "brotlidec_static", "brotlienc_static" } links { "brotlicommon_static", "brotlidec_static", "brotlienc_static" }

View File

@ -28,7 +28,7 @@ case "$1" in
case "${BUILD_SYSTEM}" in case "${BUILD_SYSTEM}" in
"python") "python")
source terryfy/travis_tools.sh source scripts/terryfy/travis_tools.sh
get_python_environment $INSTALL_TYPE $PYTHON_VERSION venv get_python_environment $INSTALL_TYPE $PYTHON_VERSION venv
pip install --upgrade wheel pip install --upgrade wheel
;; ;;
@ -91,7 +91,7 @@ case "$1" in
case "${BUILD_SYSTEM}" in case "${BUILD_SYSTEM}" in
"bazel") "bazel")
export RELEASE_DATE=`date +%Y-%m-%d` export RELEASE_DATE=`date +%Y-%m-%d`
perl -p -i -e 's/\$\{([^}]+)\}/defined $ENV{$1} ? $ENV{$1} : $&/eg' .bintray.json perl -p -i -e 's/\$\{([^}]+)\}/defined $ENV{$1} ? $ENV{$1} : $&/eg' scripts/.bintray.json
zip -j9 brotli.zip bazel-bin/libbrotli*.a bazel-bin/libbrotli*.so bazel-bin/bro zip -j9 brotli.zip bazel-bin/libbrotli*.a bazel-bin/libbrotli*.so bazel-bin/bro
;; ;;
esac esac

View File

@ -4,7 +4,7 @@ environment:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script intepreter # /E:ON and /V:ON options are not enabled in the batch script intepreter
# See: http://stackoverflow.com/a/13751649/163740 # See: http://stackoverflow.com/a/13751649/163740
WITH_COMPILER: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_compiler.cmd" WITH_COMPILER: "cmd /E:ON /V:ON /C .\\scripts\\run_with_compiler.cmd"
matrix: matrix:
- BUILD_SYSTEM: CMake - BUILD_SYSTEM: CMake
@ -49,14 +49,11 @@ environment:
PYTHON_VERSION: "3.5.0" PYTHON_VERSION: "3.5.0"
PYTHON_ARCH: "64" PYTHON_ARCH: "64"
# init:
# - "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
install: install:
- ps: | - ps: |
if ($env:BUILD_SYSTEM -eq "Python") { if ($env:BUILD_SYSTEM -eq "Python") {
# install Python and pip when not already installed # install Python and pip when not already installed
if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 } if (-not(Test-Path($env:PYTHON))) { & scripts\install_py.ps1 }
# prepend newly installed Python to the PATH # prepend newly installed Python to the PATH
$env:Path = $env:PYTHON + ';' + $env:PYTHON + '\\Scripts;' + $env:PATH $env:Path = $env:PYTHON + ';' + $env:PYTHON + '\\Scripts;' + $env:PATH

147
setup.py
View File

@ -22,7 +22,7 @@ CURR_DIR = os.path.abspath(os.path.dirname(os.path.realpath(__file__)))
def get_version(): def get_version():
""" Return BROTLI_VERSION string as defined in 'common/version.h' file. """ """ Return BROTLI_VERSION string as defined in 'common/version.h' file. """
version_file_path = os.path.join(CURR_DIR, 'common', 'version.h') version_file_path = os.path.join(CURR_DIR, 'c', 'common', 'version.h')
version = 0 version = 0
with open(version_file_path, 'r') as f: with open(version_file_path, 'r') as f:
for line in f: for line in f:
@ -164,82 +164,83 @@ EXT_MODULES = [
'_brotli', '_brotli',
sources=[ sources=[
'python/_brotli.cc', 'python/_brotli.cc',
'common/dictionary.c', 'c/common/dictionary.c',
'dec/bit_reader.c', 'c/dec/bit_reader.c',
'dec/decode.c', 'c/dec/decode.c',
'dec/huffman.c', 'c/dec/huffman.c',
'dec/state.c', 'c/dec/state.c',
'enc/backward_references.c', 'c/enc/backward_references.c',
'enc/backward_references_hq.c', 'c/enc/backward_references_hq.c',
'enc/bit_cost.c', 'c/enc/bit_cost.c',
'enc/block_splitter.c', 'c/enc/block_splitter.c',
'enc/brotli_bit_stream.c', 'c/enc/brotli_bit_stream.c',
'enc/cluster.c', 'c/enc/cluster.c',
'enc/compress_fragment.c', 'c/enc/compress_fragment.c',
'enc/compress_fragment_two_pass.c', 'c/enc/compress_fragment_two_pass.c',
'enc/dictionary_hash.c', 'c/enc/dictionary_hash.c',
'enc/encode.c', 'c/enc/encode.c',
'enc/entropy_encode.c', 'c/enc/entropy_encode.c',
'enc/histogram.c', 'c/enc/histogram.c',
'enc/literal_cost.c', 'c/enc/literal_cost.c',
'enc/memory.c', 'c/enc/memory.c',
'enc/metablock.c', 'c/enc/metablock.c',
'enc/static_dict.c', 'c/enc/static_dict.c',
'enc/utf8_util.c', 'c/enc/utf8_util.c',
], ],
depends=[ depends=[
'common/constants.h', 'c/common/constants.h',
'common/dictionary.h', 'c/common/dictionary.h',
'common/port.h', 'c/common/version.h',
'common/version.h', 'c/dec/bit_reader.h',
'dec/bit_reader.h', 'c/dec/context.h',
'dec/context.h', 'c/dec/huffman.h',
'dec/huffman.h', 'c/dec/port.h',
'dec/port.h', 'c/dec/prefix.h',
'dec/prefix.h', 'c/dec/state.h',
'dec/state.h', 'c/dec/transform.h',
'dec/streams.h', 'c/enc/backward_references.h',
'dec/transform.h', 'c/enc/backward_references_hq.h',
'enc/backward_references.h', 'c/enc/backward_references_inc.h',
'enc/backward_references_hq.h', 'c/enc/bit_cost.h',
'enc/backward_references_inc.h', 'c/enc/bit_cost_inc.h',
'enc/bit_cost.h', 'c/enc/block_encoder_inc.h',
'enc/bit_cost_inc.h', 'c/enc/block_splitter.h',
'enc/block_splitter.h', 'c/enc/block_splitter_inc.h',
'enc/block_splitter_inc.h', 'c/enc/brotli_bit_stream.h',
'enc/brotli_bit_stream.h', 'c/enc/cluster.h',
'enc/cluster.h', 'c/enc/cluster_inc.h',
'enc/cluster_inc.h', 'c/enc/command.h',
'enc/command.h', 'c/enc/compress_fragment.h',
'enc/compress_fragment.h', 'c/enc/compress_fragment_two_pass.h'
'enc/compress_fragment_two_pass.h' 'c/enc/context.h',
'enc/context.h', 'c/enc/dictionary_hash.h',
'enc/dictionary_hash.h', 'c/enc/entropy_encode.h',
'enc/entropy_encode.h', 'c/enc/entropy_encode_static.h',
'enc/entropy_encode_static.h', 'c/enc/fast_log.h',
'enc/fast_log.h', 'c/enc/find_match_length.h',
'enc/find_match_length.h', 'c/enc/hash.h',
'enc/hash.h', 'c/enc/hash_forgetful_chain_inc.h',
'enc/hash_to_binary_tree_inc.h', 'c/enc/hash_longest_match64_inc.h',
'enc/hash_longest_match64_inc.h', 'c/enc/hash_longest_match_inc.h',
'enc/hash_longest_match_inc.h', 'c/enc/hash_longest_match_quickly_inc.h',
'enc/hash_longest_match_quickly_inc.h', 'c/enc/hash_to_binary_tree_inc.h',
'enc/histogram.h', 'c/enc/histogram.h',
'enc/histogram_inc.h', 'c/enc/histogram_inc.h',
'enc/literal_cost.h', 'c/enc/literal_cost.h',
'enc/memory.h', 'c/enc/memory.h',
'enc/metablock.h', 'c/enc/metablock.h',
'enc/metablock_inc.h', 'c/enc/metablock_inc.h',
'enc/port.h', 'c/enc/port.h',
'enc/prefix.h', 'c/enc/prefix.h',
'enc/ringbuffer.h', 'c/enc/quality.h',
'enc/static_dict.h', 'c/enc/ringbuffer.h',
'enc/static_dict_lut.h', 'c/enc/static_dict.h',
'enc/utf8_util.h', 'c/enc/static_dict_lut.h',
'enc/write_bits.h', 'c/enc/utf8_util.h',
'c/enc/write_bits.h',
], ],
include_dirs=[ include_dirs=[
'include', 'c/include',
], ],
language='c++'), language='c++'),
] ]

View File

@ -13,5 +13,5 @@ deps :
clean : clean :
rm -f testdata/*.{bro,unbro,uncompressed} rm -f testdata/*.{bro,unbro,uncompressed}
rm -f $(BROTLI)/{enc,dec,tools}/*.{un,}bro rm -f $(BROTLI)/c/{enc,dec,tools}/*.{un,}bro
$(MAKE) -C $(BROTLI)/tools clean $(MAKE) -C $(BROTLI)/c/tools clean

View File

@ -11,9 +11,9 @@ tests/testdata/alice29.txt
tests/testdata/asyoulik.txt tests/testdata/asyoulik.txt
tests/testdata/lcet10.txt tests/testdata/lcet10.txt
tests/testdata/plrabn12.txt tests/testdata/plrabn12.txt
enc/encode.c c/enc/encode.c
common/dictionary.h c/common/dictionary.h
dec/decode.c c/dec/decode.c
$BRO $BRO
""" """