2024-04-20 09:06:49 -07:00
|
|
|
local M = {}
|
2014-04-30 02:10:37 -07:00
|
|
|
|
2024-04-20 09:06:49 -07:00
|
|
|
M.include_paths = {}
|
2014-04-30 02:10:37 -07:00
|
|
|
for p in ("${TEST_INCLUDE_DIRS}" .. ";"):gmatch("[^;]+") do
|
2024-04-20 09:06:49 -07:00
|
|
|
table.insert(M.include_paths, p)
|
2014-04-30 02:10:37 -07:00
|
|
|
end
|
|
|
|
|
2024-09-25 07:07:37 -07:00
|
|
|
M.vterm_test_file = "${VTERM_TEST_FILE}"
|
2024-04-20 09:06:49 -07:00
|
|
|
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
|
2017-03-11 13:13:09 -07:00
|
|
|
else
|
2024-04-20 09:06:49 -07:00
|
|
|
M.test_luajit_prg = nil
|
2017-03-11 13:13:09 -07:00
|
|
|
end
|
|
|
|
end
|
2024-04-20 09:06:49 -07:00
|
|
|
table.insert(M.include_paths, "${CMAKE_BINARY_DIR}/include")
|
|
|
|
table.insert(M.include_paths, "${CMAKE_BINARY_DIR}/src/nvim/auto")
|
2014-04-30 02:10:37 -07:00
|
|
|
|
2024-04-20 09:06:49 -07:00
|
|
|
return M
|