blob: bfc1f47426c22ef3c9a095dd7512dc4ffa47e559 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
local M = {}
M.include_paths = {} --- @type string[]
for p in ("${TEST_INCLUDE_DIRS}" .. ";"):gmatch("[^;]+") do
table.insert(M.include_paths, p)
end
M.apple_sysroot = "${CMAKE_OSX_SYSROOT}"
M.translations_enabled = "${ENABLE_TRANSLATIONS}" == "ON"
M.is_asan = "${ENABLE_ASAN_UBSAN}" == "ON"
M.is_zig_build = false
M.vterm_test_file = "${VTERM_TEST_FILE}"
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
|