Skip to content

Commit

Permalink
chore: Fix imlib2 Lua bindings (#1405)
Browse files Browse the repository at this point in the history
* chore: Fix imlib2 Lua bindings

The API changed in a backward-incompatible way around 1.10 of imlib2
(though it's not clear which version broke it).

This resolves #1404.
  • Loading branch information
brndnmtthws authored Feb 17, 2023
1 parent 4b8d5eb commit 0ccf7f0
Show file tree
Hide file tree
Showing 3 changed files with 850 additions and 239 deletions.
7 changes: 6 additions & 1 deletion lua/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ if(BUILD_X11)

if(BUILD_LUA_IMLIB2)
include_directories(${luaimlib2_includes} ${CMAKE_CURRENT_SOURCE_DIR})
wrap_tolua(luaimlib2_src imlib2.pkg)

if(IMLIB2_VERSION VERSION_GREATER_EQUAL "1.10.0")
wrap_tolua(luaimlib2_src imlib2.pkg)
else(IMLIB2_VERSION VERSION_GREATER_EQUAL "1.10.0")
wrap_tolua(luaimlib2_src imlib2_old.pkg)
endif(IMLIB2_VERSION VERSION_GREATER_EQUAL "1.10.0")

add_library(conky-imlib2 SHARED ${luaimlib2_src})
set_target_properties(conky-imlib2 PROPERTIES OUTPUT_NAME "imlib2")
Expand Down
Loading

0 comments on commit 0ccf7f0

Please sign in to comment.