-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial revision of unit test system; currently does not compile
- Loading branch information
Josh Glover
committed
Mar 17, 2010
1 parent
253810e
commit 1a8bf21
Showing
9 changed files
with
124 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ set(ADONTHELL_MODULES | |
rpg | ||
main | ||
world | ||
test | ||
) | ||
|
||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Add the current directory as include source. | ||
include_directories( | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
) | ||
|
||
|
||
# Define the Adonthell libraries | ||
set(ADONTHELL_MODULES | ||
audio | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# -- this order is important, as we build with -no-undefined | ||
SUBDIRS = audio | ||
|
||
EXTRA_DIST = CMakeLists.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Define the adonthell_audio_SRCS variable containing all required files. | ||
set(adonthell_audio_SRCS | ||
audio.cc | ||
sound.cc | ||
audio_event.cc | ||
audio_event_manager.cc | ||
audio_manager.cc | ||
) | ||
|
||
set(adonthell_audio_HEADERS | ||
audio_event.h | ||
audio_event_manager.h | ||
audio_manager.h | ||
audio.h | ||
sound.h | ||
) | ||
|
||
# Add specific include directory for this library. | ||
include_directories(${PYTHON_INCLUDE_PATH}) | ||
|
||
# Create a shared library | ||
add_library(adonthell_audio SHARED ${adonthell_audio_SRCS}) | ||
|
||
target_link_libraries(adonthell_audio | ||
${PYTHON_LIBRARIES} | ||
adonthell_base | ||
adonthell_event | ||
) | ||
|
||
################################ | ||
# Create the SDL Backend | ||
set(audio_sdl_SRCS | ||
sdl/audio_sdl.cc | ||
) | ||
|
||
# Add specific include directory for this library. | ||
include_directories(${SDL_INCLUDE_DIR} ${SDLMIXER_INCLUDE_DIR}) | ||
|
||
|
||
add_library(audio-backend-sdl MODULE ${audio_sdl_SRCS}) | ||
target_link_libraries(audio-backend-sdl | ||
${SDL_LIBRARY} | ||
${SDLMIXER_LIBRARY} | ||
adonthell_audio | ||
) | ||
set_target_properties(audio-backend-sdl PROPERTIES PREFIX "_" OUTPUT_NAME "sdl") | ||
|
||
|
||
############################################# | ||
# Install Stuff | ||
adonthell_install_lib(adonthell_audio) | ||
adonthell_install_include(audio "${adonthell_audio_HEADERS}") | ||
adonthell_install_backend(audio audio-backend-sdl) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
AM_CXXFLAGS = -I$(top_srcdir)/src | ||
DEFAULT_INCLUDES = -I$(srcdir) -I$(top_builddir) | ||
EXTRA_DIST = CMakeLists.txt | ||
|
||
## Our header files | ||
pkgincludeaudiodir = $(pkgincludedir)/audio | ||
pkgincludeaudio_HEADERS = \ | ||
audio.h \ | ||
audio_event.h \ | ||
audio_event_manager.h \ | ||
audio_manager.h \ | ||
sound.h | ||
|
||
## Main library | ||
lib_LTLIBRARIES = libadonthell_audio.la | ||
|
||
libadonthell_audio_la_SOURCES = \ | ||
audio.cc \ | ||
sound.cc \ | ||
audio_event.cc \ | ||
audio_event_manager.cc \ | ||
audio_manager.cc | ||
|
||
libadonthell_audio_la_CXXFLAGS = $(PY_CFLAGS) -DPKGLIBDIR=\"$(pkglibdir)\" $(AM_CXXFLAGS) | ||
libadonthell_audio_la_LIBADD = $(PY_LIBS) -lltdl -lstdc++ \ | ||
-L$(top_builddir)/src/base/ -ladonthell_base \ | ||
-L$(top_builddir)/src/event/ -ladonthell_event | ||
|
||
|
||
|
||
###### Following definitions are for the backends | ||
pkglibaudiodir = $(pkglibdir)/audio | ||
pkglibaudio_LTLIBRARIES = _sdl.la | ||
|
||
### SDL backend | ||
## Our header files | ||
pkgincludeaudiosdldir = $(pkgincludedir)/audio/sdl | ||
|
||
## Rules to build libaudio_sdl | ||
_sdl_la_SOURCES = \ | ||
sdl/audio_sdl.cc | ||
|
||
_sdl_la_CXXFLAGS = $(SDL_CFLAGS) $(AM_CXXFLAGS) | ||
_sdl_la_LDFLAGS = -avoid-version -module | ||
_sdl_la_LIBADD = $(SDL_LIBS) -lSDL_mixer -ladonthell_audio -lstdc++ | ||
|
||
## define dependencies in case of parallel build | ||
_sdl_la_DEPENDENCIES = libadonthell_audio.la | ||
|