mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Remove mpg123 reference from build system.
TODO: macOS/iOS xcodeproj
This commit is contained in:
+1
-1
@@ -97,7 +97,7 @@ LOCAL_SRC_FILES := \
|
|||||||
))
|
))
|
||||||
|
|
||||||
LOCAL_CXXFLAGS := -std=c++11
|
LOCAL_CXXFLAGS := -std=c++11
|
||||||
LOCAL_SHARED_LIBRARIES := libopenal libmpg123
|
LOCAL_SHARED_LIBRARIES := libopenal
|
||||||
LOCAL_STATIC_LIBRARIES := libvorbis libogg libtheora libmodplug libfreetype libluajit SDL2_static
|
LOCAL_STATIC_LIBRARIES := libvorbis libogg libtheora libmodplug libfreetype libluajit SDL2_static
|
||||||
|
|
||||||
# $(info liblove: include dirs $(LOCAL_C_INCLUDES))
|
# $(info liblove: include dirs $(LOCAL_C_INCLUDES))
|
||||||
|
|||||||
+13
-37
@@ -49,7 +49,6 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(LOVE_JIT "Use LuaJIT" TRUE)
|
option(LOVE_JIT "Use LuaJIT" TRUE)
|
||||||
option(LOVE_MPG123 "Use mpg123" TRUE)
|
|
||||||
|
|
||||||
if(LOVE_JIT)
|
if(LOVE_JIT)
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
@@ -60,10 +59,6 @@ else()
|
|||||||
message(STATUS "LuaJIT: Disabled")
|
message(STATUS "LuaJIT: Disabled")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT LOVE_MPG123)
|
|
||||||
add_definitions(-DLOVE_NOMPG123)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
message(STATUS "Target platform: ${LOVE_TARGET_PLATFORM}")
|
message(STATUS "Target platform: ${LOVE_TARGET_PLATFORM}")
|
||||||
|
|
||||||
if(POLICY CMP0072)
|
if(POLICY CMP0072)
|
||||||
@@ -118,17 +113,6 @@ if(MEGA)
|
|||||||
${MEGA_OPENAL}
|
${MEGA_OPENAL}
|
||||||
)
|
)
|
||||||
|
|
||||||
if(LOVE_MPG123)
|
|
||||||
set(LOVE_LINK_LIBRARIES
|
|
||||||
${LOVE_LINK_LIBRARIES}
|
|
||||||
${MEGA_MPEG123}
|
|
||||||
)
|
|
||||||
set(LOVE_MOVE_DLLS
|
|
||||||
${LOVE_MOVE_DLLS}
|
|
||||||
${MEGA_MPEG123}
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(LOVE_JIT)
|
if(LOVE_JIT)
|
||||||
set(LOVE_LUA_LIBRARY ${MEGA_LUAJIT_LIB})
|
set(LOVE_LUA_LIBRARY ${MEGA_LUAJIT_LIB})
|
||||||
# LOVE_EXTRA_DLLS are non-runtime DLLs which should be bundled with the
|
# LOVE_EXTRA_DLLS are non-runtime DLLs which should be bundled with the
|
||||||
@@ -209,18 +193,6 @@ Please see http://bitbucket.org/rude/megasource
|
|||||||
${ZLIB_LIBRARY}
|
${ZLIB_LIBRARY}
|
||||||
)
|
)
|
||||||
|
|
||||||
if(LOVE_MPG123)
|
|
||||||
find_package(MPG123 REQUIRED)
|
|
||||||
set(LOVE_LINK_LIBRARIES
|
|
||||||
${LOVE_LINK_LIBRARIES}
|
|
||||||
${MPG123_LIBRARY}
|
|
||||||
)
|
|
||||||
set(LOVE_INCLUDE_DIRS
|
|
||||||
${LOVE_INCLUDE_DIRS}
|
|
||||||
${MPG123_INCLUDE_DIR}
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(LOVE_JIT)
|
if(LOVE_JIT)
|
||||||
find_package(LuaJIT REQUIRED)
|
find_package(LuaJIT REQUIRED)
|
||||||
set(LOVE_LUA_LIBRARY ${LUAJIT_LIBRARY})
|
set(LOVE_LUA_LIBRARY ${LUAJIT_LIBRARY})
|
||||||
@@ -921,6 +893,8 @@ set(LOVE_SRC_MODULE_SOUND_LULLABY
|
|||||||
src/modules/sound/lullaby/GmeDecoder.h
|
src/modules/sound/lullaby/GmeDecoder.h
|
||||||
src/modules/sound/lullaby/ModPlugDecoder.cpp
|
src/modules/sound/lullaby/ModPlugDecoder.cpp
|
||||||
src/modules/sound/lullaby/ModPlugDecoder.h
|
src/modules/sound/lullaby/ModPlugDecoder.h
|
||||||
|
src/modules/sound/lullaby/MP3Decoder.h
|
||||||
|
src/modules/sound/lullaby/MP3Decoder.cpp
|
||||||
src/modules/sound/lullaby/Sound.cpp
|
src/modules/sound/lullaby/Sound.cpp
|
||||||
src/modules/sound/lullaby/Sound.h
|
src/modules/sound/lullaby/Sound.h
|
||||||
src/modules/sound/lullaby/VorbisDecoder.cpp
|
src/modules/sound/lullaby/VorbisDecoder.cpp
|
||||||
@@ -929,14 +903,6 @@ set(LOVE_SRC_MODULE_SOUND_LULLABY
|
|||||||
src/modules/sound/lullaby/WaveDecoder.h
|
src/modules/sound/lullaby/WaveDecoder.h
|
||||||
)
|
)
|
||||||
|
|
||||||
if(LOVE_MPG123)
|
|
||||||
set(LOVE_SRC_MODULE_SOUND_LULLABY
|
|
||||||
${LOVE_SRC_MODULE_SOUND_LULLABY}
|
|
||||||
src/modules/sound/lullaby/Mpg123Decoder.cpp
|
|
||||||
src/modules/sound/lullaby/Mpg123Decoder.h
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(LOVE_SRC_MODULE_SOUND
|
set(LOVE_SRC_MODULE_SOUND
|
||||||
${LOVE_SRC_MODULE_SOUND_ROOT}
|
${LOVE_SRC_MODULE_SOUND_ROOT}
|
||||||
${LOVE_SRC_MODULE_SOUND_LULLABY}
|
${LOVE_SRC_MODULE_SOUND_LULLABY}
|
||||||
@@ -1252,11 +1218,21 @@ add_library(love_3p_ddsparse ${LOVE_SRC_3P_DDSPARSE})
|
|||||||
#
|
#
|
||||||
|
|
||||||
set(LOVE_SRC_3P_DRFLAC
|
set(LOVE_SRC_3P_DRFLAC
|
||||||
src/libraries/dr_flac/dr_flac.h
|
src/libraries/dr/dr_flac.h
|
||||||
)
|
)
|
||||||
|
|
||||||
# dr_flac has no implementation files of its own.
|
# dr_flac has no implementation files of its own.
|
||||||
|
|
||||||
|
#
|
||||||
|
# dr_mp3
|
||||||
|
#
|
||||||
|
|
||||||
|
set(LOVE_SRC_3P_DRMP3
|
||||||
|
src/libraries/dr/dr_mp3.h
|
||||||
|
)
|
||||||
|
|
||||||
|
# dr_mp3 has no implementation files of its own.
|
||||||
|
|
||||||
#
|
#
|
||||||
# enet
|
# enet
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -55,7 +55,6 @@ with_clean_luaversion=`printf ${with_luaversion} | sed 's/\.//g'`
|
|||||||
m4_include([configure-modules-pre.ac])
|
m4_include([configure-modules-pre.ac])
|
||||||
|
|
||||||
# Other features that can be enabled/disabled
|
# Other features that can be enabled/disabled
|
||||||
AC_ARG_ENABLE([mpg123], AC_HELP_STRING([--disable-mpg123], [Disable mp3 support, for patent-free builds]), [], [enable_mpg123=yes])
|
|
||||||
AC_ARG_ENABLE([gme], AC_HELP_STRING([--enable-gme], [Enable GME support, for more chiptuney goodness]), [], [enable_gme=no])
|
AC_ARG_ENABLE([gme], AC_HELP_STRING([--enable-gme], [Enable GME support, for more chiptuney goodness]), [], [enable_gme=no])
|
||||||
|
|
||||||
# Dependencies we always use
|
# Dependencies we always use
|
||||||
@@ -71,12 +70,9 @@ AS_VAR_IF([enable_module_font], [yes], [ACLOVE_DEP_FREETYPE2], [])
|
|||||||
AS_VAR_IF([enable_module_sound], [yes], [
|
AS_VAR_IF([enable_module_sound], [yes], [
|
||||||
ACLOVE_DEP_LIBMODPLUG
|
ACLOVE_DEP_LIBMODPLUG
|
||||||
ACLOVE_DEP_VORBISFILE
|
ACLOVE_DEP_VORBISFILE
|
||||||
], [enable_mpg123=no])
|
], [])
|
||||||
AS_VAR_IF([enable_module_video], [yes], [ACLOVE_DEP_THEORA], [])
|
AS_VAR_IF([enable_module_video], [yes], [ACLOVE_DEP_THEORA], [])
|
||||||
AS_VAR_IF([enable_gme], [yes], [ACLOVE_DEP_GME], [])
|
AS_VAR_IF([enable_gme], [yes], [ACLOVE_DEP_GME], [])
|
||||||
AS_VAR_IF([enable_mpg123], [no],
|
|
||||||
AC_DEFINE([LOVE_NOMPG123], [], [Build without mpg123]),
|
|
||||||
[ACLOVE_DEP_MPG123])
|
|
||||||
|
|
||||||
# Add flags for optional libraries
|
# Add flags for optional libraries
|
||||||
AC_ARG_ENABLE([library-enet], [ --disable-library-enet Turn off library enet], [], [enable_library_enet=yes])
|
AC_ARG_ENABLE([library-enet], [ --disable-library-enet Turn off library enet], [], [enable_library_enet=yes])
|
||||||
@@ -117,7 +113,6 @@ AS_VAR_IF([enable_exe], [no], [], #else
|
|||||||
AC_DEFINE([LOVE_BUILD_EXE], [], [Skip building launcher]))
|
AC_DEFINE([LOVE_BUILD_EXE], [], [Skip building launcher]))
|
||||||
|
|
||||||
AM_CONDITIONAL([LOVE_BUILD_EXE], [test "x$enable_exe" != xno])
|
AM_CONDITIONAL([LOVE_BUILD_EXE], [test "x$enable_exe" != xno])
|
||||||
AM_CONDITIONAL([LOVE_NOMPG123], [test "x$enable_mpg123" = xno])
|
|
||||||
AM_CONDITIONAL([LOVE_TARGET_OSX], [test "x$enable_osx" != xno])
|
AM_CONDITIONAL([LOVE_TARGET_OSX], [test "x$enable_osx" != xno])
|
||||||
|
|
||||||
# Automatic script file rebuilding
|
# Automatic script file rebuilding
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ Build-Depends: debhelper (>= 9),
|
|||||||
luajit,
|
luajit,
|
||||||
libluajit-5.1-dev,
|
libluajit-5.1-dev,
|
||||||
libmodplug-dev,
|
libmodplug-dev,
|
||||||
libmpg123-dev,
|
|
||||||
libopenal-dev,
|
libopenal-dev,
|
||||||
libphysfs-dev,
|
libphysfs-dev,
|
||||||
libsdl2-dev (>= 2.0.1),
|
libsdl2-dev (>= 2.0.1),
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
\./libraries/luasocket/libluasocket/wsocket.*
|
\./libraries/luasocket/libluasocket/wsocket.*
|
||||||
\./love\.cpp
|
\./love\.cpp
|
||||||
\./modules/sound/lullaby/Mpg123Decoder\.cpp
|
|
||||||
\./modules/sound/lullaby/Mpg123Decoder\.h
|
|
||||||
\./libraries/glslang/glslang/OSDependent/Windows
|
\./libraries/glslang/glslang/OSDependent/Windows
|
||||||
|
|||||||
@@ -45,14 +45,6 @@ genmodules()
|
|||||||
printf "${FILES:0:${#FILES}-2}\n\n"
|
printf "${FILES:0:${#FILES}-2}\n\n"
|
||||||
modulelist+=("$module")
|
modulelist+=("$module")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$module" = "sound" ]]; then
|
|
||||||
printf "if !LOVE_NOMPG123\n"
|
|
||||||
printf "liblove_module_$module += \\\\\n"
|
|
||||||
printf "\t./modules/sound/lullaby/Mpg123Decoder.cpp \\\\\n"
|
|
||||||
printf "\t./modules/sound/lullaby/Mpg123Decoder.h\n"
|
|
||||||
printf "endif\n\n"
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
cd ../libraries
|
cd ../libraries
|
||||||
|
|||||||
Reference in New Issue
Block a user