neovim/test/cmakeconfig/paths.lua.in
Justin M. Keyes 8886b1807c
refactor(lua): "module" => "M" #28426
Most of the codebase uses the `M` convention for Lua module.
Update the last remaining cases.
2024-04-20 09:06:49 -07:00

23 lines
571 B
Lua

local M = {}
M.include_paths = {}
for p in ("${TEST_INCLUDE_DIRS}" .. ";"):gmatch("[^;]+") do
table.insert(M.include_paths, p)
end
M.test_build_dir = "${CMAKE_BINARY_DIR}"
M.test_source_path = "${CMAKE_SOURCE_DIR}"
M.test_lua_prg = "${LUA_PRG}"
M.test_luajit_prg = ""
if M.test_luajit_prg == '' then
if M.test_lua_prg:sub(-6) == 'luajit' then
M.test_luajit_prg = M.test_lua_prg
else
M.test_luajit_prg = nil
end
end
table.insert(M.include_paths, "${CMAKE_BINARY_DIR}/include")
table.insert(M.include_paths, "${CMAKE_BINARY_DIR}/src/nvim/auto")
return M