aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-01-01 13:08:56 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-01-24 12:41:09 +0100
commitae3eed53d6100598b6d26fe58e3e97541e03f3c1 (patch)
treec87cc525c00d5f11e6babd84cac888b60c3fbefb /src
parent32849d56671cc74d7a1b0858638c698444ac237f (diff)
downloadrneovim-ae3eed53d6100598b6d26fe58e3e97541e03f3c1.tar.gz
rneovim-ae3eed53d6100598b6d26fe58e3e97541e03f3c1.tar.bz2
rneovim-ae3eed53d6100598b6d26fe58e3e97541e03f3c1.zip
build: various build improvements
- remove "ran-" prefix from touch files as it's redundant since the they're already in the directory named `touches`. - Include `contrib` when formatting with `make formatlua`. - Use TARGET_FILE generator expression instead of assuming the executable location. - reuse logic that determines whether to use lua or luajit. - add translations to the `nvim` target. Makefile improvements: - rename variable `CMAKE_PRG` to `CMAKE` to make it more consistent with the builtin `MAKE` variable. - stop propagating flags to generator. Users should use cmake for non-standard use cases. - remove `+` prefix from targets. If the user for whatever reason wants to dry-run a target then they should be able to.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/CMakeLists.txt4
-rw-r--r--src/nvim/po/CMakeLists.txt3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index 4f9edad6a8..b1ee3d93db 100644
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -3,12 +3,12 @@ add_library(main_lib INTERFACE)
# Internally we need to make a distinction between "nvim without runtime files"
# (nvim_bin) and "nvim with runtime files" (nvim).
add_executable(nvim_bin EXCLUDE_FROM_ALL)
-set_target_properties(nvim_bin PROPERTIES OUTPUT_NAME nvim)
set_target_properties(nvim_bin
PROPERTIES
EXPORT_COMPILE_COMMANDS ON
- ENABLE_EXPORTS TRUE)
+ ENABLE_EXPORTS TRUE
+ OUTPUT_NAME nvim)
#-------------------------------------------------------------------------------
# Dependencies
diff --git a/src/nvim/po/CMakeLists.txt b/src/nvim/po/CMakeLists.txt
index a4c95df3f1..6c2008926a 100644
--- a/src/nvim/po/CMakeLists.txt
+++ b/src/nvim/po/CMakeLists.txt
@@ -182,6 +182,7 @@ if(HAVE_WORKING_LIBINTL AND GETTEXT_FOUND AND XGETTEXT_PRG AND ICONV_PRG)
BuildMo(${LANGUAGE})
endforeach()
- add_custom_target(nvim_translations ALL DEPENDS ${LANGUAGE_MO_FILES})
+ add_custom_target(nvim_translations DEPENDS ${LANGUAGE_MO_FILES})
add_custom_target(update-po DEPENDS ${UPDATE_PO_TARGETS})
+ add_dependencies(nvim nvim_translations)
endif()