koffi 2.1.3 → 2.1.4
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.
- package/package.json +44 -68
- package/{LICENSE.txt → src/cnoke/LICENSE.txt} +0 -0
- package/src/cnoke/README.md +97 -0
- package/src/cnoke/assets/FindCNoke.cmake +71 -0
- package/src/cnoke/assets/win_delay_hook.c +34 -0
- package/src/cnoke/cnoke.js +968 -0
- package/src/cnoke/package.json +25 -0
- package/{vendor → src/core}/libcc/libcc.cc +38 -11
- package/{vendor → src/core}/libcc/libcc.hh +4 -2
- package/{CMakeLists.txt → src/koffi/CMakeLists.txt} +3 -3
- package/{ChangeLog.md → src/koffi/ChangeLog.md} +11 -0
- package/src/koffi/LICENSE.txt +661 -0
- package/{README.md → src/koffi/README.md} +0 -0
- package/{benchmark → src/koffi/benchmark}/CMakeLists.txt +9 -6
- package/{benchmark → src/koffi/benchmark}/atoi_koffi.js +0 -0
- package/{benchmark → src/koffi/benchmark}/atoi_napi.cc +1 -1
- package/{benchmark → src/koffi/benchmark}/atoi_napi.js +0 -0
- package/{benchmark → src/koffi/benchmark}/atoi_node_ffi.js +0 -0
- package/src/koffi/benchmark/benchmark.js +118 -0
- package/src/koffi/benchmark/rand_koffi.js +52 -0
- package/src/koffi/benchmark/rand_napi.cc +69 -0
- package/src/koffi/benchmark/rand_napi.js +47 -0
- package/src/koffi/benchmark/rand_node_ffi.js +55 -0
- package/{benchmark → src/koffi/benchmark}/raylib_cc.cc +2 -2
- package/{benchmark → src/koffi/benchmark}/raylib_cc.js +0 -0
- package/{benchmark → src/koffi/benchmark}/raylib_koffi.js +0 -0
- package/{benchmark → src/koffi/benchmark}/raylib_node_ffi.js +0 -0
- package/{benchmark → src/koffi/benchmark}/raylib_node_raylib.js +0 -0
- package/src/koffi/build/2.1.4/koffi_darwin_arm64.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_darwin_x64.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_freebsd_arm64.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_freebsd_ia32.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_freebsd_x64.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_linux_arm32hf.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_linux_arm64.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_linux_ia32.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_linux_riscv64hf64.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_linux_x64.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_openbsd_ia32.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_openbsd_x64.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_win32_arm64.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_win32_ia32.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_win32_x64.tar.gz +0 -0
- package/{doc → src/koffi/doc}/Makefile +0 -0
- package/{doc → src/koffi/doc}/benchmarks.md +0 -0
- package/{doc → src/koffi/doc}/benchmarks.xlsx +0 -0
- package/{doc → src/koffi/doc}/changes.md +0 -0
- package/{doc → src/koffi/doc}/conf.py +0 -0
- package/{doc → src/koffi/doc}/contribute.md +5 -5
- package/{doc → src/koffi/doc}/functions.md +0 -0
- package/{doc → src/koffi/doc}/index.rst +1 -1
- package/{doc → src/koffi/doc}/make.bat +0 -0
- package/{doc → src/koffi/doc}/memory.md +1 -0
- package/{doc → src/koffi/doc}/platforms.md +0 -0
- package/{doc → src/koffi/doc}/poetry.lock +0 -0
- package/{doc → src/koffi/doc}/pyproject.toml +0 -0
- package/{doc → src/koffi/doc}/start.md +0 -0
- package/{doc → src/koffi/doc}/static/bench_linux.png +0 -0
- package/{doc → src/koffi/doc}/static/bench_windows.png +0 -0
- package/{doc → src/koffi/doc}/static/custom.css +0 -0
- package/{doc → src/koffi/doc}/static/perf_linux_20220623.png +0 -0
- package/{doc → src/koffi/doc}/static/perf_linux_20220623_2.png +0 -0
- package/{doc → src/koffi/doc}/static/perf_linux_20220627.png +0 -0
- package/{doc → src/koffi/doc}/static/perf_linux_20220628.png +0 -0
- package/{doc → src/koffi/doc}/static/perf_linux_20220812.png +0 -0
- package/{doc → src/koffi/doc}/static/perf_windows_20220623.png +0 -0
- package/{doc → src/koffi/doc}/static/perf_windows_20220623_2.png +0 -0
- package/{doc → src/koffi/doc}/static/perf_windows_20220627.png +0 -0
- package/{doc → src/koffi/doc}/static/perf_windows_20220628.png +0 -0
- package/{doc → src/koffi/doc}/static/perf_windows_20220812.png +0 -0
- package/{doc → src/koffi/doc}/templates/badges.html +1 -1
- package/{doc → src/koffi/doc}/types.md +0 -0
- package/src/koffi/qemu/qemu/.gitkeep +0 -0
- package/{qemu → src/koffi/qemu}/qemu.js +217 -131
- package/{qemu → src/koffi/qemu}/registry/machines.json +24 -0
- package/{qemu → src/koffi/qemu}/registry/sha256sum.txt +0 -0
- package/src/{abi_arm32.cc → koffi/src/abi_arm32.cc} +1 -1
- package/src/{abi_arm32_fwd.S → koffi/src/abi_arm32_fwd.S} +0 -0
- package/src/{abi_arm64.cc → koffi/src/abi_arm64.cc} +1 -1
- package/src/{abi_arm64_fwd.S → koffi/src/abi_arm64_fwd.S} +0 -0
- package/src/{abi_arm64_fwd.asm → koffi/src/abi_arm64_fwd.asm} +0 -0
- package/src/{abi_riscv64.cc → koffi/src/abi_riscv64.cc} +1 -1
- package/src/{abi_riscv64_fwd.S → koffi/src/abi_riscv64_fwd.S} +0 -0
- package/src/{abi_x64_sysv.cc → koffi/src/abi_x64_sysv.cc} +1 -1
- package/src/{abi_x64_sysv_fwd.S → koffi/src/abi_x64_sysv_fwd.S} +0 -0
- package/src/{abi_x64_win.cc → koffi/src/abi_x64_win.cc} +1 -1
- package/src/{abi_x64_win_fwd.asm → koffi/src/abi_x64_win_fwd.asm} +0 -0
- package/src/{abi_x86.cc → koffi/src/abi_x86.cc} +1 -1
- package/src/{abi_x86_fwd.S → koffi/src/abi_x86_fwd.S} +0 -0
- package/src/{abi_x86_fwd.asm → koffi/src/abi_x86_fwd.asm} +0 -0
- package/src/{call.cc → koffi/src/call.cc} +1 -1
- package/src/{call.hh → koffi/src/call.hh} +2 -2
- package/src/{ffi.cc → koffi/src/ffi.cc} +34 -18
- package/src/{ffi.hh → koffi/src/ffi.hh} +5 -3
- package/src/{index.js → koffi/src/index.js} +0 -0
- package/src/{parser.cc → koffi/src/parser.cc} +1 -1
- package/src/{parser.hh → koffi/src/parser.hh} +1 -1
- package/src/{util.cc → koffi/src/util.cc} +1 -1
- package/src/{util.hh → koffi/src/util.hh} +1 -1
- package/{test → src/koffi/test}/CMakeLists.txt +14 -15
- package/{test → src/koffi/test}/async.js +0 -0
- package/{test → src/koffi/test}/callbacks.js +0 -0
- package/{test → src/koffi/test}/misc.c +13 -0
- package/{test → src/koffi/test}/misc.def +0 -0
- package/{test → src/koffi/test}/raylib.js +0 -0
- package/{test → src/koffi/test}/sqlite.js +1 -1
- package/{test → src/koffi/test}/sync.js +17 -0
- package/vendor/brotli/BUILD +144 -0
- package/vendor/brotli/CMakeLists.txt +421 -0
- package/vendor/brotli/CONTRIBUTING.md +27 -0
- package/vendor/brotli/LICENSE +19 -0
- package/vendor/brotli/MANIFEST.in +17 -0
- package/vendor/brotli/Makefile +55 -0
- package/vendor/brotli/Makefile.am +38 -0
- package/vendor/brotli/README +15 -0
- package/vendor/brotli/README.md +104 -0
- package/vendor/brotli/WORKSPACE +21 -0
- package/vendor/brotli/bootstrap +35 -0
- package/vendor/brotli/c/common/constants.c +15 -0
- package/vendor/brotli/c/common/constants.h +200 -0
- package/vendor/brotli/c/common/context.c +156 -0
- package/vendor/brotli/c/common/context.h +113 -0
- package/vendor/brotli/c/common/dictionary.c +5914 -0
- package/vendor/brotli/c/common/dictionary.h +64 -0
- package/vendor/brotli/c/common/platform.c +22 -0
- package/vendor/brotli/c/common/platform.h +594 -0
- package/vendor/brotli/c/common/transform.c +291 -0
- package/vendor/brotli/c/common/transform.h +85 -0
- package/vendor/brotli/c/common/version.h +26 -0
- package/vendor/brotli/c/dec/bit_reader.c +76 -0
- package/vendor/brotli/c/dec/bit_reader.h +351 -0
- package/vendor/brotli/c/dec/decode.c +2608 -0
- package/vendor/brotli/c/dec/huffman.c +339 -0
- package/vendor/brotli/c/dec/huffman.h +121 -0
- package/vendor/brotli/c/dec/prefix.h +732 -0
- package/vendor/brotli/c/dec/state.c +159 -0
- package/vendor/brotli/c/dec/state.h +365 -0
- package/vendor/brotli/c/enc/backward_references.c +145 -0
- package/vendor/brotli/c/enc/backward_references.h +39 -0
- package/vendor/brotli/c/enc/backward_references_hq.c +843 -0
- package/vendor/brotli/c/enc/backward_references_hq.h +95 -0
- package/vendor/brotli/c/enc/backward_references_inc.h +163 -0
- package/vendor/brotli/c/enc/bit_cost.c +35 -0
- package/vendor/brotli/c/enc/bit_cost.h +63 -0
- package/vendor/brotli/c/enc/bit_cost_inc.h +127 -0
- package/vendor/brotli/c/enc/block_encoder_inc.h +34 -0
- package/vendor/brotli/c/enc/block_splitter.c +194 -0
- package/vendor/brotli/c/enc/block_splitter.h +51 -0
- package/vendor/brotli/c/enc/block_splitter_inc.h +440 -0
- package/vendor/brotli/c/enc/brotli_bit_stream.c +1314 -0
- package/vendor/brotli/c/enc/brotli_bit_stream.h +84 -0
- package/vendor/brotli/c/enc/cluster.c +56 -0
- package/vendor/brotli/c/enc/cluster.h +48 -0
- package/vendor/brotli/c/enc/cluster_inc.h +320 -0
- package/vendor/brotli/c/enc/command.c +28 -0
- package/vendor/brotli/c/enc/command.h +190 -0
- package/vendor/brotli/c/enc/compress_fragment.c +790 -0
- package/vendor/brotli/c/enc/compress_fragment.h +61 -0
- package/vendor/brotli/c/enc/compress_fragment_two_pass.c +645 -0
- package/vendor/brotli/c/enc/compress_fragment_two_pass.h +54 -0
- package/vendor/brotli/c/enc/dictionary_hash.c +1846 -0
- package/vendor/brotli/c/enc/dictionary_hash.h +25 -0
- package/vendor/brotli/c/enc/encode.c +1927 -0
- package/vendor/brotli/c/enc/encoder_dict.c +33 -0
- package/vendor/brotli/c/enc/encoder_dict.h +43 -0
- package/vendor/brotli/c/enc/entropy_encode.c +503 -0
- package/vendor/brotli/c/enc/entropy_encode.h +122 -0
- package/vendor/brotli/c/enc/entropy_encode_static.h +539 -0
- package/vendor/brotli/c/enc/fast_log.c +105 -0
- package/vendor/brotli/c/enc/fast_log.h +66 -0
- package/vendor/brotli/c/enc/find_match_length.h +79 -0
- package/vendor/brotli/c/enc/hash.h +488 -0
- package/vendor/brotli/c/enc/hash_composite_inc.h +125 -0
- package/vendor/brotli/c/enc/hash_forgetful_chain_inc.h +293 -0
- package/vendor/brotli/c/enc/hash_longest_match64_inc.h +267 -0
- package/vendor/brotli/c/enc/hash_longest_match_inc.h +262 -0
- package/vendor/brotli/c/enc/hash_longest_match_quickly_inc.h +266 -0
- package/vendor/brotli/c/enc/hash_rolling_inc.h +212 -0
- package/vendor/brotli/c/enc/hash_to_binary_tree_inc.h +329 -0
- package/vendor/brotli/c/enc/histogram.c +100 -0
- package/vendor/brotli/c/enc/histogram.h +63 -0
- package/vendor/brotli/c/enc/histogram_inc.h +51 -0
- package/vendor/brotli/c/enc/literal_cost.c +175 -0
- package/vendor/brotli/c/enc/literal_cost.h +30 -0
- package/vendor/brotli/c/enc/memory.c +170 -0
- package/vendor/brotli/c/enc/memory.h +114 -0
- package/vendor/brotli/c/enc/metablock.c +663 -0
- package/vendor/brotli/c/enc/metablock.h +105 -0
- package/vendor/brotli/c/enc/metablock_inc.h +183 -0
- package/vendor/brotli/c/enc/params.h +46 -0
- package/vendor/brotli/c/enc/prefix.h +53 -0
- package/vendor/brotli/c/enc/quality.h +165 -0
- package/vendor/brotli/c/enc/ringbuffer.h +167 -0
- package/vendor/brotli/c/enc/static_dict.c +486 -0
- package/vendor/brotli/c/enc/static_dict.h +40 -0
- package/vendor/brotli/c/enc/static_dict_lut.h +5864 -0
- package/vendor/brotli/c/enc/utf8_util.c +85 -0
- package/vendor/brotli/c/enc/utf8_util.h +32 -0
- package/vendor/brotli/c/enc/write_bits.h +87 -0
- package/vendor/brotli/c/include/brotli/decode.h +344 -0
- package/vendor/brotli/c/include/brotli/encode.h +448 -0
- package/vendor/brotli/c/include/brotli/port.h +288 -0
- package/vendor/brotli/c/include/brotli/types.h +83 -0
- package/vendor/brotli/c/tools/brotli.c +1116 -0
- package/vendor/brotli/c/tools/brotli.md +107 -0
- package/vendor/brotli/compiler_config_setting.bzl +28 -0
- package/vendor/brotli/configure +8 -0
- package/vendor/brotli/configure-cmake +318 -0
- package/vendor/brotli/configure.ac +14 -0
- package/vendor/brotli/docs/brotli.1 +132 -0
- package/vendor/brotli/docs/constants.h.3 +47 -0
- package/vendor/brotli/docs/decode.h.3 +415 -0
- package/vendor/brotli/docs/encode.h.3 +586 -0
- package/vendor/brotli/docs/types.h.3 +117 -0
- package/vendor/brotli/premake5.lua +78 -0
- package/vendor/brotli/python/Makefile +57 -0
- package/vendor/brotli/python/README.md +54 -0
- package/vendor/brotli/python/_brotli.cc +753 -0
- package/vendor/brotli/python/bro.py +160 -0
- package/vendor/brotli/python/brotli.py +56 -0
- package/vendor/brotli/python/tests/__init__.py +0 -0
- package/vendor/brotli/python/tests/_test_utils.py +112 -0
- package/vendor/brotli/python/tests/bro_test.py +102 -0
- package/vendor/brotli/python/tests/compress_test.py +41 -0
- package/vendor/brotli/python/tests/compressor_test.py +94 -0
- package/vendor/brotli/python/tests/decompress_test.py +42 -0
- package/vendor/brotli/python/tests/decompressor_test.py +59 -0
- package/vendor/brotli/scripts/libbrotlicommon.pc.in +11 -0
- package/vendor/brotli/scripts/libbrotlidec.pc.in +12 -0
- package/vendor/brotli/scripts/libbrotlienc.pc.in +12 -0
- package/vendor/brotli/scripts/sources.lst +104 -0
- package/vendor/brotli/setup.cfg +5 -0
- package/vendor/brotli/setup.py +293 -0
- package/vendor/brotli/tests/Makefile +17 -0
- package/vendor/brotli/tests/compatibility_test.sh +25 -0
- package/vendor/brotli/tests/roundtrip_test.sh +36 -0
- package/vendor/brotli/tests/run-compatibility-test.cmake +31 -0
- package/vendor/brotli/tests/run-roundtrip-test.cmake +36 -0
- package/vendor/brotli/tests/testdata/empty +0 -0
- package/vendor/brotli/tests/testdata/empty.compressed +1 -0
- package/vendor/brotli/tests/testdata/ukkonooa +1 -0
- package/vendor/brotli/tests/testdata/ukkonooa.compressed +0 -0
- package/vendor/miniz/ChangeLog.md +235 -0
- package/vendor/miniz/LICENSE +22 -0
- package/vendor/miniz/examples/example1.c +105 -0
- package/vendor/miniz/examples/example2.c +164 -0
- package/vendor/miniz/examples/example3.c +269 -0
- package/vendor/miniz/examples/example4.c +102 -0
- package/vendor/miniz/examples/example5.c +327 -0
- package/vendor/miniz/examples/example6.c +166 -0
- package/vendor/miniz/miniz.c +7835 -0
- package/vendor/miniz/miniz.h +1422 -0
- package/vendor/miniz/readme.md +46 -0
- package/vendor/{sqlite3 → sqlite3mc}/sqlite3ext.h +18 -2
- package/vendor/{sqlite3/sqlite3.c → sqlite3mc/sqlite3mc.c} +60872 -4890
- package/vendor/sqlite3mc/sqlite3mc.def +312 -0
- package/vendor/{sqlite3/sqlite3.h → sqlite3mc/sqlite3mc.h} +480 -36
- package/build/qemu/2.1.3/koffi_darwin_arm64.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_darwin_x64.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_freebsd_arm64.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_freebsd_ia32.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_freebsd_x64.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_linux_arm32hf.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_linux_arm64.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_linux_ia32.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_linux_riscv64hf64.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_linux_x64.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_openbsd_ia32.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_openbsd_x64.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_win32_arm64.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_win32_ia32.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_win32_x64.tar.gz +0 -0
- package/vendor/_patches/glfw_001_fix_openbsd_xlib_soname.patch +0 -145
- package/vendor/raylib/projects/VS2019-Android/raylib_android/raylib_android.NativeActivity/raylib_android.NativeActivity.vcxproj +0 -226
- package/vendor/raylib/projects/VS2019-Android/raylib_android/raylib_android.NativeActivity/raylib_android.NativeActivity.vcxproj.filters +0 -10
- package/vendor/raylib/projects/VS2019-Android/raylib_android/raylib_android.NativeActivity/raylib_android.NativeActivity.vcxproj.user +0 -4
- package/vendor/raylib/projects/VS2019-Android/raylib_android.sln +0 -75
- package/vendor/raylib/projects/VS2022/examples/audio_module_playing.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/audio_multichannel_sound.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/audio_music_stream.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/audio_raw_stream.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/audio_sound_loading.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/audio_stream_effects.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_2d_camera.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_2d_camera_mouse_zoom.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_2d_camera_platformer.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_3d_camera_first_person.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_3d_camera_free.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_3d_camera_mode.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_3d_picking.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_basic_screen_manager.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_basic_window.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_custom_frame_control.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_custom_logging.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_drop_files.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_input_gamepad.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_input_gestures.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_input_keys.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_input_mouse.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_input_mouse_wheel.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_input_multitouch.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_loading_thread.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_random_values.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_scissor_test.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_split_screen.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_storage_values.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_vr_simulator.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_window_flags.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_window_letterbox.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_window_should_close.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_world_screen.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/easings_testbed.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/embedded_files_loading.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_animation.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_billboard.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_box_collisions.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_cubicmap.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_first_person_maze.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_geometric_shapes.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_heightmap.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_loading.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_loading_gltf.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_loading_vox.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_mesh_generation.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_mesh_picking.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_orthographic_projection.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_rlgl_solar_system.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_skybox.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_waving_cubes.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_yaw_pitch_roll.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/rlgl_compute_shaders.vcxproj +0 -391
- package/vendor/raylib/projects/VS2022/examples/rlgl_standalone.vcxproj +0 -391
- package/vendor/raylib/projects/VS2022/examples/shaders_basic_lighting.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_custom_uniform.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_eratosthenes.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_fog.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_hot_reloading.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_julia_set.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_mesh_instancing.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_model_shader.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_multi_sample2d.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_palette_switch.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_postprocessing.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_raymarching.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_shapes_textures.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_simple_mask.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_spotlight.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_texture_drawing.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_texture_waves.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_basic_shapes.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_bouncing_ball.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_collision_area.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_colors_palette.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_draw_circle_sector.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_draw_rectangle_rounded.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_draw_ring.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_easings_ball_anim.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_easings_box_anim.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_easings_rectangle_array.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_following_eyes.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_lines_bezier.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_logo_raylib.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_logo_raylib_anim.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_rectangle_scaling.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_codepoints_loading.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_draw_3d.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_font_filters.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_font_loading.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_font_sdf.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_font_spritefont.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_format_text.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_input_box.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_raylib_fonts.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_rectangle_bounds.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_unicode.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_writing_anim.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_background_scrolling.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_blend_modes.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_bunnymark.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_draw_tiled.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_fog_of_war.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_gif_player.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_image_drawing.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_image_generation.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_image_loading.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_image_processing.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_image_text.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_logo_raylib.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_mouse_painting.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_npatch_drawing.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_particles_blending.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_polygon.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_raw_data.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_sprite_anim.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_sprite_button.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_sprite_explosion.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_srcrec_dstrec.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_to_image.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/raylib/raylib.vcxproj +0 -340
- package/vendor/raylib/projects/VS2022/raylib.sln +0 -2347
- package/vendor/sqlite3/shell.c +0 -23496
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
prefix=@prefix@
|
|
2
|
+
exec_prefix=@exec_prefix@
|
|
3
|
+
libdir=@libdir@
|
|
4
|
+
includedir=@includedir@
|
|
5
|
+
|
|
6
|
+
Name: libbrotlidec
|
|
7
|
+
URL: https://github.com/google/brotli
|
|
8
|
+
Description: Brotli decoder library
|
|
9
|
+
Version: @PACKAGE_VERSION@
|
|
10
|
+
Libs: -L${libdir} -R${libdir} -lbrotlidec
|
|
11
|
+
Requires.private: libbrotlicommon >= 1.0.2
|
|
12
|
+
Cflags: -I${includedir}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
prefix=@prefix@
|
|
2
|
+
exec_prefix=@exec_prefix@
|
|
3
|
+
libdir=@libdir@
|
|
4
|
+
includedir=@includedir@
|
|
5
|
+
|
|
6
|
+
Name: libbrotlienc
|
|
7
|
+
URL: https://github.com/google/brotli
|
|
8
|
+
Description: Brotli encoder library
|
|
9
|
+
Version: @PACKAGE_VERSION@
|
|
10
|
+
Libs: -L${libdir} -R${libdir} -lbrotlienc
|
|
11
|
+
Requires.private: libbrotlicommon >= 1.0.2
|
|
12
|
+
Cflags: -I${includedir}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# IT WOULD BE FOOLISH TO USE COMPUTERS TO AUTOMATE REPETITIVE TASKS:
|
|
2
|
+
# ENLIST EVERY USED HEADER AND SOURCE FILE MANUALLY!
|
|
3
|
+
|
|
4
|
+
BROTLI_CLI_C = \
|
|
5
|
+
c/tools/brotli.c
|
|
6
|
+
|
|
7
|
+
BROTLI_COMMON_C = \
|
|
8
|
+
c/common/constants.c \
|
|
9
|
+
c/common/context.c \
|
|
10
|
+
c/common/dictionary.c \
|
|
11
|
+
c/common/platform.c \
|
|
12
|
+
c/common/transform.c
|
|
13
|
+
|
|
14
|
+
BROTLI_COMMON_H = \
|
|
15
|
+
c/common/constants.h \
|
|
16
|
+
c/common/context.h \
|
|
17
|
+
c/common/dictionary.h \
|
|
18
|
+
c/common/platform.h \
|
|
19
|
+
c/common/transform.h \
|
|
20
|
+
c/common/version.h
|
|
21
|
+
|
|
22
|
+
BROTLI_DEC_C = \
|
|
23
|
+
c/dec/bit_reader.c \
|
|
24
|
+
c/dec/decode.c \
|
|
25
|
+
c/dec/huffman.c \
|
|
26
|
+
c/dec/state.c
|
|
27
|
+
|
|
28
|
+
BROTLI_DEC_H = \
|
|
29
|
+
c/dec/bit_reader.h \
|
|
30
|
+
c/dec/huffman.h \
|
|
31
|
+
c/dec/prefix.h \
|
|
32
|
+
c/dec/state.h
|
|
33
|
+
|
|
34
|
+
BROTLI_ENC_C = \
|
|
35
|
+
c/enc/backward_references.c \
|
|
36
|
+
c/enc/backward_references_hq.c \
|
|
37
|
+
c/enc/bit_cost.c \
|
|
38
|
+
c/enc/block_splitter.c \
|
|
39
|
+
c/enc/brotli_bit_stream.c \
|
|
40
|
+
c/enc/cluster.c \
|
|
41
|
+
c/enc/command.c \
|
|
42
|
+
c/enc/compress_fragment.c \
|
|
43
|
+
c/enc/compress_fragment_two_pass.c \
|
|
44
|
+
c/enc/dictionary_hash.c \
|
|
45
|
+
c/enc/encode.c \
|
|
46
|
+
c/enc/encoder_dict.c \
|
|
47
|
+
c/enc/entropy_encode.c \
|
|
48
|
+
c/enc/fast_log.c \
|
|
49
|
+
c/enc/histogram.c \
|
|
50
|
+
c/enc/literal_cost.c \
|
|
51
|
+
c/enc/memory.c \
|
|
52
|
+
c/enc/metablock.c \
|
|
53
|
+
c/enc/static_dict.c \
|
|
54
|
+
c/enc/utf8_util.c
|
|
55
|
+
|
|
56
|
+
BROTLI_ENC_H = \
|
|
57
|
+
c/enc/backward_references.h \
|
|
58
|
+
c/enc/backward_references_hq.h \
|
|
59
|
+
c/enc/backward_references_inc.h \
|
|
60
|
+
c/enc/bit_cost.h \
|
|
61
|
+
c/enc/bit_cost_inc.h \
|
|
62
|
+
c/enc/block_encoder_inc.h \
|
|
63
|
+
c/enc/block_splitter.h \
|
|
64
|
+
c/enc/block_splitter_inc.h \
|
|
65
|
+
c/enc/brotli_bit_stream.h \
|
|
66
|
+
c/enc/cluster.h \
|
|
67
|
+
c/enc/cluster_inc.h \
|
|
68
|
+
c/enc/command.h \
|
|
69
|
+
c/enc/compress_fragment.h \
|
|
70
|
+
c/enc/compress_fragment_two_pass.h \
|
|
71
|
+
c/enc/dictionary_hash.h \
|
|
72
|
+
c/enc/encoder_dict.h \
|
|
73
|
+
c/enc/entropy_encode.h \
|
|
74
|
+
c/enc/entropy_encode_static.h \
|
|
75
|
+
c/enc/fast_log.h \
|
|
76
|
+
c/enc/find_match_length.h \
|
|
77
|
+
c/enc/hash.h \
|
|
78
|
+
c/enc/hash_composite_inc.h \
|
|
79
|
+
c/enc/hash_forgetful_chain_inc.h \
|
|
80
|
+
c/enc/hash_longest_match64_inc.h \
|
|
81
|
+
c/enc/hash_longest_match_inc.h \
|
|
82
|
+
c/enc/hash_longest_match_quickly_inc.h \
|
|
83
|
+
c/enc/hash_rolling_inc.h \
|
|
84
|
+
c/enc/hash_to_binary_tree_inc.h \
|
|
85
|
+
c/enc/histogram.h \
|
|
86
|
+
c/enc/histogram_inc.h \
|
|
87
|
+
c/enc/literal_cost.h \
|
|
88
|
+
c/enc/memory.h \
|
|
89
|
+
c/enc/metablock.h \
|
|
90
|
+
c/enc/metablock_inc.h \
|
|
91
|
+
c/enc/params.h \
|
|
92
|
+
c/enc/prefix.h \
|
|
93
|
+
c/enc/quality.h \
|
|
94
|
+
c/enc/ringbuffer.h \
|
|
95
|
+
c/enc/static_dict.h \
|
|
96
|
+
c/enc/static_dict_lut.h \
|
|
97
|
+
c/enc/utf8_util.h \
|
|
98
|
+
c/enc/write_bits.h
|
|
99
|
+
|
|
100
|
+
BROTLI_INCLUDE = \
|
|
101
|
+
c/include/brotli/decode.h \
|
|
102
|
+
c/include/brotli/encode.h \
|
|
103
|
+
c/include/brotli/port.h \
|
|
104
|
+
c/include/brotli/types.h
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
# Copyright 2015 The Brotli Authors. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# Distributed under MIT license.
|
|
4
|
+
# See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
|
5
|
+
|
|
6
|
+
import os
|
|
7
|
+
import platform
|
|
8
|
+
import re
|
|
9
|
+
import unittest
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from setuptools import Extension
|
|
13
|
+
from setuptools import setup
|
|
14
|
+
except:
|
|
15
|
+
from distutils.core import Extension
|
|
16
|
+
from distutils.core import setup
|
|
17
|
+
from distutils.command.build_ext import build_ext
|
|
18
|
+
from distutils import errors
|
|
19
|
+
from distutils import dep_util
|
|
20
|
+
from distutils import log
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
CURR_DIR = os.path.abspath(os.path.dirname(os.path.realpath(__file__)))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def get_version():
|
|
27
|
+
""" Return BROTLI_VERSION string as defined in 'common/version.h' file. """
|
|
28
|
+
version_file_path = os.path.join(CURR_DIR, 'c', 'common', 'version.h')
|
|
29
|
+
version = 0
|
|
30
|
+
with open(version_file_path, 'r') as f:
|
|
31
|
+
for line in f:
|
|
32
|
+
m = re.match(r'#define\sBROTLI_VERSION\s+0x([0-9a-fA-F]+)', line)
|
|
33
|
+
if m:
|
|
34
|
+
version = int(m.group(1), 16)
|
|
35
|
+
if version == 0:
|
|
36
|
+
return ''
|
|
37
|
+
# Semantic version is calculated as (MAJOR << 24) | (MINOR << 12) | PATCH.
|
|
38
|
+
major = version >> 24
|
|
39
|
+
minor = (version >> 12) & 0xFFF
|
|
40
|
+
patch = version & 0xFFF
|
|
41
|
+
return '{0}.{1}.{2}'.format(major, minor, patch)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def get_test_suite():
|
|
45
|
+
test_loader = unittest.TestLoader()
|
|
46
|
+
test_suite = test_loader.discover('python', pattern='*_test.py')
|
|
47
|
+
return test_suite
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class BuildExt(build_ext):
|
|
51
|
+
|
|
52
|
+
def get_source_files(self):
|
|
53
|
+
filenames = build_ext.get_source_files(self)
|
|
54
|
+
for ext in self.extensions:
|
|
55
|
+
filenames.extend(ext.depends)
|
|
56
|
+
return filenames
|
|
57
|
+
|
|
58
|
+
def build_extension(self, ext):
|
|
59
|
+
if ext.sources is None or not isinstance(ext.sources, (list, tuple)):
|
|
60
|
+
raise errors.DistutilsSetupError(
|
|
61
|
+
"in 'ext_modules' option (extension '%s'), "
|
|
62
|
+
"'sources' must be present and must be "
|
|
63
|
+
"a list of source filenames" % ext.name)
|
|
64
|
+
|
|
65
|
+
ext_path = self.get_ext_fullpath(ext.name)
|
|
66
|
+
depends = ext.sources + ext.depends
|
|
67
|
+
if not (self.force or dep_util.newer_group(depends, ext_path, 'newer')):
|
|
68
|
+
log.debug("skipping '%s' extension (up-to-date)", ext.name)
|
|
69
|
+
return
|
|
70
|
+
else:
|
|
71
|
+
log.info("building '%s' extension", ext.name)
|
|
72
|
+
|
|
73
|
+
c_sources = []
|
|
74
|
+
cxx_sources = []
|
|
75
|
+
for source in ext.sources:
|
|
76
|
+
if source.endswith('.c'):
|
|
77
|
+
c_sources.append(source)
|
|
78
|
+
else:
|
|
79
|
+
cxx_sources.append(source)
|
|
80
|
+
extra_args = ext.extra_compile_args or []
|
|
81
|
+
|
|
82
|
+
objects = []
|
|
83
|
+
for lang, sources in (('c', c_sources), ('c++', cxx_sources)):
|
|
84
|
+
if lang == 'c++':
|
|
85
|
+
if self.compiler.compiler_type == 'msvc':
|
|
86
|
+
extra_args.append('/EHsc')
|
|
87
|
+
|
|
88
|
+
macros = ext.define_macros[:]
|
|
89
|
+
if platform.system() == 'Darwin':
|
|
90
|
+
macros.append(('OS_MACOSX', '1'))
|
|
91
|
+
elif self.compiler.compiler_type == 'mingw32':
|
|
92
|
+
# On Windows Python 2.7, pyconfig.h defines "hypot" as "_hypot",
|
|
93
|
+
# This clashes with GCC's cmath, and causes compilation errors when
|
|
94
|
+
# building under MinGW: http://bugs.python.org/issue11566
|
|
95
|
+
macros.append(('_hypot', 'hypot'))
|
|
96
|
+
for undef in ext.undef_macros:
|
|
97
|
+
macros.append((undef,))
|
|
98
|
+
|
|
99
|
+
objs = self.compiler.compile(
|
|
100
|
+
sources,
|
|
101
|
+
output_dir=self.build_temp,
|
|
102
|
+
macros=macros,
|
|
103
|
+
include_dirs=ext.include_dirs,
|
|
104
|
+
debug=self.debug,
|
|
105
|
+
extra_postargs=extra_args,
|
|
106
|
+
depends=ext.depends)
|
|
107
|
+
objects.extend(objs)
|
|
108
|
+
|
|
109
|
+
self._built_objects = objects[:]
|
|
110
|
+
if ext.extra_objects:
|
|
111
|
+
objects.extend(ext.extra_objects)
|
|
112
|
+
extra_args = ext.extra_link_args or []
|
|
113
|
+
# when using GCC on Windows, we statically link libgcc and libstdc++,
|
|
114
|
+
# so that we don't need to package extra DLLs
|
|
115
|
+
if self.compiler.compiler_type == 'mingw32':
|
|
116
|
+
extra_args.extend(['-static-libgcc', '-static-libstdc++'])
|
|
117
|
+
|
|
118
|
+
ext_path = self.get_ext_fullpath(ext.name)
|
|
119
|
+
# Detect target language, if not provided
|
|
120
|
+
language = ext.language or self.compiler.detect_language(sources)
|
|
121
|
+
|
|
122
|
+
self.compiler.link_shared_object(
|
|
123
|
+
objects,
|
|
124
|
+
ext_path,
|
|
125
|
+
libraries=self.get_libraries(ext),
|
|
126
|
+
library_dirs=ext.library_dirs,
|
|
127
|
+
runtime_library_dirs=ext.runtime_library_dirs,
|
|
128
|
+
extra_postargs=extra_args,
|
|
129
|
+
export_symbols=self.get_export_symbols(ext),
|
|
130
|
+
debug=self.debug,
|
|
131
|
+
build_temp=self.build_temp,
|
|
132
|
+
target_lang=language)
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
NAME = 'Brotli'
|
|
136
|
+
|
|
137
|
+
VERSION = get_version()
|
|
138
|
+
|
|
139
|
+
URL = 'https://github.com/google/brotli'
|
|
140
|
+
|
|
141
|
+
DESCRIPTION = 'Python bindings for the Brotli compression library'
|
|
142
|
+
|
|
143
|
+
AUTHOR = 'The Brotli Authors'
|
|
144
|
+
|
|
145
|
+
LICENSE = 'MIT'
|
|
146
|
+
|
|
147
|
+
PLATFORMS = ['Posix', 'MacOS X', 'Windows']
|
|
148
|
+
|
|
149
|
+
CLASSIFIERS = [
|
|
150
|
+
'Development Status :: 4 - Beta',
|
|
151
|
+
'Environment :: Console',
|
|
152
|
+
'Intended Audience :: Developers',
|
|
153
|
+
'License :: OSI Approved :: MIT License',
|
|
154
|
+
'Operating System :: MacOS :: MacOS X',
|
|
155
|
+
'Operating System :: Microsoft :: Windows',
|
|
156
|
+
'Operating System :: POSIX :: Linux',
|
|
157
|
+
'Programming Language :: C',
|
|
158
|
+
'Programming Language :: C++',
|
|
159
|
+
'Programming Language :: Python',
|
|
160
|
+
'Programming Language :: Python :: 2',
|
|
161
|
+
'Programming Language :: Python :: 2.7',
|
|
162
|
+
'Programming Language :: Python :: 3',
|
|
163
|
+
'Programming Language :: Python :: 3.3',
|
|
164
|
+
'Programming Language :: Python :: 3.4',
|
|
165
|
+
'Programming Language :: Python :: 3.5',
|
|
166
|
+
'Programming Language :: Unix Shell',
|
|
167
|
+
'Topic :: Software Development :: Libraries',
|
|
168
|
+
'Topic :: Software Development :: Libraries :: Python Modules',
|
|
169
|
+
'Topic :: System :: Archiving',
|
|
170
|
+
'Topic :: System :: Archiving :: Compression',
|
|
171
|
+
'Topic :: Text Processing :: Fonts',
|
|
172
|
+
'Topic :: Utilities',
|
|
173
|
+
]
|
|
174
|
+
|
|
175
|
+
PACKAGE_DIR = {'': 'python'}
|
|
176
|
+
|
|
177
|
+
PY_MODULES = ['brotli']
|
|
178
|
+
|
|
179
|
+
EXT_MODULES = [
|
|
180
|
+
Extension(
|
|
181
|
+
'_brotli',
|
|
182
|
+
sources=[
|
|
183
|
+
'python/_brotli.cc',
|
|
184
|
+
'c/common/constants.c',
|
|
185
|
+
'c/common/context.c',
|
|
186
|
+
'c/common/dictionary.c',
|
|
187
|
+
'c/common/platform.c',
|
|
188
|
+
'c/common/transform.c',
|
|
189
|
+
'c/dec/bit_reader.c',
|
|
190
|
+
'c/dec/decode.c',
|
|
191
|
+
'c/dec/huffman.c',
|
|
192
|
+
'c/dec/state.c',
|
|
193
|
+
'c/enc/backward_references.c',
|
|
194
|
+
'c/enc/backward_references_hq.c',
|
|
195
|
+
'c/enc/bit_cost.c',
|
|
196
|
+
'c/enc/block_splitter.c',
|
|
197
|
+
'c/enc/brotli_bit_stream.c',
|
|
198
|
+
'c/enc/cluster.c',
|
|
199
|
+
'c/enc/command.c',
|
|
200
|
+
'c/enc/compress_fragment.c',
|
|
201
|
+
'c/enc/compress_fragment_two_pass.c',
|
|
202
|
+
'c/enc/dictionary_hash.c',
|
|
203
|
+
'c/enc/encode.c',
|
|
204
|
+
'c/enc/encoder_dict.c',
|
|
205
|
+
'c/enc/entropy_encode.c',
|
|
206
|
+
'c/enc/fast_log.c',
|
|
207
|
+
'c/enc/histogram.c',
|
|
208
|
+
'c/enc/literal_cost.c',
|
|
209
|
+
'c/enc/memory.c',
|
|
210
|
+
'c/enc/metablock.c',
|
|
211
|
+
'c/enc/static_dict.c',
|
|
212
|
+
'c/enc/utf8_util.c',
|
|
213
|
+
],
|
|
214
|
+
depends=[
|
|
215
|
+
'c/common/constants.h',
|
|
216
|
+
'c/common/context.h',
|
|
217
|
+
'c/common/dictionary.h',
|
|
218
|
+
'c/common/platform.h',
|
|
219
|
+
'c/common/transform.h',
|
|
220
|
+
'c/common/version.h',
|
|
221
|
+
'c/dec/bit_reader.h',
|
|
222
|
+
'c/dec/huffman.h',
|
|
223
|
+
'c/dec/prefix.h',
|
|
224
|
+
'c/dec/state.h',
|
|
225
|
+
'c/enc/backward_references.h',
|
|
226
|
+
'c/enc/backward_references_hq.h',
|
|
227
|
+
'c/enc/backward_references_inc.h',
|
|
228
|
+
'c/enc/bit_cost.h',
|
|
229
|
+
'c/enc/bit_cost_inc.h',
|
|
230
|
+
'c/enc/block_encoder_inc.h',
|
|
231
|
+
'c/enc/block_splitter.h',
|
|
232
|
+
'c/enc/block_splitter_inc.h',
|
|
233
|
+
'c/enc/brotli_bit_stream.h',
|
|
234
|
+
'c/enc/cluster.h',
|
|
235
|
+
'c/enc/cluster_inc.h',
|
|
236
|
+
'c/enc/command.h',
|
|
237
|
+
'c/enc/compress_fragment.h',
|
|
238
|
+
'c/enc/compress_fragment_two_pass.h',
|
|
239
|
+
'c/enc/dictionary_hash.h',
|
|
240
|
+
'c/enc/encoder_dict.h',
|
|
241
|
+
'c/enc/entropy_encode.h',
|
|
242
|
+
'c/enc/entropy_encode_static.h',
|
|
243
|
+
'c/enc/fast_log.h',
|
|
244
|
+
'c/enc/find_match_length.h',
|
|
245
|
+
'c/enc/hash.h',
|
|
246
|
+
'c/enc/hash_composite_inc.h',
|
|
247
|
+
'c/enc/hash_forgetful_chain_inc.h',
|
|
248
|
+
'c/enc/hash_longest_match64_inc.h',
|
|
249
|
+
'c/enc/hash_longest_match_inc.h',
|
|
250
|
+
'c/enc/hash_longest_match_quickly_inc.h',
|
|
251
|
+
'c/enc/hash_rolling_inc.h',
|
|
252
|
+
'c/enc/hash_to_binary_tree_inc.h',
|
|
253
|
+
'c/enc/histogram.h',
|
|
254
|
+
'c/enc/histogram_inc.h',
|
|
255
|
+
'c/enc/literal_cost.h',
|
|
256
|
+
'c/enc/memory.h',
|
|
257
|
+
'c/enc/metablock.h',
|
|
258
|
+
'c/enc/metablock_inc.h',
|
|
259
|
+
'c/enc/params.h',
|
|
260
|
+
'c/enc/prefix.h',
|
|
261
|
+
'c/enc/quality.h',
|
|
262
|
+
'c/enc/ringbuffer.h',
|
|
263
|
+
'c/enc/static_dict.h',
|
|
264
|
+
'c/enc/static_dict_lut.h',
|
|
265
|
+
'c/enc/utf8_util.h',
|
|
266
|
+
'c/enc/write_bits.h',
|
|
267
|
+
],
|
|
268
|
+
include_dirs=[
|
|
269
|
+
'c/include',
|
|
270
|
+
],
|
|
271
|
+
language='c++'),
|
|
272
|
+
]
|
|
273
|
+
|
|
274
|
+
TEST_SUITE = 'setup.get_test_suite'
|
|
275
|
+
|
|
276
|
+
CMD_CLASS = {
|
|
277
|
+
'build_ext': BuildExt,
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
setup(
|
|
281
|
+
name=NAME,
|
|
282
|
+
description=DESCRIPTION,
|
|
283
|
+
version=VERSION,
|
|
284
|
+
url=URL,
|
|
285
|
+
author=AUTHOR,
|
|
286
|
+
license=LICENSE,
|
|
287
|
+
platforms=PLATFORMS,
|
|
288
|
+
classifiers=CLASSIFIERS,
|
|
289
|
+
package_dir=PACKAGE_DIR,
|
|
290
|
+
py_modules=PY_MODULES,
|
|
291
|
+
ext_modules=EXT_MODULES,
|
|
292
|
+
test_suite=TEST_SUITE,
|
|
293
|
+
cmdclass=CMD_CLASS)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#brotli/tests
|
|
2
|
+
|
|
3
|
+
BROTLI = ..
|
|
4
|
+
|
|
5
|
+
all: test
|
|
6
|
+
|
|
7
|
+
test: deps
|
|
8
|
+
./compatibility_test.sh
|
|
9
|
+
./roundtrip_test.sh
|
|
10
|
+
|
|
11
|
+
deps :
|
|
12
|
+
$(MAKE) -C $(BROTLI) brotli
|
|
13
|
+
|
|
14
|
+
clean :
|
|
15
|
+
rm -f testdata/*.{br,unbr,uncompressed}
|
|
16
|
+
rm -f $(BROTLI)/{enc,dec,tools}/*.{un,}br
|
|
17
|
+
$(MAKE) -C $(BROTLI)/tools clean
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
#
|
|
3
|
+
# Test that the brotli command-line tool can decompress old brotli-compressed
|
|
4
|
+
# files.
|
|
5
|
+
#
|
|
6
|
+
# The first argument may be a wrapper for brotli, such as 'qemu-arm'.
|
|
7
|
+
|
|
8
|
+
set -o errexit
|
|
9
|
+
|
|
10
|
+
BROTLI_WRAPPER=$1
|
|
11
|
+
BROTLI="${BROTLI_WRAPPER} bin/brotli"
|
|
12
|
+
TMP_DIR=bin/tmp
|
|
13
|
+
|
|
14
|
+
for file in tests/testdata/*.compressed*; do
|
|
15
|
+
echo "Testing decompression of file $file"
|
|
16
|
+
expected=${file%.compressed*}
|
|
17
|
+
uncompressed=${TMP_DIR}/${expected##*/}.uncompressed
|
|
18
|
+
echo $uncompressed
|
|
19
|
+
$BROTLI $file -fdo $uncompressed
|
|
20
|
+
diff -q $uncompressed $expected
|
|
21
|
+
# Test the streaming version
|
|
22
|
+
cat $file | $BROTLI -dc > $uncompressed
|
|
23
|
+
diff -q $uncompressed $expected
|
|
24
|
+
rm -f $uncompressed
|
|
25
|
+
done
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
#
|
|
3
|
+
# Roundtrip test for the brotli command-line tool.
|
|
4
|
+
#
|
|
5
|
+
# The first argument may be a wrapper for brotli, such as 'qemu-arm'.
|
|
6
|
+
|
|
7
|
+
set -o errexit
|
|
8
|
+
|
|
9
|
+
BROTLI_WRAPPER=$1
|
|
10
|
+
BROTLI="${BROTLI_WRAPPER} bin/brotli"
|
|
11
|
+
TMP_DIR=bin/tmp
|
|
12
|
+
INPUTS="""
|
|
13
|
+
tests/testdata/alice29.txt
|
|
14
|
+
tests/testdata/asyoulik.txt
|
|
15
|
+
tests/testdata/lcet10.txt
|
|
16
|
+
tests/testdata/plrabn12.txt
|
|
17
|
+
c/enc/encode.c
|
|
18
|
+
c/common/dictionary.h
|
|
19
|
+
c/dec/decode.c
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
for file in $INPUTS; do
|
|
23
|
+
if [ -f $file ]; then
|
|
24
|
+
for quality in 1 6 9 11; do
|
|
25
|
+
echo "Roundtrip testing $file at quality $quality"
|
|
26
|
+
compressed=${TMP_DIR}/${file##*/}.br
|
|
27
|
+
uncompressed=${TMP_DIR}/${file##*/}.unbr
|
|
28
|
+
$BROTLI -fq $quality $file -o $compressed
|
|
29
|
+
$BROTLI $compressed -fdo $uncompressed
|
|
30
|
+
diff -q $file $uncompressed
|
|
31
|
+
# Test the streaming version
|
|
32
|
+
cat $file | $BROTLI -cq $quality | $BROTLI -cd >$uncompressed
|
|
33
|
+
diff -q $file $uncompressed
|
|
34
|
+
done
|
|
35
|
+
fi
|
|
36
|
+
done
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
string(REGEX REPLACE "([a-zA-Z0-9\\.]+)\\.compressed(\\.[0-9]+)?$" "\\1" REFERENCE_DATA "${INPUT}")
|
|
2
|
+
string(REGEX REPLACE "\\.compressed" "" OUTPUT_FILE "${INPUT}")
|
|
3
|
+
get_filename_component(OUTPUT_NAME "${OUTPUT_FILE}" NAME)
|
|
4
|
+
|
|
5
|
+
set(ENV{QEMU_LD_PREFIX} "${BROTLI_WRAPPER_LD_PREFIX}")
|
|
6
|
+
|
|
7
|
+
execute_process(
|
|
8
|
+
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
|
9
|
+
COMMAND ${BROTLI_WRAPPER} ${BROTLI_CLI} --force --decompress ${INPUT} --output=${CMAKE_CURRENT_BINARY_DIR}/${OUTPUT_NAME}.unbr
|
|
10
|
+
RESULT_VARIABLE result)
|
|
11
|
+
if(result)
|
|
12
|
+
message(FATAL_ERROR "Decompression failed")
|
|
13
|
+
endif()
|
|
14
|
+
|
|
15
|
+
function(test_file_equality f1 f2)
|
|
16
|
+
if(NOT CMAKE_VERSION VERSION_LESS 2.8.7)
|
|
17
|
+
file(SHA512 "${f1}" f1_cs)
|
|
18
|
+
file(SHA512 "${f2}" f2_cs)
|
|
19
|
+
if(NOT "${f1_cs}" STREQUAL "${f2_cs}")
|
|
20
|
+
message(FATAL_ERROR "Files do not match")
|
|
21
|
+
endif()
|
|
22
|
+
else()
|
|
23
|
+
file(READ "${f1}" f1_contents)
|
|
24
|
+
file(READ "${f2}" f2_contents)
|
|
25
|
+
if(NOT "${f1_contents}" STREQUAL "${f2_contents}")
|
|
26
|
+
message(FATAL_ERROR "Files do not match")
|
|
27
|
+
endif()
|
|
28
|
+
endif()
|
|
29
|
+
endfunction()
|
|
30
|
+
|
|
31
|
+
test_file_equality("${REFERENCE_DATA}" "${CMAKE_CURRENT_BINARY_DIR}/${OUTPUT_NAME}.unbr")
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
set(ENV{QEMU_LD_PREFIX} "${BROTLI_WRAPPER_LD_PREFIX}")
|
|
2
|
+
|
|
3
|
+
execute_process(
|
|
4
|
+
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
|
5
|
+
COMMAND ${BROTLI_WRAPPER} ${BROTLI_CLI} --force --quality=${QUALITY} ${INPUT} --output=${OUTPUT}.br
|
|
6
|
+
RESULT_VARIABLE result
|
|
7
|
+
ERROR_VARIABLE result_stderr)
|
|
8
|
+
if(result)
|
|
9
|
+
message(FATAL_ERROR "Compression failed: ${result_stderr}")
|
|
10
|
+
endif()
|
|
11
|
+
|
|
12
|
+
execute_process(
|
|
13
|
+
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
|
14
|
+
COMMAND ${BROTLI_WRAPPER} ${BROTLI_CLI} --force --decompress ${OUTPUT}.br --output=${OUTPUT}.unbr
|
|
15
|
+
RESULT_VARIABLE result)
|
|
16
|
+
if(result)
|
|
17
|
+
message(FATAL_ERROR "Decompression failed")
|
|
18
|
+
endif()
|
|
19
|
+
|
|
20
|
+
function(test_file_equality f1 f2)
|
|
21
|
+
if(NOT CMAKE_VERSION VERSION_LESS 2.8.7)
|
|
22
|
+
file(SHA512 "${f1}" f1_cs)
|
|
23
|
+
file(SHA512 "${f2}" f2_cs)
|
|
24
|
+
if(NOT "${f1_cs}" STREQUAL "${f2_cs}")
|
|
25
|
+
message(FATAL_ERROR "Files do not match")
|
|
26
|
+
endif()
|
|
27
|
+
else()
|
|
28
|
+
file(READ "${f1}" f1_contents)
|
|
29
|
+
file(READ "${f2}" f2_contents)
|
|
30
|
+
if(NOT "${f1_contents}" STREQUAL "${f2_contents}")
|
|
31
|
+
message(FATAL_ERROR "Files do not match")
|
|
32
|
+
endif()
|
|
33
|
+
endif()
|
|
34
|
+
endfunction()
|
|
35
|
+
|
|
36
|
+
test_file_equality("${INPUT}" "${OUTPUT}.unbr")
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ukko nooa, ukko nooa oli kunnon mies, kun han meni saunaan, pisti laukun naulaan, ukko nooa, ukko nooa oli kunnon mies.
|
|
Binary file
|