2022-12-27 16:43:27 +08:00
|
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/share/fluidsynth/copyright")
|
|
|
|
message(FATAL_ERROR "Can't build fluidlite if fluidsynth is installed. Please remove fluidsynth, and try to install fluidlite again if you need it.")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2020-08-26 05:41:41 +08:00
|
|
|
endif()
|
|
|
|
|
2020-08-22 06:48:38 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO divideconcept/FluidLite
|
2020-08-29 06:38:19 +08:00
|
|
|
REF fdd05bad03cdb24d1f78b5fe3453842890c1b0e8
|
|
|
|
SHA512 8118bec2cb5ee48b8064ed2111610f1917ee8e6f1dc213121b2311d056da21d7f618ef50735e7653d2cccf1e96652f3ccf026101fccb9863448008918add53e0
|
2020-08-22 06:48:38 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" FLUIDLITE_BUILD_STATIC)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" FLUIDLITE_BUILD_SHARED)
|
|
|
|
|
2022-12-27 16:43:27 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-08-22 06:48:38 +08:00
|
|
|
OPTIONS
|
|
|
|
-DFLUIDLITE_BUILD_STATIC=${FLUIDLITE_BUILD_STATIC}
|
|
|
|
-DFLUIDLITE_BUILD_SHARED=${FLUIDLITE_BUILD_SHARED}
|
|
|
|
)
|
|
|
|
|
2022-12-27 16:43:27 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2020-08-22 06:48:38 +08:00
|
|
|
|
2022-12-27 16:43:27 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2021-10-28 06:19:28 +08:00
|
|
|
|
2022-12-27 16:43:27 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|