2020-07-10 03:40:15 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO MyGUI/mygui
|
2023-09-29 14:25:29 +08:00
|
|
|
REF MyGUI${VERSION}
|
2023-11-15 09:09:28 +08:00
|
|
|
SHA512 88c69ca2e706af364b72d425f95013eb285501881d8094f8d67e31a54c45ca11b0eb5b62c382af0d4c43f69aa8197648259ac306b72efa7ef3e25eecb9b039cb
|
2020-07-10 03:40:15 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
fix-generation.patch
|
2022-06-17 06:23:28 +08:00
|
|
|
Install-tools.patch
|
2023-09-29 14:25:29 +08:00
|
|
|
opengl.patch
|
|
|
|
sdl2-static.patch
|
2024-04-25 21:20:33 +08:00
|
|
|
fix-tools-lnk2005.patch
|
2024-10-31 17:38:52 +08:00
|
|
|
platform-lib-static.patch
|
2020-07-10 03:40:15 +08:00
|
|
|
)
|
|
|
|
|
2023-09-29 14:25:29 +08:00
|
|
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "wasm32")
|
|
|
|
message(STATUS "Setting MYGUI_RENDERSYSTEM to 8 (GLES) - officially supported MyGUI render system for wasm32")
|
|
|
|
set(MYGUI_RENDERSYSTEM 8)
|
|
|
|
elseif("opengl" IN_LIST FEATURES)
|
2020-07-10 03:40:15 +08:00
|
|
|
set(MYGUI_RENDERSYSTEM 4)
|
|
|
|
else()
|
|
|
|
set(MYGUI_RENDERSYSTEM 1)
|
|
|
|
endif()
|
|
|
|
|
2022-06-17 06:23:28 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
2024-11-01 15:14:51 +08:00
|
|
|
plugins MYGUI_BUILD_PLUGINS
|
2022-06-17 06:23:28 +08:00
|
|
|
tools MYGUI_BUILD_TOOLS
|
2024-11-01 15:14:51 +08:00
|
|
|
INVERTED_FEATURES
|
|
|
|
obsolete MYGUI_DONT_USE_OBSOLETE
|
|
|
|
plugins MYGUI_DISABLE_PLUGINS
|
2022-06-17 06:23:28 +08:00
|
|
|
)
|
|
|
|
|
2024-10-31 17:38:52 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" MYGUI_STATIC)
|
|
|
|
|
2021-12-15 02:47:59 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-07-10 03:40:15 +08:00
|
|
|
OPTIONS
|
2024-10-31 17:38:52 +08:00
|
|
|
-DMYGUI_STATIC=${MYGUI_STATIC}
|
2020-07-10 03:40:15 +08:00
|
|
|
-DMYGUI_BUILD_DEMOS=FALSE
|
|
|
|
-DMYGUI_BUILD_UNITTESTS=FALSE
|
|
|
|
-DMYGUI_BUILD_TEST_APP=FALSE
|
|
|
|
-DMYGUI_BUILD_WRAPPER=FALSE
|
|
|
|
-DMYGUI_BUILD_DOCS=FALSE
|
|
|
|
-DMYGUI_RENDERSYSTEM=${MYGUI_RENDERSYSTEM}
|
2022-06-17 06:23:28 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2020-07-10 03:40:15 +08:00
|
|
|
)
|
|
|
|
|
2021-12-15 02:47:59 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-07-10 03:40:15 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
2021-12-15 02:47:59 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
2020-07-10 03:40:15 +08:00
|
|
|
)
|
|
|
|
|
2022-01-06 12:21:18 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2024-10-31 17:38:52 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2022-01-06 12:21:18 +08:00
|
|
|
|
2022-06-17 06:23:28 +08:00
|
|
|
if("tools" IN_LIST FEATURES)
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES FontEditor ImageEditor LayoutEditor SkinEditor AUTO_CLEAN)
|
|
|
|
endif()
|
|
|
|
|
2020-07-10 03:40:15 +08:00
|
|
|
# Handle copyright
|
2021-12-15 02:47:59 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING.MIT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|