Better environment detection for GME and MPT decoders.

This commit is contained in:
casey langen 2022-12-30 14:56:02 -08:00
parent 015c714b14
commit 0abdac4f65
2 changed files with 4 additions and 3 deletions

View File

@ -6,9 +6,9 @@ set (gmedecoder_SOURCES
)
add_definitions(-DHAVE_STDINT_H)
add_library(gmedecoder SHARED ${gmedecoder_SOURCES})
if (${BUILD_STANDALONE} MATCHES "true")
add_library(gmedecoder SHARED ${gmedecoder_SOURCES})
add_vendor_includes(gmedecoder)
find_vendor_library(GME gme)
target_link_libraries(gmedecoder ${GME})
@ -17,6 +17,7 @@ else()
if ("${GME}" STREQUAL "GME-NOTFOUND")
disable_plugin(gmedecoder)
else()
add_library(gmedecoder SHARED ${gmedecoder_SOURCES})
target_link_libraries(gmedecoder ${GME})
endif()
endif()

View File

@ -5,9 +5,8 @@ set (openmptdecoder_SOURCES
OpenMptIndexerSource.cpp
Utility.cpp)
add_library(openmptdecoder SHARED ${openmptdecoder_SOURCES})
if (${BUILD_STANDALONE} MATCHES "true")
add_library(openmptdecoder SHARED ${openmptdecoder_SOURCES})
target_include_directories(openmptdecoder BEFORE PRIVATE ${VENDOR_INCLUDE_DIRECTORIES})
find_vendor_library(LIBOPENMPT openmpt)
target_link_libraries(openmptdecoder ${LIBOPENMPT})
@ -18,6 +17,7 @@ else()
if ("${LIBOPENMPT}" STREQUAL "LIBOPENMPT-NOTFOUND")
disable_plugin(openmptdecoder)
else()
add_library(openmptdecoder SHARED ${openmptdecoder_SOURCES})
target_link_libraries(openmptdecoder ${LIBOPENMPT} ${LIBMPG123} ${LIBZ})
endif()
endif()