mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2025-02-19 18:12:15 +00:00
deps: update xmp to 4.6.1
This commit is contained in:
parent
1197930d8e
commit
a2a8e0c7bd
7 changed files with 211 additions and 12 deletions
38
deps/xmp/include/xmp.h
vendored
38
deps/xmp/include/xmp.h
vendored
|
@ -1,39 +1,56 @@
|
|||
#ifndef XMP_H
|
||||
#define XMP_H
|
||||
|
||||
#if defined(EMSCRIPTEN)
|
||||
# include <emscripten.h>
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define XMP_VERSION "4.5.0"
|
||||
#define XMP_VERCODE 0x040500
|
||||
#define XMP_VERSION "4.6.1"
|
||||
#define XMP_VERCODE 0x040601
|
||||
#define XMP_VER_MAJOR 4
|
||||
#define XMP_VER_MINOR 5
|
||||
#define XMP_VER_RELEASE 0
|
||||
#define XMP_VER_MINOR 6
|
||||
#define XMP_VER_RELEASE 1
|
||||
|
||||
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||
# if defined(BUILDING_STATIC)
|
||||
# if defined(LIBXMP_STATIC)
|
||||
# define LIBXMP_EXPORT
|
||||
# elif defined(BUILDING_DLL)
|
||||
# define LIBXMP_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
# define LIBXMP_EXPORT __declspec(dllimport)
|
||||
# endif
|
||||
#elif defined(__OS2__) && defined(__WATCOMC__) && defined(__SW_BD)
|
||||
#elif defined(__OS2__) && defined(__WATCOMC__)
|
||||
# if defined(LIBXMP_STATIC)
|
||||
# define LIBXMP_EXPORT
|
||||
# elif defined(BUILDING_DLL)
|
||||
# define LIBXMP_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
# define LIBXMP_EXPORT
|
||||
# endif
|
||||
#elif (defined(__GNUC__) || defined(__clang__) || defined(__HP_cc)) && defined(XMP_SYM_VISIBILITY)
|
||||
# define LIBXMP_EXPORT __attribute__((visibility ("default")))
|
||||
# if defined(LIBXMP_STATIC)
|
||||
# define LIBXMP_EXPORT
|
||||
# else
|
||||
# define LIBXMP_EXPORT __attribute__((visibility("default")))
|
||||
# endif
|
||||
#elif defined(__SUNPRO_C) && defined(XMP_LDSCOPE_GLOBAL)
|
||||
# define LIBXMP_EXPORT __global
|
||||
# if defined(LIBXMP_STATIC)
|
||||
# define LIBXMP_EXPORT
|
||||
# else
|
||||
# define LIBXMP_EXPORT __global
|
||||
# endif
|
||||
#elif defined(EMSCRIPTEN)
|
||||
# include <emscripten.h>
|
||||
# define LIBXMP_EXPORT EMSCRIPTEN_KEEPALIVE
|
||||
# define LIBXMP_EXPORT_VAR
|
||||
#else
|
||||
# define LIBXMP_EXPORT
|
||||
#endif
|
||||
|
||||
#if !defined (LIBXMP_EXPORT_VAR)
|
||||
#if !defined(LIBXMP_EXPORT_VAR)
|
||||
# define LIBXMP_EXPORT_VAR LIBXMP_EXPORT
|
||||
#endif
|
||||
|
||||
|
@ -238,6 +255,7 @@ struct xmp_sample {
|
|||
#define XMP_SAMPLE_LOOP_FULL (1 << 4) /* Play full sample before looping */
|
||||
#define XMP_SAMPLE_SLOOP (1 << 5) /* Sample has sustain loop */
|
||||
#define XMP_SAMPLE_SLOOP_BIDIR (1 << 6) /* Bidirectional sustain loop */
|
||||
#define XMP_SAMPLE_STEREO (1 << 7) /* Interlaced stereo sample */
|
||||
#define XMP_SAMPLE_SYNTH (1 << 15) /* Data contains synth patch */
|
||||
int flg; /* Flags */
|
||||
unsigned char *data; /* Sample data */
|
||||
|
|
48
deps/xmp/lib/cmake/libxmp/libxmp-config-version.cmake
vendored
Normal file
48
deps/xmp/lib/cmake/libxmp/libxmp-config-version.cmake
vendored
Normal file
|
@ -0,0 +1,48 @@
|
|||
# This is a basic version file for the Config-mode of find_package().
|
||||
# It is used by write_basic_package_version_file() as input file for configure_file()
|
||||
# to create a version-file which can be installed along a config.cmake file.
|
||||
#
|
||||
# The created file sets PACKAGE_VERSION_EXACT if the current version string and
|
||||
# the requested version string are exactly the same and it sets
|
||||
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version.
|
||||
# The variable CVF_VERSION must be set before calling configure_file().
|
||||
|
||||
set(PACKAGE_VERSION "4.6.1")
|
||||
|
||||
if (PACKAGE_FIND_VERSION_RANGE)
|
||||
# Package version must be in the requested version range
|
||||
if ((PACKAGE_FIND_VERSION_RANGE_MIN STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MIN)
|
||||
OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_GREATER PACKAGE_FIND_VERSION_MAX)
|
||||
OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_GREATER_EQUAL PACKAGE_FIND_VERSION_MAX)))
|
||||
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
||||
else()
|
||||
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
||||
endif()
|
||||
else()
|
||||
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
|
||||
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
||||
else()
|
||||
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
||||
if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
|
||||
set(PACKAGE_VERSION_EXACT TRUE)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
# if the installed project requested no architecture check, don't perform the check
|
||||
if("FALSE")
|
||||
return()
|
||||
endif()
|
||||
|
||||
# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
|
||||
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "")
|
||||
return()
|
||||
endif()
|
||||
|
||||
# check that the installed version has the same 32/64bit-ness as the one which is currently searching:
|
||||
if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8")
|
||||
math(EXPR installedBits "8 * 8")
|
||||
set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
|
||||
set(PACKAGE_VERSION_UNSUITABLE TRUE)
|
||||
endif()
|
11
deps/xmp/lib/cmake/libxmp/libxmp-config.cmake
vendored
Normal file
11
deps/xmp/lib/cmake/libxmp/libxmp-config.cmake
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
set(libxmp_FOUND OFF)
|
||||
|
||||
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/libxmp-shared-targets.cmake")
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/libxmp-shared-targets.cmake")
|
||||
set(libxmp_FOUND ON)
|
||||
endif()
|
||||
|
||||
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/libxmp-static-targets.cmake")
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/libxmp-static-targets.cmake")
|
||||
set(libxmp_FOUND ON)
|
||||
endif()
|
19
deps/xmp/lib/cmake/libxmp/libxmp-static-targets-release.cmake
vendored
Normal file
19
deps/xmp/lib/cmake/libxmp/libxmp-static-targets-release.cmake
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
#----------------------------------------------------------------
|
||||
# Generated CMake target import file for configuration "Release".
|
||||
#----------------------------------------------------------------
|
||||
|
||||
# Commands may need to know the format version.
|
||||
set(CMAKE_IMPORT_FILE_VERSION 1)
|
||||
|
||||
# Import target "libxmp::xmp_static" for configuration "Release"
|
||||
set_property(TARGET libxmp::xmp_static APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
||||
set_target_properties(libxmp::xmp_static PROPERTIES
|
||||
IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "C"
|
||||
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libxmp.a"
|
||||
)
|
||||
|
||||
list(APPEND _cmake_import_check_targets libxmp::xmp_static )
|
||||
list(APPEND _cmake_import_check_files_for_libxmp::xmp_static "${_IMPORT_PREFIX}/lib/libxmp.a" )
|
||||
|
||||
# Commands beyond this point should not need to know the version.
|
||||
set(CMAKE_IMPORT_FILE_VERSION)
|
103
deps/xmp/lib/cmake/libxmp/libxmp-static-targets.cmake
vendored
Normal file
103
deps/xmp/lib/cmake/libxmp/libxmp-static-targets.cmake
vendored
Normal file
|
@ -0,0 +1,103 @@
|
|||
# Generated by CMake
|
||||
|
||||
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
|
||||
message(FATAL_ERROR "CMake >= 2.8.0 required")
|
||||
endif()
|
||||
if(CMAKE_VERSION VERSION_LESS "2.8.3")
|
||||
message(FATAL_ERROR "CMake >= 2.8.3 required")
|
||||
endif()
|
||||
cmake_policy(PUSH)
|
||||
cmake_policy(VERSION 2.8.3...3.23)
|
||||
#----------------------------------------------------------------
|
||||
# Generated CMake target import file.
|
||||
#----------------------------------------------------------------
|
||||
|
||||
# Commands may need to know the format version.
|
||||
set(CMAKE_IMPORT_FILE_VERSION 1)
|
||||
|
||||
# Protect against multiple inclusion, which would fail when already imported targets are added once more.
|
||||
set(_cmake_targets_defined "")
|
||||
set(_cmake_targets_not_defined "")
|
||||
set(_cmake_expected_targets "")
|
||||
foreach(_cmake_expected_target IN ITEMS libxmp::xmp_static)
|
||||
list(APPEND _cmake_expected_targets "${_cmake_expected_target}")
|
||||
if(TARGET "${_cmake_expected_target}")
|
||||
list(APPEND _cmake_targets_defined "${_cmake_expected_target}")
|
||||
else()
|
||||
list(APPEND _cmake_targets_not_defined "${_cmake_expected_target}")
|
||||
endif()
|
||||
endforeach()
|
||||
unset(_cmake_expected_target)
|
||||
if(_cmake_targets_defined STREQUAL _cmake_expected_targets)
|
||||
unset(_cmake_targets_defined)
|
||||
unset(_cmake_targets_not_defined)
|
||||
unset(_cmake_expected_targets)
|
||||
unset(CMAKE_IMPORT_FILE_VERSION)
|
||||
cmake_policy(POP)
|
||||
return()
|
||||
endif()
|
||||
if(NOT _cmake_targets_defined STREQUAL "")
|
||||
string(REPLACE ";" ", " _cmake_targets_defined_text "${_cmake_targets_defined}")
|
||||
string(REPLACE ";" ", " _cmake_targets_not_defined_text "${_cmake_targets_not_defined}")
|
||||
message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_cmake_targets_defined_text}\nTargets not yet defined: ${_cmake_targets_not_defined_text}\n")
|
||||
endif()
|
||||
unset(_cmake_targets_defined)
|
||||
unset(_cmake_targets_not_defined)
|
||||
unset(_cmake_expected_targets)
|
||||
|
||||
|
||||
# Compute the installation prefix relative to this file.
|
||||
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||
if(_IMPORT_PREFIX STREQUAL "/")
|
||||
set(_IMPORT_PREFIX "")
|
||||
endif()
|
||||
|
||||
# Create imported target libxmp::xmp_static
|
||||
add_library(libxmp::xmp_static STATIC IMPORTED)
|
||||
|
||||
set_target_properties(libxmp::xmp_static PROPERTIES
|
||||
INTERFACE_COMPILE_DEFINITIONS "LIBXMP_STATIC"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
|
||||
)
|
||||
|
||||
# Load information for each installed configuration.
|
||||
file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/libxmp-static-targets-*.cmake")
|
||||
foreach(_cmake_config_file IN LISTS _cmake_config_files)
|
||||
include("${_cmake_config_file}")
|
||||
endforeach()
|
||||
unset(_cmake_config_file)
|
||||
unset(_cmake_config_files)
|
||||
|
||||
# Cleanup temporary variables.
|
||||
set(_IMPORT_PREFIX)
|
||||
|
||||
# Loop over all imported files and verify that they actually exist
|
||||
foreach(_cmake_target IN LISTS _cmake_import_check_targets)
|
||||
foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
|
||||
if(NOT EXISTS "${_cmake_file}")
|
||||
message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
|
||||
\"${_cmake_file}\"
|
||||
but this file does not exist. Possible reasons include:
|
||||
* The file was deleted, renamed, or moved to another location.
|
||||
* An install or uninstall procedure did not complete successfully.
|
||||
* The installation package was faulty and contained
|
||||
\"${CMAKE_CURRENT_LIST_FILE}\"
|
||||
but not all the files it references.
|
||||
")
|
||||
endif()
|
||||
endforeach()
|
||||
unset(_cmake_file)
|
||||
unset("_cmake_import_check_files_for_${_cmake_target}")
|
||||
endforeach()
|
||||
unset(_cmake_target)
|
||||
unset(_cmake_import_check_targets)
|
||||
|
||||
# This file does not depend on other imported targets which have
|
||||
# been exported from the same project but in a separate export set.
|
||||
|
||||
# Commands beyond this point should not need to know the version.
|
||||
set(CMAKE_IMPORT_FILE_VERSION)
|
||||
cmake_policy(POP)
|
BIN
deps/xmp/lib/libxmp.a
vendored
BIN
deps/xmp/lib/libxmp.a
vendored
Binary file not shown.
4
deps/xmp/lib/pkgconfig/libxmp.pc
vendored
4
deps/xmp/lib/pkgconfig/libxmp.pc
vendored
|
@ -5,9 +5,9 @@ includedir=${prefix}/include
|
|||
|
||||
Name: libxmp
|
||||
Description: Xmp module player library
|
||||
Version: 4.5.0
|
||||
Version: 4.6.1
|
||||
|
||||
Requires:
|
||||
Libs: -L${libdir} -lxmp
|
||||
Cflags: -I${includedir}
|
||||
Libs.private: -lm
|
||||
Libs.private:
|
||||
|
|
Loading…
Reference in a new issue