build: rename build-related dirs

Problem:
Dirs "config", "packaging", and "third-party" are all closely related
but this is not obvious from the layout. This adds friction for new
contributors.

Solution:
- rename config/ to cmake.config/
- rename test/config/ to test/cmakeconfig/ because it is used in Lua
  tests: require('test.cmakeconfig.paths').
- rename packaging/ to cmake.packaging/
- rename third-party/ to cmake.deps/ (parallel with .deps/)
This commit is contained in:
Justin M. Keyes
2022-06-27 03:08:59 -07:00
parent 9ddb481d88
commit f05a2891d3
55 changed files with 46 additions and 44 deletions

View File

@@ -132,7 +132,7 @@ end
local function write_cmakelists_line(symbol, kind, value)
require_executable("sed")
local cmakelists_path = nvim_src_dir .. "/" .. "third-party/CMakeLists.txt"
local cmakelists_path = nvim_src_dir .. "/" .. "cmake.deps/CMakeLists.txt"
run_die({
"sed",
"-i",
@@ -169,7 +169,7 @@ local function update_cmakelists(dependency, archive, comment)
verify_branch(dependency.name)
local changed_file = nvim_src_dir .. "/" .. "third-party/CMakeLists.txt"
local changed_file = nvim_src_dir .. "/" .. "cmake.deps/CMakeLists.txt"
p("Updating " .. dependency.name .. " to " .. archive.url .. "\n")
write_cmakelists_line(dependency.symbol, "URL", archive.url:gsub("/", "\\/"))
@@ -183,7 +183,7 @@ end
local function verify_cmakelists_committed()
require_executable("git")
local cmakelists_path = nvim_src_dir .. "/" .. "third-party/CMakeLists.txt"
local cmakelists_path = nvim_src_dir .. "/" .. "cmake.deps/CMakeLists.txt"
run_die({ "git", "diff", "--quiet", "HEAD", "--", cmakelists_path }, cmakelists_path .. " has uncommitted changes")
end