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:
Bart van Strien
2023-12-31 12:56:38 +01:00
parent 0302e0f2ac
commit 84982ff4ef
3 changed files with 6 additions and 2 deletions
+4
View File
@@ -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()
+1 -1
View File
@@ -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 $@
+1 -1
View File
@@ -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