Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
The Story of Subsequent Tutorials and Dance Dance Revolutions Remastered Rocking the 4th
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
StarManiaKG
The Story of Subsequent Tutorials and Dance Dance Revolutions Remastered Rocking the 4th
Commits
210b513c
Commit
210b513c
authored
2 years ago
by
Eidolon
Browse files
Options
Downloads
Patches
Plain Diff
cmake: Add xmp-lite
This is a very lightweight module playback engine which will replace OpenMPT.
parent
25e3b423
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
thirdparty/CMakeLists.txt
+60
-0
60 additions, 0 deletions
thirdparty/CMakeLists.txt
with
60 additions
and
0 deletions
thirdparty/CMakeLists.txt
+
60
−
0
View file @
210b513c
...
...
@@ -605,4 +605,64 @@ if(DiscordRPC_ADDED)
endif
()
endif
()
CPMAddPackage
(
NAME xmp-lite
VERSION 4.5.0
URL
"https://github.com/libxmp/libxmp/releases/download/libxmp-4.5.0/libxmp-lite-4.5.0.tar.gz"
EXCLUDE_FROM_ALL ON
DOWNLOAD_ONLY ON
)
if
(
xmp-lite_ADDED
)
set
(
xmp_sources
virtual.c
format.c
period.c
player.c
read_event.c
misc.c
dataio.c
lfo.c
scan.c
control.c
filter.c
effects.c
mixer.c
mix_all.c
load_helpers.c
load.c
hio.c
smix.c
memio.c
win32.c
loaders/common.c
loaders/itsex.c
loaders/sample.c
loaders/xm_load.c
loaders/mod_load.c
loaders/s3m_load.c
loaders/it_load.c
)
list
(
TRANSFORM xmp_sources PREPEND
"
${
xmp-lite_SOURCE_DIR
}
/src/"
)
add_library
(
xmp-lite
"
${
SRB2_INTERNAL_LIBRARY_TYPE
}
"
${
xmp_sources
}
)
target_compile_definitions
(
xmp-lite PRIVATE -D_REENTRANT -DLIBXMP_CORE_PLAYER -DLIBXMP_NO_PROWIZARD -DLIBXMP_NO_DEPACKERS
)
if
(
"
${
SRB2_INTERNAL_LIBRARY_TYPE
}
"
STREQUAL
"STATIC"
)
if
(
WIN32
)
# BUILDING_STATIC has to be public to work around a bug in xmp.h
# which adds __declspec(dllimport) even when statically linking
target_compile_definitions
(
xmp-lite PUBLIC -DBUILDING_STATIC
)
else
()
target_compile_definitions
(
xmp-lite PRIVATE -DBUILDING_STATIC
)
endif
()
else
()
target_compile_definitions
(
xmp-lite PRIVATE -DBUILDING_DLL
)
endif
()
target_include_directories
(
xmp-lite PRIVATE
"
${
xmp-lite_SOURCE_DIR
}
/src"
)
target_include_directories
(
xmp-lite PUBLIC
"
${
xmp-lite_SOURCE_DIR
}
/include/libxmp-lite"
)
add_library
(
xmp-lite::xmp-lite ALIAS xmp-lite
)
endif
()
add_subdirectory
(
tcbrindle_span
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment