CMakeLists.txt
changeset 12258 231245d461a2
parent 12257 d7a3aac08fc1
child 12355 a46837d71c0a
equal deleted inserted replaced
12257:d7a3aac08fc1 12258:231245d461a2
  1563 #   [add dummy sources]
  1563 #   [add dummy sources]
  1564 # so it always adds a dummy, without checking, if it was actually requested.
  1564 # so it always adds a dummy, without checking, if it was actually requested.
  1565 # This leads to missing internal references on building, since the
  1565 # This leads to missing internal references on building, since the
  1566 # src/X/*.c does not get included.
  1566 # src/X/*.c does not get included.
  1567 if(NOT HAVE_SDL_JOYSTICK)
  1567 if(NOT HAVE_SDL_JOYSTICK)
  1568   set(SDL_JOYSTICK_DISABLED 1)
  1568   set(SDL_JOYSTICK_DUMMY 1)
  1569   if(SDL_JOYSTICK AND NOT APPLE) # results in unresolved symbols on OSX
  1569   if(SDL_JOYSTICK AND NOT APPLE) # results in unresolved symbols on OSX
  1570 
  1570 
  1571     file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/dummy/*.c)
  1571     file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/dummy/*.c)
  1572     set(SOURCE_FILES ${SOURCE_FILES} ${JOYSTICK_SOURCES})
  1572     set(SOURCE_FILES ${SOURCE_FILES} ${JOYSTICK_SOURCES})
  1573   endif()
  1573   endif()
  1574 endif()
  1574 endif()
  1575 if(NOT HAVE_SDL_HAPTIC)
  1575 if(NOT HAVE_SDL_HAPTIC)
  1576   set(SDL_HAPTIC_DISABLED 1)
  1576   set(SDL_HAPTIC_DUMMY 1)
  1577   file(GLOB HAPTIC_SOURCES ${SDL2_SOURCE_DIR}/src/haptic/dummy/*.c)
  1577   file(GLOB HAPTIC_SOURCES ${SDL2_SOURCE_DIR}/src/haptic/dummy/*.c)
  1578   set(SOURCE_FILES ${SOURCE_FILES} ${HAPTIC_SOURCES})
  1578   set(SOURCE_FILES ${SOURCE_FILES} ${HAPTIC_SOURCES})
       
  1579 endif()
       
  1580 if(NOT HAVE_SDL_SENSORS)
       
  1581   set(SDL_SENSOR_DUMMY 1)
       
  1582   file(GLOB SENSORS_SOURCES ${SDL2_SOURCE_DIR}/src/sensor/dummy/*.c)
       
  1583   set(SOURCE_FILES ${SOURCE_FILES} ${SENSORS_SOURCES})
  1579 endif()
  1584 endif()
  1580 if(NOT HAVE_SDL_LOADSO)
  1585 if(NOT HAVE_SDL_LOADSO)
  1581   set(SDL_LOADSO_DISABLED 1)
  1586   set(SDL_LOADSO_DISABLED 1)
  1582   file(GLOB LOADSO_SOURCES ${SDL2_SOURCE_DIR}/src/loadso/dummy/*.c)
  1587   file(GLOB LOADSO_SOURCES ${SDL2_SOURCE_DIR}/src/loadso/dummy/*.c)
  1583   set(SOURCE_FILES ${SOURCE_FILES} ${LOADSO_SOURCES})
  1588   set(SOURCE_FILES ${SOURCE_FILES} ${LOADSO_SOURCES})
  1584 endif()
  1589 endif()
  1585 if(NOT HAVE_SDL_FILESYSTEM)
  1590 if(NOT HAVE_SDL_FILESYSTEM)
  1586   set(SDL_FILESYSTEM_DISABLED 1)
  1591   set(SDL_FILESYSTEM_DISABLED 1)
  1587   file(GLOB FILESYSTEM_SOURCES ${SDL2_SOURCE_DIR}/src/filesystem/dummy/*.c)
  1592   file(GLOB FILESYSTEM_SOURCES ${SDL2_SOURCE_DIR}/src/filesystem/dummy/*.c)
  1588   set(SOURCE_FILES ${SOURCE_FILES} ${FILESYSTEM_SOURCES})
  1593   set(SOURCE_FILES ${SOURCE_FILES} ${FILESYSTEM_SOURCES})
  1589 endif()
       
  1590 if(NOT HAVE_SDL_SENSORS)
       
  1591   set(SDL_SENSOR_DISABLED 1)
       
  1592   file(GLOB SENSORS_SOURCES ${SDL2_SOURCE_DIR}/src/sensor/dummy/*.c)
       
  1593   set(SOURCE_FILES ${SOURCE_FILES} ${SENSORS_SOURCES})
       
  1594 endif()
  1594 endif()
  1595 
  1595 
  1596 # We always need to have threads and timers around
  1596 # We always need to have threads and timers around
  1597 if(NOT HAVE_SDL_THREADS)
  1597 if(NOT HAVE_SDL_THREADS)
  1598   set(SDL_THREADS_DISABLED 1)
  1598   set(SDL_THREADS_DISABLED 1)