prepared for debian packaging

main
martin 2010-12-02 19:56:55 +01:00
parent b622be72e8
commit cfedddcae0
9 changed files with 33 additions and 21 deletions

View File

@ -6,12 +6,14 @@ install_manifest.txt
debug
tags
Makefile
engine/libraries/oglft/liboglft/OGLFT.h
start
runtests
run_asteroids
config.rc
Debug/
./doc/html/*
*.log

View File

@ -1,10 +1,14 @@
PROJECT ( Asteroids )
PROJECT ( Asteroids CXX )
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
LIST( APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake )
# FIND_PACKAGE (Cal3D REQUIRED)
# Perform the proper linking
SET (CMAKE_SKIP_BUILD_RPATH FALSE)
SET (CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
SET (CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
SET (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
INCLUDE_DIRECTORIES (
engine/
@ -12,14 +16,10 @@ INCLUDE_DIRECTORIES (
include/
engine/libraries/mathlib/
engine/libraries/coll2d/include
engine/libraries/oglft/
engine/libraries/oglft/liboglft
${FREETYPE2_INCLUDE_DIR}
)
SET_TARGET_PROPERTIES ( ${PROJECT_EXECUTABLES} PROPERTIES
LINKER_LANGUAGE CXX
)
ADD_SUBDIRECTORY ( engine )
SET ( ASTEROIDS_SOURCES
@ -38,9 +38,17 @@ SET ( ASTEROIDS_SOURCES
asteroids/View.cc
)
ADD_EXECUTABLE ( run_asteroids ${ASTEROIDS_SOURCES} )
ADD_EXECUTABLE ( fysx_asteroids ${ASTEROIDS_SOURCES} )
TARGET_LINK_LIBRARIES ( run_asteroids
TARGET_LINK_LIBRARIES ( fysx_asteroids
Engine
oglft
)
SET ( DATA_DIR
data/
)
INSTALL (DIRECTORY ${DATA_DIR}
DESTINATION share/fysxasteroids
)

View File

@ -11,9 +11,9 @@ int Controller::OnInit (int argc, char *argv[]) {
mBindings[SDLK_q] = "quit";
mBindings[SDLK_v] = "+forward";
mBindings[SDLK_h] = "+turnleft";
mBindings[SDLK_g] = "+turnright";
mBindings[SDLK_UP] = "+forward";
mBindings[SDLK_LEFT] = "+turnleft";
mBindings[SDLK_RIGHT] = "+turnright";
mBindings[SDLK_SPACE] = "attack";

2
config.rc Normal file
View File

@ -0,0 +1,2 @@
set effects_volume 1
set music_volume 0.585938

4
depends.txt Normal file
View File

@ -0,0 +1,4 @@
This is a non-exhaustive list of packages you need to compile this game under
debian:
cmake, libsdl1.2-dev, libsdl-mixer1.2-dev, libfreetype6-dev, libpng12-dev, libboost1.42-dev, libboost-filesystem1.42-dev, libgl1-mesa-dev, libglu1-mesa-dev, mesa-common-dev

View File

@ -49,11 +49,7 @@ INCLUDE_DIRECTORIES (
${FREETYPE2_INCLUDE_DIR}
)
IF ( WIN32 )
ADD_LIBRARY ( Engine STATIC ${ENGINE_SRCS} )
ELSE ( WIN32 )
ADD_LIBRARY ( Engine SHARED ${ENGINE_SRCS} )
ENDIF ( WIN32 )
ADD_LIBRARY ( Engine STATIC ${ENGINE_SRCS} )
TARGET_LINK_LIBRARIES ( Engine
${SDL_LIBRARY}

View File

@ -17,5 +17,5 @@ SET_TARGET_PROPERTIES ( ${PROJECT_EXECUTABLES} PROPERTIES
SUBDIRS (tests)
ADD_LIBRARY ( coll2d SHARED ${COLL2D_SRCS} )
ADD_LIBRARY ( coll2d STATIC ${COLL2D_SRCS} )

View File

@ -6,4 +6,4 @@ SET ( SRCS
mathlib.cc
main.cc
)
ADD_LIBRARY ( mathlib SHARED mathlib.cc mathlib.h)
ADD_LIBRARY ( mathlib STATIC mathlib.cc mathlib.h)

View File

@ -16,7 +16,7 @@ INCLUDE_DIRECTORIES(
INCLUDE_DIRECTORIES( ${PROJECT_BINARY_DIR} )
CONFIGURE_FILE(
"${CMAKE_CURRENT_SOURCE_DIR}/OGLFT.h.cmake"
"${PROJECT_BINARY_DIR}/OGLFT.h"
"${CMAKE_CURRENT_SOURCE_DIR}/OGLFT.h"
)
IF( WIN32 )
@ -38,7 +38,7 @@ INSTALL(
)
INSTALL(
FILES "${PROJECT_BINARY_DIR}/OGLFT.h"
FILES "${CMAKE_CURRENT_SOURCE_DIR}/OGLFT.h"
DESTINATION include/OGLFT
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
COMPONENT headers