10000 [WIP] Add zopfli as default program for deflate algorithm by X-Ryl669 · Pull Request #64 · jkent/frogfs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[WIP] Add zopfli as default program for deflate algorithm #64

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ extern const size_t frogfs_bin_len;

You 10000 have the option of creating a binary without linking it with your
application. A CMake function is provided to output a binary with target
`generate_${name}`.
`generate-${name}`.

declare_frogfs_bin(path [CONFIG yaml] [NAME name])

Expand All @@ -91,7 +91,7 @@ idf_component_get_property(sub_args esptool_py FLASH_SUB_ARGS)
esptool_py_flash_target(${FROGFS_NAME}-flash "${main_args}" "${sub_args}" ALWAYS_PLAINTEXT)

esptool_py_flash_to_partition(${FROGFS_NAME}-flash storage ${BUILD_DIR}/CMakeFiles/${FROGFS_NAME}.bin)
add_dependencies(${FROGFS_NAME}-flash generate_${FROGFS_NAME}_bin)
add_dependencies(${FROGFS_NAME}-flash generate-${FROGFS_NAME}-bin)
```

You can invoke the flash process by running `idf.py frogfs-flash`.
Expand Down
4 changes: 2 additions & 2 deletions cmake/functions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ macro(generate_frogfs_rules)
set(Python3_VENV_EXECUTABLE ${Python3_VENV}/Scripts/python.exe)
else()
set(Python3_VENV_EXECUTABLE ${Python3_VENV}/bin/python)
endif()
endif()

if(NOT TARGET frogfs_venv)
add_custom_target(frogfs_venv
Expand Down Expand Up @@ -81,7 +81,7 @@ endfunction()
function(declare_frogfs_bin)
generate_frogfs_rules(${ARGV})

add_custom_target(generate_${ARG_NAME}_bin
add_custom_target(generate-${ARG_NAME}-bin
DEPENDS frogfs_preprocess_${ARG_NAME} ${OUTPUT}.bin
)
endfunction()
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pyyaml~=6.0.2
brotli~=1.1.0
zopfli~=0.2.3
6 changes: 5 additions & 1 deletion tools/transform-deflate.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import sys
import zlib
# Try to use zopfli first, else fallback to zlib
try:
import zopfli.zlib as zlib
except:
import zlib

if __name__ == '__main__':
while True:
Expand Down
0