mirror of
https://github.com/love2d/love.git
synced 2026-08-12 00:20:52 +02:00
Generate love.desktop using CMake too
Since I cannot easily change the variable used there, update the autotools codepath to insert the CMake variable.
This commit is contained in:
@@ -2179,8 +2179,12 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
|
||||
|
||||
include(CPack)
|
||||
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
|
||||
include(GNUInstallDirs)
|
||||
|
||||
file(COPY platform/unix/debian/ DESTINATION debian PATTERN "*.in" EXCLUDE)
|
||||
configure_file(platform/unix/debian/control.in debian/control @ONLY)
|
||||
configure_file(platform/unix/debian/changelog.in debian/changelog @ONLY)
|
||||
configure_file(platform/unix/debian/rules.in debian/rules @ONLY)
|
||||
|
||||
configure_file(platform/unix/love.desktop.in love.desktop @ONLY)
|
||||
endif()
|
||||
|
||||
@@ -18,7 +18,7 @@ platform/unix/love.desktop: platform/unix/love.desktop.in
|
||||
$(MKDIR_P) platform/unix
|
||||
rm -f $@ $@.tmp
|
||||
$(SED) \
|
||||
-e "s|@bindir[@]|$(bindir)|" \
|
||||
-e "s|@CMAKE_INSTALL_FULL_BINDIR[@]|$(bindir)|" \
|
||||
${srcdir}/$@.in > $@.tmp
|
||||
chmod a-w $@.tmp
|
||||
mv $@.tmp $@
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
Name=LÖVE
|
||||
Comment=The unquestionably awesome 2D game engine
|
||||
MimeType=application/x-love-game;
|
||||
Exec=@bindir@/love %f
|
||||
Exec=@CMAKE_INSTALL_FULL_BINDIR@/love %f
|
||||
Type=Application
|
||||
Categories=Development;Game;
|
||||
Terminal=false
|
||||
|
||||
Reference in New Issue
Block a user