Skip to content

Commit

Permalink
Add a no-im (disable input methods) option to glx.
Browse files Browse the repository at this point in the history
Example usage: `./agartest -d glx(no-im) keyevents`

See Issue #74 (Segmentation fault on keyevents test).



git-svn-id: file:///home/dev/agar/trunk@11247 86a84d31-9702-0410-8f1e-a60cab7bd424
  • Loading branch information
JulNadeauCA committed Apr 9, 2024
1 parent 717b69e commit 32b0acb
Show file tree
Hide file tree
Showing 4 changed files with 267 additions and 157 deletions.
31 changes: 31 additions & 0 deletions CMakeChecks.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1726,6 +1726,37 @@ int main(int argc, char *argv[]) {
endif()
endmacro()

#
# From BSDBuild/lua.pm:
#
macro(Check_Lua)
set(LUA_CFLAGS "")
set(LUA_LIBS "")

find_package(Lua)
if(LUA_FOUND)
set(HAVE_LUA ON)
BB_Save_Define(HAVE_LUA)
if(${LUA_INCLUDE_DIRS})
set(LUA_CFLAGS "-I${LUA_INCLUDE_DIRS}")
endif()
set(LUA_LIBS "${LUA_LIBRARIES}")
else()
set(HAVE_LUA OFF)
BB_Save_Undef(HAVE_LUA)
endif()

BB_Save_MakeVar(LUA_CFLAGS "${LUA_CFLAGS}")
BB_Save_MakeVar(LUA_LIBS "${LUA_LIBS}")
endmacro()

macro(Disable_Lua)
set(HAVE_LUA OFF)
BB_Save_Undef(HAVE_LUA)
BB_Save_MakeVar(LUA_CFLAGS "")
BB_Save_MakeVar(LUA_LIBS "")
endmacro()

#
# From BSDBuild/math.pm:
#
Expand Down
Loading

0 comments on commit 32b0acb

Please sign in to comment.