added reaaly basic audio
This commit is contained in:
parent
46e26e41e5
commit
9bfcd5552e
8 changed files with 111 additions and 3 deletions
|
|
@ -35,6 +35,7 @@ if(ARCHEUS_STD_SDL)
|
|||
find_package(SDL2 REQUIRED)
|
||||
find_package(SDL2_image REQUIRED)
|
||||
find_package(SDL2_ttf REQUIRED)
|
||||
find_package(SDL2_mixer REQUIRED)
|
||||
|
||||
string(APPEND ARCHEUS_STD_FLAGS "-DARC_SDL ")
|
||||
endif()
|
||||
|
|
@ -75,6 +76,9 @@ set(ARCHEUS_STD_SOURCES
|
|||
)
|
||||
|
||||
set(ARCHEUS_STD_SDL_SOURCES
|
||||
src/audio/sdl/audio.c
|
||||
src/audio/sdl/config.c
|
||||
|
||||
src/input/sdl/keyboard.c
|
||||
src/input/sdl/mouse.c
|
||||
|
||||
|
|
@ -130,7 +134,7 @@ if(ARCHEUS_STD_SDL)
|
|||
PRIVATE ${SDL2IMAGE_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
target_link_libraries(archeus_std PUBLIC ${SDL2_LIBRARIES} SDL2_image::SDL2_image SDL2_ttf::SDL2_ttf)
|
||||
target_link_libraries(archeus_std PUBLIC ${SDL2_LIBRARIES} SDL2_image::SDL2_image SDL2_ttf::SDL2_ttf SDL2_mixer::SDL2_mixer)
|
||||
endif()
|
||||
|
||||
if(ARCHEUS_STD_OPENGL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue