neovim/third-party
Daniel Hahler 99b870d61c
build: bundle: clean binary dir with new downloads (#10411)
This is required to (re)build e.g. libluv when the version changes
(which triggers a new download).

With `make deps`, changing the `LUV_URL`/`LUV_SHA256`, and `make deps` again:

Before:

> Up-to-date: /home/daniel/Vcs/neovim/.deps/usr/lib/libluv.a

After:

> Installing: /home/daniel/Vcs/neovim/.deps/usr/lib/libluv.a

See with https://github.com/neovim/neovim/pull/10358 - where .deps
contained libluv 1.29, the merge updates it to 1.30, but then it failed
to link because `libluv.a` is considered to be up-to-date (after
downloading the new version).

Note that header files get installed, since they have the original time
stamp, but `libluv.a` is being generated (does not use the timestamp
from the archive here, but needs to get rebuild).

It could be argued that the build system of the included project should
catch/handle this, but it seems to be good practice to clean the binary
/ build dir with a new download to start from scratch.

Ref: https://gitlab.kitware.com/cmake/cmake/issues/19452

Also fixes cmake/BuildLuv / luv-static: use name with -DTARGET for
download command, and pass (shared) `SRC_DIR` explicitly instead.
2019-07-04 02:37:29 +02:00
..
cmake build: bundle: clean binary dir with new downloads (#10411) 2019-07-04 02:37:29 +02:00
msvc-compat build/msvc: Add CMakeLists.txt and header for Unibilium 2018-03-01 22:48:15 -06:00
patches build: remove patch: luv-Add-missing-definitions-for-MinGW [skip travis] #10360 2019-06-28 13:19:47 +02:00
CMakeLists.txt libluv: use luv_set_callback to control callback execution 2019-06-30 13:13:08 +02:00