diff options
| author | Daniil Rozanov <daniilrozzanov@gmail.com> | 2024-03-29 04:37:56 +0300 | 
|---|---|---|
| committer | Daniil Rozanov <daniilrozzanov@gmail.com> | 2024-03-29 04:37:56 +0300 | 
| commit | 672f0d32e322b79661b5d7959887adaa9e41ad98 (patch) | |
| tree | c2c3f4e2157d47c7e3f8dfd2f3229e37e0919b3e /lua/cmake-explorer/config.lua | |
| parent | d453f54d98536eb3a52daebfe279c4e624979c31 (diff) | |
feat: build from current variant
Diffstat (limited to 'lua/cmake-explorer/config.lua')
| -rw-r--r-- | lua/cmake-explorer/config.lua | 37 | 
1 files changed, 32 insertions, 5 deletions
diff --git a/lua/cmake-explorer/config.lua b/lua/cmake-explorer/config.lua index 21788ce..611f526 100644 --- a/lua/cmake-explorer/config.lua +++ b/lua/cmake-explorer/config.lua @@ -1,9 +1,36 @@  local default_config = { -	cmake_cmd = "cmake", -	build_dir_template = { "build", "${buildType}", sep = "-", case = nil }, -	build_dir = "", -	build_types = { "Debug", "Release" }, -	options = {}, +	cmake_path = "cmake", +	environment = {}, +	configure_environment = {}, +	build_directory = "${workspaceFolder}/build-${buildType}", +	build_environment = {}, +	build_args = {}, +	build_tool_args = {}, +	generator = nil, +	default_variants = { +		{ +			default = "debug", +			description = "Build type", +			choices = { +				debug = { short = "Debug", long = "Long debug", buildType = "Debug" }, +				release = { short = "Release", long = "Long release", buildType = "Release" }, +			}, +		}, +		{ +			default = "static", +			choices = { +				static = { short = "Static", long = "Long static", linkage = "static" }, +				shared = { short = "Shared", long = "Long shared", linkage = "shared" }, +			}, +		}, +	}, +	variants_display = { +		short_sep = " × ", +		long_sep = " ❄ ", +	}, +	parallel_jobs = nil, +	save_before_build = true, +	source_directory = "${workspaceFolder}",  }  local M = vim.deepcopy(default_config)  | 
