From 1f004970f00bd8ef7ad955b52857df136f82185b Mon Sep 17 00:00:00 2001 From: bfredl Date: Tue, 11 Mar 2025 14:01:55 +0100 Subject: feat(build): build.zig MVP: build and run functionaltests on linux MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NEW BUILD SYSTEM! This is a MVP implementation which supports building the "nvim" binary, including cross-compilation for some targets. As an example, you can build a aarch64-macos binary from an x86-64-linux-gnu host, or vice versa Add CI target for build.zig currently for functionaltests on linux x86_64 only Follow up items: - praxis for version and dependency bumping - windows 💀 - full integration of libintl and gettext (or a desicion not to) - update help and API metadata files - installation into a $PREFIX - more tests and linters --- src/gen/gen_vimvim.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/gen/gen_vimvim.lua') diff --git a/src/gen/gen_vimvim.lua b/src/gen/gen_vimvim.lua index 4cd88f0188..f2d3e18e72 100644 --- a/src/gen/gen_vimvim.lua +++ b/src/gen/gen_vimvim.lua @@ -2,6 +2,10 @@ local mpack = vim.mpack local syntax_file = arg[1] local funcs_file = arg[2] +local options_file = arg[3] +local auevents_file = arg[4] +local ex_cmds_file = arg[5] +local vvars_file = arg[6] local lld = {} local syn_fd = assert(io.open(syntax_file, 'w')) @@ -15,10 +19,10 @@ local function w(s) end end -local options = require('nvim.options') -local auevents = require('nvim.auevents') -local ex_cmds = require('nvim.ex_cmds') -local vvars = require('nvim.vvars') +local options = loadfile(options_file)() +local auevents = loadfile(auevents_file)() +local ex_cmds = loadfile(ex_cmds_file)() +local vvars = loadfile(vvars_file)() local function cmd_kw(prev_cmd, cmd) if not prev_cmd then -- cgit