neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

paths.lua.in (796B)


      1 local M = {}
      2 
      3 M.include_paths = {} --- @type string[]
      4 for p in ("${TEST_INCLUDE_DIRS}" .. ";"):gmatch("[^;]+") do
      5   table.insert(M.include_paths, p)
      6 end
      7 M.apple_sysroot = "${CMAKE_OSX_SYSROOT}"
      8 
      9 M.translations_enabled = "${ENABLE_TRANSLATIONS}" == "ON"
     10 M.is_asan = "${ENABLE_ASAN_UBSAN}" == "ON"
     11 M.is_zig_build = false
     12 M.vterm_test_file = "${VTERM_TEST_FILE}"
     13 M.test_build_dir = "${CMAKE_BINARY_DIR}"
     14 M.test_source_path = "${CMAKE_SOURCE_DIR}"
     15 M.test_lua_prg = "${LUA_PRG}"
     16 M.test_luajit_prg = ""
     17 if M.test_luajit_prg == '' then
     18   if M.test_lua_prg:sub(-6) == 'luajit' then
     19     M.test_luajit_prg = M.test_lua_prg
     20   else
     21     M.test_luajit_prg = nil
     22   end
     23 end
     24 table.insert(M.include_paths, "${CMAKE_BINARY_DIR}/include")
     25 table.insert(M.include_paths, "${CMAKE_BINARY_DIR}/src/nvim/auto")
     26 
     27 return M