mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	- 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.
		
			
				
	
	
		
			17 lines
		
	
	
		
			522 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			522 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
ExternalProject_Add(lpeg
 | 
						|
  URL ${LPEG_URL}
 | 
						|
  URL_HASH SHA256=${LPEG_SHA256}
 | 
						|
  DOWNLOAD_DIR ${DEPS_DOWNLOAD_DIR}/lpeg
 | 
						|
  PATCH_COMMAND ${CMAKE_COMMAND} -E copy
 | 
						|
    ${CMAKE_CURRENT_SOURCE_DIR}/cmake/LpegCMakeLists.txt
 | 
						|
    ${DEPS_BUILD_DIR}/src/lpeg/CMakeLists.txt
 | 
						|
  CMAKE_ARGS ${DEPS_CMAKE_ARGS} -DCMAKE_C_FLAGS=${DEPS_INCLUDE_FLAGS}
 | 
						|
  CMAKE_CACHE_ARGS ${DEPS_CMAKE_CACHE_ARGS}
 | 
						|
  ${EXTERNALPROJECT_OPTIONS})
 | 
						|
 | 
						|
if(USE_BUNDLED_LUAJIT)
 | 
						|
  add_dependencies(lpeg luajit)
 | 
						|
elseif(USE_BUNDLED_LUA)
 | 
						|
  add_dependencies(lpeg lua)
 | 
						|
endif()
 |