Skip to content

Commit

Permalink
introduce miniz submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaozg committed Jul 10, 2024
1 parent 461dfd7 commit 262d5f7
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 9,006 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@
[submodule "deps/pcre2"]
path = deps/pcre2
url = https://github.com/PCRE2Project/pcre2
[submodule "deps/miniz"]
path = deps/miniz
url = https://github.com/richgel999/miniz
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,16 @@ if (WITH_LUA_ENGINE STREQUAL Lua)
endif ()

include(LuaAddExecutable)

# TODO: define MINIZ_NO_STDIO for small size
add_subdirectory(deps/miniz miniz.dir)
set(lminiz src/lminiz.c)
include_directories(deps/miniz)
list(APPEND LUVI_LIBRARIES miniz)

lua_add_executable(luvi
${winsvc}
${lminiz}
src/main.c
src/luvi_compat.c
src/lua/init.lua
Expand Down
1 change: 1 addition & 0 deletions deps/miniz
Submodule miniz added at bf7a1f
Loading

0 comments on commit 262d5f7

Please sign in to comment.