mirror of
https://github.com/neovim/neovim.git
synced 2026-08-27 09:31:47 +00:00
build: allow comments in deps.txt #35765
Problem: It was not obvious where our source for "busted" is. Solution: Add a comment to `deps.txt`.
This commit is contained in:
@@ -54,5 +54,6 @@ WASMTIME_SHA256 b94b6c6fd6aebaf05d4c69c1b12b5dc217b0d42c1a95f435b33af63dddfa5304
|
|||||||
|
|
||||||
UNCRUSTIFY_URL https://github.com/uncrustify/uncrustify/archive/uncrustify-0.81.0.tar.gz
|
UNCRUSTIFY_URL https://github.com/uncrustify/uncrustify/archive/uncrustify-0.81.0.tar.gz
|
||||||
UNCRUSTIFY_SHA256 484623dc16b92206adc6ac0770077c6c67c6e441102148c2a121a19549330ff9
|
UNCRUSTIFY_SHA256 484623dc16b92206adc6ac0770077c6c67c6e441102148c2a121a19549330ff9
|
||||||
|
# This is where we get busted, luassert, ...
|
||||||
LUA_DEV_DEPS_URL https://github.com/neovim/deps/raw/06ef2b58b0876f8de1a3f5a710473dcd7afff251/opt/lua-dev-deps.tar.gz
|
LUA_DEV_DEPS_URL https://github.com/neovim/deps/raw/06ef2b58b0876f8de1a3f5a710473dcd7afff251/opt/lua-dev-deps.tar.gz
|
||||||
LUA_DEV_DEPS_SHA256 49f8399e453103064a23c65534f266f3067cda716b6502f016bfafeed5799354
|
LUA_DEV_DEPS_SHA256 49f8399e453103064a23c65534f266f3067cda716b6502f016bfafeed5799354
|
||||||
|
|||||||
@@ -68,9 +68,13 @@ set_directory_properties(PROPERTIES
|
|||||||
|
|
||||||
file(READ ${depsfile} DEPENDENCIES)
|
file(READ ${depsfile} DEPENDENCIES)
|
||||||
STRING(REGEX REPLACE "\n" ";" DEPENDENCIES "${DEPENDENCIES}")
|
STRING(REGEX REPLACE "\n" ";" DEPENDENCIES "${DEPENDENCIES}")
|
||||||
|
# Process deps.txt:
|
||||||
foreach(dep ${DEPENDENCIES})
|
foreach(dep ${DEPENDENCIES})
|
||||||
STRING(REGEX REPLACE " " ";" dep "${dep}")
|
STRING(REGEX REPLACE " " ";" dep "${dep}")
|
||||||
list(GET dep 0 name)
|
list(GET dep 0 name)
|
||||||
|
if(${name} MATCHES "^#") # Skip comment lines.
|
||||||
|
continue()
|
||||||
|
endif()
|
||||||
list(GET dep 1 value)
|
list(GET dep 1 value)
|
||||||
if(NOT ${name})
|
if(NOT ${name})
|
||||||
# _URL variables must NOT be set when USE_EXISTING_SRC_DIR is set,
|
# _URL variables must NOT be set when USE_EXISTING_SRC_DIR is set,
|
||||||
|
|||||||
Reference in New Issue
Block a user