)
+set(LUGARU_OBJS "")
if(WIN32)
- add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lugaru_resource.obj
+ add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Lugaru.res
COMMAND ${CMAKE_RC_COMPILER}
- -o ${CMAKE_CURRENT_BINARY_DIR}/lugaru_resource.obj
+ -o ${CMAKE_CURRENT_BINARY_DIR}/Lugaru.res
-i${SRCDIR}/Lugaru.rc
DEPENDS ${SRCDIR}/Lugaru.rc
)
+ set(LUGARU_OBJS "Lugaru.res")
endif(WIN32)
if(APPLE)
### Definitions
-if(WIN32)
- add_executable(lugaru ${LUGARU_SRCS} ${LUGARU_H} lugaru_resource.obj)
-else(WIN32)
- add_executable(lugaru ${LUGARU_SRCS} ${LUGARU_H})
-endif(WIN32)
-
+add_executable(lugaru ${LUGARU_SRCS} ${LUGARU_H} ${LUGARU_OBJS})
target_link_libraries(lugaru ${LUGARU_LIBS})
if(WIN32)
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/lugaru DESTINATION ${CMAKE_INSTALL_BINDIR})
# Trailing '/' is significant, it installs and _renames_ Data/ as the destination folder
install(DIRECTORY ${CMAKE_SOURCE_DIR}/Data/ DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME})
- install(FILES ${CMAKE_SOURCE_DIR}/Dist/lugaru.appdata.xml DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/appdata)
- install(FILES ${CMAKE_SOURCE_DIR}/Dist/lugaru.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications)
- install(FILES ${CMAKE_SOURCE_DIR}/Dist/lugaru.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/128x128/apps)
- install(FILES ${CMAKE_SOURCE_DIR}/Dist/lugaru.6 DESTINATION ${CMAKE_INSTALL_MANDIR}/man6)
+ install(FILES ${CMAKE_SOURCE_DIR}/Dist/Linux/lugaru.appdata.xml DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/appdata)
+ install(FILES ${CMAKE_SOURCE_DIR}/Dist/Linux/lugaru.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications)
+ install(FILES ${CMAKE_SOURCE_DIR}/Dist/Linux/lugaru.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/128x128/apps)
+ install(FILES ${CMAKE_SOURCE_DIR}/Dist/Linux/lugaru.6 DESTINATION ${CMAKE_INSTALL_MANDIR}/man6)
else(SYSTEM_INSTALL)
message("You are building Lugaru without having enabled the SYSTEM_INSTALL option. It will default to looking for the data in the 'Data' directory next to the binary.")
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/lugaru DESTINATION ${CMAKE_INSTALL_PREFIX})
--- /dev/null
+.\" Process this file with: groff -man -Tlatin1 lugaru.6
+.\" Please report any issue with this man page at
+.\" https://gitlab.com/osslugaru/lugaru/issues
+.TH LUGARU 6 "December 2016" Linux
+.SH NAME
+Lugaru \- free and open source ninja rabbit fighting game
+.SH DESCRIPTION
+Lugaru (pronounced Loo-GAH-roo) is a cross-platform third-person action game.
+The main character, Turner, is an anthropomorphic rebel bunny rabbit with
+impressive combat skills. In his quest to find those responsible for
+slaughtering his village, he uncovers a far-reaching conspiracy involving the
+corrupt leaders of the rabbit republic and the starving wolves from a nearby
+den. Turner takes it upon himself to fight against their plot and save his
+fellow rabbits from slavery.
+.SH SYNOPSIS
+.B lugaru
+.RI [ options ]
+.SH OPTIONS
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+Print usage and exit.
+.TP
+\fB\-f\fR, \fB\-\-fullscreen\fR
+Start the game in fullscreen mode.
+.TP
+\fB\-w\fR, \fB\-\-windowed\fR
+Start the game in windowed mode (default).
+.TP
+\fB\-\-nomousegrab\fR
+Disable mousegrab.
+.TP
+\fB\-\-mousegrab\fR
+Enable mousegrab (default).
+.TP
+\fB\-\-nosound\fR
+Disable sound.
+.TP
+\fB\-\-force\-alsa\fR
+Force use of ALSA back\-end.
+.TP
+\fB\-\-force\-oss\fR
+Force use of OSS back\-end.
+.TP
+\fB\-\-openal\-info\fR
+Print info about OpenAL at launch.
+.TP
+\fB\-\-showresolutions\fR
+List the resolutions found by SDL at launch.
+.TP
+\fB\-d\fR, \fB\-\-devtools\fR
+Enable dev tools: console, level editor and debug info.
+.SH FILES
+XDG_CONFIG_HOME/lugaru/ or ~/.config/lugaru/
+.RS
+User-specific configuration folder, contains the config.txt file.
+.RE
+XDG_DATA_HOME/lugaru/ or ~/.local/share/lugaru/
+.RS
+User-specific data folder, contains saved user progress, screenshots and saved
+maps.
+.RE
+/usr/share/doc/lugaru/
+.RS
+Additional documentation files and licensing information.
+.RE
+.SH "SEE ALSO"
+See the project website at \fIhttps://osslugaru.gitlab.io/\fR and the source
+code repository at \fIhttps://gitlab.com/osslugaru/lugaru\fR for more details.
+.SH BUGS
+Lugaru is a free and open source game and welcomes any kind of contributions.
+In particular, you can report issues or make suggestions on Lugaru's issue
+tracker at \fIhttps://gitlab.com/osslugaru/lugaru/issues\fR.
+.SH AUTHOR
+Man page written by Rémi Verschelde <remi@verschelde.fr> on behalf of the
+OSS Lugaru development team.
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2016 Neal Gompa <ngompa13@gmail.com> -->
+<component type="desktop">
+ <id>lugaru.desktop</id>
+ <metadata_license>CC-BY-SA-4.0</metadata_license>
+ <project_license>GPL-2.0+ and CC-BY-SA-3.0</project_license>
+ <name>Lugaru HD</name>
+ <summary>Third person ninja rabbit fighting game</summary>
+ <description>
+ <p>
+ Lugaru (pronounced Loo-GAH-roo) is a cross-platform third-person action game.
+ The main character, Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
+ </p>
+
+ <p>
+ In his quest to find those responsible for slaughtering his village,
+ he uncovers a far-reaching conspiracy involving the corrupt leaders
+ of the rabbit republic and the starving wolves from a nearby den.
+ Turner takes it upon himself to fight against their plot and save
+ his fellow rabbits from slavery.
+ </p>
+ </description>
+ <screenshots>
+ <screenshot type="default" width="864" height="417">
+ https://osslugaru.gitlab.io/images/lugaru-banner.png
+ </screenshot>
+ </screenshots>
+ <url type="homepage">https://osslugaru.gitlab.io/</url>
+ <update_contact>ngompa13_at_gmail.com</update_contact>
+</component>
+
--- /dev/null
+[Desktop Entry]
+Name=Lugaru HD
+GenericName=Fighting game
+Comment=Third person ninja rabbit fighting game
+Exec=lugaru
+Icon=lugaru
+Terminal=false
+Type=Application
+Categories=Game;ActionGame;
+++ /dev/null
-.\" Process this file with: groff -man -Tlatin1 lugaru.6
-.\" Please report any issue with this man page at
-.\" https://gitlab.com/osslugaru/lugaru/issues
-.TH LUGARU 6 "December 2016" Linux
-.SH NAME
-Lugaru \- free and open source ninja rabbit fighting game
-.SH DESCRIPTION
-Lugaru (pronounced Loo-GAH-roo) is a cross-platform third-person action game.
-The main character, Turner, is an anthropomorphic rebel bunny rabbit with
-impressive combat skills. In his quest to find those responsible for
-slaughtering his village, he uncovers a far-reaching conspiracy involving the
-corrupt leaders of the rabbit republic and the starving wolves from a nearby
-den. Turner takes it upon himself to fight against their plot and save his
-fellow rabbits from slavery.
-.SH SYNOPSIS
-.B lugaru
-.RI [ options ]
-.SH OPTIONS
-.TP
-\fB\-h\fR, \fB\-\-help\fR
-Print usage and exit.
-.TP
-\fB\-f\fR, \fB\-\-fullscreen\fR
-Start the game in fullscreen mode.
-.TP
-\fB\-w\fR, \fB\-\-windowed\fR
-Start the game in windowed mode (default).
-.TP
-\fB\-\-nomousegrab\fR
-Disable mousegrab.
-.TP
-\fB\-\-mousegrab\fR
-Enable mousegrab (default).
-.TP
-\fB\-\-nosound\fR
-Disable sound.
-.TP
-\fB\-\-force\-alsa\fR
-Force use of ALSA back\-end.
-.TP
-\fB\-\-force\-oss\fR
-Force use of OSS back\-end.
-.TP
-\fB\-\-openal\-info\fR
-Print info about OpenAL at launch.
-.TP
-\fB\-\-showresolutions\fR
-List the resolutions found by SDL at launch.
-.TP
-\fB\-d\fR, \fB\-\-devtools\fR
-Enable dev tools: console, level editor and debug info.
-.SH FILES
-XDG_CONFIG_HOME/lugaru/ or ~/.config/lugaru/
-.RS
-User-specific configuration folder, contains the config.txt file.
-.RE
-XDG_DATA_HOME/lugaru/ or ~/.local/share/lugaru/
-.RS
-User-specific data folder, contains saved user progress, screenshots and saved
-maps.
-.RE
-/usr/share/doc/lugaru/
-.RS
-Additional documentation files and licensing information.
-.RE
-.SH "SEE ALSO"
-See the project website at \fIhttps://osslugaru.gitlab.io/\fR and the source
-code repository at \fIhttps://gitlab.com/osslugaru/lugaru\fR for more details.
-.SH BUGS
-Lugaru is a free and open source game and welcomes any kind of contributions.
-In particular, you can report issues or make suggestions on Lugaru's issue
-tracker at \fIhttps://gitlab.com/osslugaru/lugaru/issues\fR.
-.SH AUTHOR
-Man page written by Rémi Verschelde <remi@verschelde.fr> on behalf of the
-OSS Lugaru development team.
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- Copyright 2016 Neal Gompa <ngompa13@gmail.com> -->
-<component type="desktop">
- <id>lugaru.desktop</id>
- <metadata_license>CC-BY-SA-4.0</metadata_license>
- <project_license>GPL-2.0+ and CC-BY-SA-3.0</project_license>
- <name>Lugaru HD</name>
- <summary>Third person ninja rabbit fighting game</summary>
- <description>
- <p>
- Lugaru (pronounced Loo-GAH-roo) is a cross-platform third-person action game.
- The main character, Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
- </p>
-
- <p>
- In his quest to find those responsible for slaughtering his village,
- he uncovers a far-reaching conspiracy involving the corrupt leaders
- of the rabbit republic and the starving wolves from a nearby den.
- Turner takes it upon himself to fight against their plot and save
- his fellow rabbits from slavery.
- </p>
- </description>
- <screenshots>
- <screenshot type="default" width="864" height="417">
- https://osslugaru.gitlab.io/images/lugaru-banner.png
- </screenshot>
- </screenshots>
- <url type="homepage">https://osslugaru.gitlab.io/</url>
- <update_contact>ngompa13_at_gmail.com</update_contact>
-</component>
-
+++ /dev/null
-[Desktop Entry]
-Name=Lugaru HD
-GenericName=Fighting game
-Comment=Third person ninja rabbit fighting game
-Exec=lugaru
-Icon=lugaru
-Terminal=false
-Type=Application
-Categories=Game;ActionGame;
along with Lugaru. If not, see <http://www.gnu.org/licenses/>.
*/
-LUGARU_ICON ICON "../Dist/lugaru.ico"
+LUGARU_ICON ICON "../Dist/Windows/Lugaru.ico"
// TODO: Add version info