shithub: choc

Download patch

ref: 01991be296d303bf4c37903c3ce05fa9394c7690
parent: 35c999fa8678d6c9c03d97e34a378b466958c97a
author: David Carlier <devnexen@gmail.com>
date: Mon Oct 29 16:21:21 EDT 2018

cmake build fix

undefined references due to missing bits.

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -47,8 +47,10 @@
 find_package(m)
 
 include(CheckSymbolExists)
+include(CheckIncludeFile)
 check_symbol_exists(strcasecmp "strings.h" HAVE_DECL_STRCASECMP)
 check_symbol_exists(strncasecmp "strings.h" HAVE_DECL_STRNCASECMP)
+check_include_file("dirent.h" HAVE_DIRENT_H)
 
 string(CONCAT WINDOWS_RC_VERSION "${PROJECT_VERSION_MAJOR}, "
     "${PROJECT_VERSION_MINOR}, ${PROJECT_VERSION_PATCH}, 0")
--- a/cmake/config.h.cin
+++ b/cmake/config.h.cin
@@ -6,5 +6,6 @@
 
 #cmakedefine HAVE_LIBSAMPLERATE
 #cmakedefine HAVE_LIBPNG
+#cmakedefine HAVE_DIRENT_H
 #cmakedefine01 HAVE_DECL_STRCASECMP
 #cmakedefine01 HAVE_DECL_STRNCASECMP
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -46,10 +46,12 @@
     gusconf.c           gusconf.h
     i_cdmus.c           i_cdmus.h
     i_endoom.c          i_endoom.h
+    i_glob.c            i_glob.h
     i_input.c           i_input.h
     i_joystick.c        i_joystick.h
                         i_swap.h
     i_midipipe.c        i_midipipe.h
+    i_musicpack.c
     i_oplmusic.c
     i_pcsound.c
     i_sdlmusic.c