mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	 ae3eed53d6
			
		
	
	ae3eed53d6
	
	
	
		
			
			- 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.
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			CMake
		
	
	
	
	
	
| set(LUV_CMAKE_ARGS
 | |
|   -D LUA_BUILD_TYPE=System
 | |
|   -D LUA_COMPAT53_DIR=${DEPS_BUILD_DIR}/src/lua-compat-5.3
 | |
|   -D WITH_SHARED_LIBUV=ON
 | |
|   -D BUILD_STATIC_LIBS=ON
 | |
|   -D BUILD_MODULE=OFF)
 | |
| 
 | |
| list(APPEND LUV_CMAKE_ARGS -D WITH_LUA_ENGINE=${LUA_ENGINE})
 | |
| 
 | |
| if(USE_BUNDLED_LIBUV)
 | |
|   list(APPEND LUV_CMAKE_ARGS -D CMAKE_PREFIX_PATH=${DEPS_INSTALL_DIR})
 | |
| endif()
 | |
| 
 | |
| list(APPEND LUV_CMAKE_ARGS "-DCMAKE_C_FLAGS:STRING=${DEPS_INCLUDE_FLAGS} -w")
 | |
| if(CMAKE_GENERATOR MATCHES "Unix Makefiles" AND
 | |
|     (CMAKE_SYSTEM_NAME MATCHES ".*BSD" OR CMAKE_SYSTEM_NAME MATCHES "DragonFly"))
 | |
|     list(APPEND LUV_CMAKE_ARGS -D CMAKE_MAKE_PROGRAM=gmake)
 | |
| endif()
 | |
| 
 | |
| ExternalProject_Add(lua-compat-5.3
 | |
|   URL ${LUA_COMPAT53_URL}
 | |
|   URL_HASH SHA256=${LUA_COMPAT53_SHA256}
 | |
|   DOWNLOAD_DIR ${DEPS_DOWNLOAD_DIR}/lua-compat-5.3
 | |
|   CONFIGURE_COMMAND ""
 | |
|   BUILD_COMMAND ""
 | |
|   INSTALL_COMMAND ""
 | |
|   ${EXTERNALPROJECT_OPTIONS})
 | |
| 
 | |
| ExternalProject_Add(luv
 | |
|   DEPENDS lua-compat-5.3
 | |
|   URL ${LUV_URL}
 | |
|   URL_HASH SHA256=${LUV_SHA256}
 | |
|   DOWNLOAD_DIR ${DEPS_DOWNLOAD_DIR}/luv
 | |
|   SOURCE_DIR ${DEPS_BUILD_DIR}/src/luv
 | |
|   CMAKE_ARGS ${DEPS_CMAKE_ARGS} ${LUV_CMAKE_ARGS}
 | |
|   CMAKE_CACHE_ARGS ${DEPS_CMAKE_CACHE_ARGS}
 | |
|   ${EXTERNALPROJECT_OPTIONS})
 | |
| 
 | |
| if(USE_BUNDLED_LUAJIT)
 | |
|   add_dependencies(luv luajit)
 | |
| elseif(USE_BUNDLED_LUA)
 | |
|   add_dependencies(luv lua)
 | |
| endif()
 | |
| if(USE_BUNDLED_LIBUV)
 | |
|   add_dependencies(luv libuv)
 | |
| endif()
 |