kobodl/sound/CMakeLists.txt
Ville Lindholm 9eaf27b297
Migrate build system from autotools to CMake
Replace configure.in + 7 Makefile.am files with a CMake build:
- Top-level CMakeLists.txt with feature detection (SDL 1.2,
  SDL_image, OpenGL, optional OSS/ALSA), platform-specific install
  layouts (macOS .app bundle, Windows simple bundle, Unix), and a
  shared kobo_deps INTERFACE target for flags and link libraries.
- Sub-CMakeLists for graphics/, sound/, eel/ static libraries.
- aconfig.h.cmake.in and Info.plist.cmake.in templates (minimal:
  only the HAVE_* macros actually referenced by the code).

Remove all autotools machinery: configure, configure.in, aclocal.m4,
Makefile.am files, generated Makefile.in files, install-sh, missing,
depcomp, compile, mkinstalldirs, config.guess, config.sub, the
buildpkg.sh Solaris helper, and the cfg-* configure shortcuts.

Update .gitignore for CMake out-of-tree builds, and point
run-kobodl.sh at build/kobodl (overridable via KOBODL_BIN).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-05-28 21:08:58 +03:00

38 lines
625 B
CMake

add_library(sound STATIC
audio.c
a_globals.c
a_struct.c
audiodev.c
a_midi.c
sfifo.c
a_pitch.c
a_midisock.c
a_wave.c
a_patch.c
a_channel.c
a_voice.c
a_bus.c
a_commands.c
a_control.c
a_midicon.c
a_midifile.c
a_plugin.c
a_delay.c
a_limiter.c
a_filters.c
a_wca.c
a_agw.c
a_sequencer.c
a_events.c
)
target_include_directories(sound
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
PRIVATE
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/eel
${CMAKE_SOURCE_DIR}/graphics
)
target_link_libraries(sound PUBLIC kobo_deps)