mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-14 00:21:38 +00:00
2cbe211e7c
The EDuke32 and RedNukem frontends are working, Blood isn't yet. Notes: many of the CMake variables and its output still refer to zdoom. Before changing that I wanted to make sure to be able to commit something that works. support code for Windows XP has been entirely removed. On Windows this will only target Vista and up. the crc32.h header had to be renamed to deconflict from zlib. several Windows API calls were changed to call the A-versions directly. Weirdly enough there were places that defined their parameters as T types but in a non-working way. removed some remaining editor files and support for the native software rendering only Windows backend. in a few simple cases, replaced 'char' with 'uint8_t'. The code as-is depends on chars being unsigned which is non-portable. This needs to be carefully reviewed.
28 lines
918 B
CMake
28 lines
918 B
CMake
# - Find mpg123
|
|
# Find the native mpg123 includes and library
|
|
#
|
|
# MPG123_INCLUDE_DIR - where to find mpg123.h
|
|
# MPG123_LIBRARIES - List of libraries when using mpg123.
|
|
# MPG123_FOUND - True if mpg123 found.
|
|
|
|
IF(MPG123_INCLUDE_DIR AND MPG123_LIBRARIES)
|
|
# Already in cache, be silent
|
|
SET(MPG123_FIND_QUIETLY TRUE)
|
|
ENDIF(MPG123_INCLUDE_DIR AND MPG123_LIBRARIES)
|
|
|
|
FIND_PATH(MPG123_INCLUDE_DIR mpg123.h
|
|
PATHS "${MPG123_DIR}"
|
|
PATH_SUFFIXES include
|
|
)
|
|
|
|
FIND_LIBRARY(MPG123_LIBRARIES NAMES mpg123 mpg123-0
|
|
PATHS "${MPG123_DIR}"
|
|
PATH_SUFFIXES lib
|
|
)
|
|
|
|
# MARK_AS_ADVANCED(MPG123_LIBRARIES MPG123_INCLUDE_DIR)
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set MPG123_FOUND to TRUE if
|
|
# all listed variables are TRUE
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(MPG123 DEFAULT_MSG MPG123_LIBRARIES MPG123_INCLUDE_DIR)
|