prepared for debian packaging
parent
b622be72e8
commit
cfedddcae0
|
@ -6,12 +6,14 @@ install_manifest.txt
|
||||||
debug
|
debug
|
||||||
tags
|
tags
|
||||||
Makefile
|
Makefile
|
||||||
|
engine/libraries/oglft/liboglft/OGLFT.h
|
||||||
|
|
||||||
start
|
start
|
||||||
runtests
|
runtests
|
||||||
run_asteroids
|
run_asteroids
|
||||||
config.rc
|
config.rc
|
||||||
|
|
||||||
|
Debug/
|
||||||
./doc/html/*
|
./doc/html/*
|
||||||
|
|
||||||
*.log
|
*.log
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
PROJECT ( Asteroids )
|
PROJECT ( Asteroids CXX )
|
||||||
|
|
||||||
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
|
||||||
|
|
||||||
LIST( APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake )
|
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 (
|
INCLUDE_DIRECTORIES (
|
||||||
engine/
|
engine/
|
||||||
|
@ -12,14 +16,10 @@ INCLUDE_DIRECTORIES (
|
||||||
include/
|
include/
|
||||||
engine/libraries/mathlib/
|
engine/libraries/mathlib/
|
||||||
engine/libraries/coll2d/include
|
engine/libraries/coll2d/include
|
||||||
engine/libraries/oglft/
|
engine/libraries/oglft/liboglft
|
||||||
${FREETYPE2_INCLUDE_DIR}
|
${FREETYPE2_INCLUDE_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
SET_TARGET_PROPERTIES ( ${PROJECT_EXECUTABLES} PROPERTIES
|
|
||||||
LINKER_LANGUAGE CXX
|
|
||||||
)
|
|
||||||
|
|
||||||
ADD_SUBDIRECTORY ( engine )
|
ADD_SUBDIRECTORY ( engine )
|
||||||
|
|
||||||
SET ( ASTEROIDS_SOURCES
|
SET ( ASTEROIDS_SOURCES
|
||||||
|
@ -38,9 +38,17 @@ SET ( ASTEROIDS_SOURCES
|
||||||
asteroids/View.cc
|
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
|
Engine
|
||||||
oglft
|
oglft
|
||||||
)
|
)
|
||||||
|
|
||||||
|
SET ( DATA_DIR
|
||||||
|
data/
|
||||||
|
)
|
||||||
|
|
||||||
|
INSTALL (DIRECTORY ${DATA_DIR}
|
||||||
|
DESTINATION share/fysxasteroids
|
||||||
|
)
|
||||||
|
|
|
@ -11,9 +11,9 @@ int Controller::OnInit (int argc, char *argv[]) {
|
||||||
|
|
||||||
mBindings[SDLK_q] = "quit";
|
mBindings[SDLK_q] = "quit";
|
||||||
|
|
||||||
mBindings[SDLK_v] = "+forward";
|
mBindings[SDLK_UP] = "+forward";
|
||||||
mBindings[SDLK_h] = "+turnleft";
|
mBindings[SDLK_LEFT] = "+turnleft";
|
||||||
mBindings[SDLK_g] = "+turnright";
|
mBindings[SDLK_RIGHT] = "+turnright";
|
||||||
|
|
||||||
mBindings[SDLK_SPACE] = "attack";
|
mBindings[SDLK_SPACE] = "attack";
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
@ -49,11 +49,7 @@ INCLUDE_DIRECTORIES (
|
||||||
${FREETYPE2_INCLUDE_DIR}
|
${FREETYPE2_INCLUDE_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
IF ( WIN32 )
|
|
||||||
ADD_LIBRARY ( Engine STATIC ${ENGINE_SRCS} )
|
ADD_LIBRARY ( Engine STATIC ${ENGINE_SRCS} )
|
||||||
ELSE ( WIN32 )
|
|
||||||
ADD_LIBRARY ( Engine SHARED ${ENGINE_SRCS} )
|
|
||||||
ENDIF ( WIN32 )
|
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES ( Engine
|
TARGET_LINK_LIBRARIES ( Engine
|
||||||
${SDL_LIBRARY}
|
${SDL_LIBRARY}
|
||||||
|
|
|
@ -17,5 +17,5 @@ SET_TARGET_PROPERTIES ( ${PROJECT_EXECUTABLES} PROPERTIES
|
||||||
|
|
||||||
SUBDIRS (tests)
|
SUBDIRS (tests)
|
||||||
|
|
||||||
ADD_LIBRARY ( coll2d SHARED ${COLL2D_SRCS} )
|
ADD_LIBRARY ( coll2d STATIC ${COLL2D_SRCS} )
|
||||||
|
|
||||||
|
|
|
@ -6,4 +6,4 @@ SET ( SRCS
|
||||||
mathlib.cc
|
mathlib.cc
|
||||||
main.cc
|
main.cc
|
||||||
)
|
)
|
||||||
ADD_LIBRARY ( mathlib SHARED mathlib.cc mathlib.h)
|
ADD_LIBRARY ( mathlib STATIC mathlib.cc mathlib.h)
|
||||||
|
|
|
@ -16,7 +16,7 @@ INCLUDE_DIRECTORIES(
|
||||||
INCLUDE_DIRECTORIES( ${PROJECT_BINARY_DIR} )
|
INCLUDE_DIRECTORIES( ${PROJECT_BINARY_DIR} )
|
||||||
CONFIGURE_FILE(
|
CONFIGURE_FILE(
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/OGLFT.h.cmake"
|
"${CMAKE_CURRENT_SOURCE_DIR}/OGLFT.h.cmake"
|
||||||
"${PROJECT_BINARY_DIR}/OGLFT.h"
|
"${CMAKE_CURRENT_SOURCE_DIR}/OGLFT.h"
|
||||||
)
|
)
|
||||||
|
|
||||||
IF( WIN32 )
|
IF( WIN32 )
|
||||||
|
@ -38,7 +38,7 @@ INSTALL(
|
||||||
)
|
)
|
||||||
|
|
||||||
INSTALL(
|
INSTALL(
|
||||||
FILES "${PROJECT_BINARY_DIR}/OGLFT.h"
|
FILES "${CMAKE_CURRENT_SOURCE_DIR}/OGLFT.h"
|
||||||
DESTINATION include/OGLFT
|
DESTINATION include/OGLFT
|
||||||
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
||||||
COMPONENT headers
|
COMPONENT headers
|
||||||
|
|
Loading…
Reference in New Issue