paths.lua.in 770 B

12345678910111213141516171819202122232425
  1. local module = {}
  2. module.include_paths = {}
  3. for p in ("${TEST_INCLUDE_DIRS}" .. ";"):gmatch("[^;]+") do
  4. table.insert(module.include_paths, p)
  5. end
  6. module.test_build_dir = "${CMAKE_BINARY_DIR}"
  7. module.test_include_path = module.test_build_dir .. "/test/includes/post"
  8. module.test_libnvim_path = "${TEST_LIBNVIM_PATH}"
  9. module.test_source_path = "${CMAKE_SOURCE_DIR}"
  10. module.test_lua_prg = "${LUA_PRG}"
  11. module.test_luajit_prg = ""
  12. if module.test_luajit_prg == '' then
  13. if module.test_lua_prg:sub(-6) == 'luajit' then
  14. module.test_luajit_prg = module.test_lua_prg
  15. else
  16. module.test_luajit_prg = nil
  17. end
  18. end
  19. table.insert(module.include_paths, "${CMAKE_BINARY_DIR}/include")
  20. table.insert(module.include_paths, "${CMAKE_BINARY_DIR}/src/nvim/auto")
  21. return module