...
 
Commits (5)
......@@ -37,6 +37,25 @@ pkg_search_module(JSONCPP REQUIRED jsoncpp)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y")
if (BUILD_TESTS)
# add 'make test' target, use 'make test ARGS="-V"' or 'ctest -V' for verbose
enable_testing()
endif(BUILD_TESTS)
find_package(Git)
if(GIT_FOUND AND EXISTS "${CMAKE_SOURCE_DIR}/.git")
execute_process(COMMAND ${GIT_EXECUTABLE} describe --tags --always HEAD
OUTPUT_VARIABLE GIT_REPO_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE)
execute_process(COMMAND ${GIT_EXECUTABLE} log -n 1 --pretty=%cd --date=format:%Y-%m-%d ${GIT_REPO_VERSION}
OUTPUT_VARIABLE GIT_REPO_DATE
OUTPUT_STRIP_TRAILING_WHITESPACE)
else()
set(GIT_REPO_VERSION "${PROJECT_VERSION}")
string(TIMESTAMP GIT_REPO_DATE "%Y-%m-%d")
endif()
if(WARNINGS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Wnon-virtual-dtor -Weffc++")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wold-style-cast -Wshadow -Wcast-qual -Wconversion")
......@@ -184,8 +203,6 @@ if(BUILD_TESTS)
target_include_directories(test_pingus PUBLIC src/ tests/)
target_link_libraries(test_pingus libpingus gtest gtest_main ${CMAKE_THREAD_LIBS_INIT})
# add 'make test' target, use 'make test ARGS="-V"' or 'ctest -V' for verbose
enable_testing()
add_test(NAME test_pingus
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND test_pingus)
......@@ -223,12 +240,18 @@ install(FILES
pingus.desktop
DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
install(FILES
pingus.appdata.xml
DESTINATION ${CMAKE_INSTALL_DATADIR}/metainfo)
install(FILES
data/images/icons/pingus.svg
DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps)
configure_file(pingus.appdata.xml.in ${CMAKE_CURRENT_BINARY_DIR}/pingus.appdata.xml)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pingus.appdata.xml
DESTINATION ${CMAKE_INSTALL_DATADIR}/metainfo)
if (BUILD_TESTS)
add_test(NAME pingus.appdata.xml
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND appstream-util validate-relax ${CMAKE_CURRENT_BINARY_DIR}/pingus.appdata.xml)
endif(BUILD_TESTS)
# EOF #
[![Build Status](https://travis-ci.org/Pingus/pingus.svg?branch=develop)](https://travis-ci.org/Pingus/pingus)
[![Coverity Status](https://scan.coverity.com/projects/5286/badge.svg)](https://scan.coverity.com/projects/5286)
Pingus
======
......@@ -17,7 +14,7 @@ from source on GNU/Linux and `INSTALL.macosx.md` for MacOSX.
Information about the game, new versions and additional documentation
can be found at the Pingus webpage:
* http://pingus.seul.org
* http://pingus.gitlab.io/
Mailing Lists
......
<?xml version="1.0" encoding="UTF-8"?>
<application>
<id type="desktop">pingus.desktop</id>
<name>Pingus</name>
<!-- Copyright 2018 Ingo Ruhnke <[email protected]> -->
<component type="desktop-application">
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0+</project_license>
<content_rating type="oars-1.1">
<content_attribute id="violence-cartoon">mild</content_attribute>
<content_attribute id="violence-bloodshed">mild</content_attribute>
<content_attribute id="language-profanity">mild</content_attribute>
<content_attribute id="language-humor">mild</content_attribute>
</content_rating>
<name>Pingus</name>
<summary>Guide groups of penguins through various obstacles</summary>
<description>
<p>
Pingus is a free Lemmings(tm) clone for GNU/Linux, Win32 and
other operating systems supported by SDL2. It is covered under
the GPL, check the file COPYING, for more information.
A 2d side scrolling puzzle game where you guide large groups of
little penguins through various obstacles and dangers using
their numerous talents.
</p>
<p>
A level editor is included to allow building your own levels and
numerous user contributed levels are included as well.
</p>
<p>
The game is heavily inspired by the classic Lemmings.
</p>
</description>
<developer_name>Ingo Ruhnke</developer_name>
<update_contact>[email protected]</update_contact>
<url type="homepage">https://pingus.gitlab.io</url>
<url type="bugtracker">https://gitlab.com/pingus/pingus/issues</url>
<categories>
<category>Game</category>
<category>LogicGame</category>
</categories>
<screenshots>
<screenshot type="default">http://pingus.gitlab.io/images/screen_0.7.0-1.jpg</screenshot>
<screenshot>http://pingus.gitlab.io/images/screen_0.7.0-2.jpg</screenshot>
......@@ -21,4 +40,7 @@
<screenshot>http://pingus.gitlab.io/images/screen_0.7.0-4.jpg</screenshot>
<screenshot>http://pingus.gitlab.io/images/screen_0.7.0-5.jpg</screenshot>
</screenshots>
</application>
<releases>
<release version="@[email protected]" date="@[email protected]" />
</releases>
</component>