46 lines
1.3 KiB
CMake
Executable File
46 lines
1.3 KiB
CMake
Executable File
# MyGUI supports compiling itself as a DLL,
|
|
# but it seems platform-related stuff doesn't support dynamic linkage
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO MyGUI/mygui
|
|
REF 81e5c67e92920607d16bc2aee1ac32f6fd7d446b #v3.4.1
|
|
SHA512 b13e0a08559b3ddfe42ffcc6cf017fb20d50168785fb551e16f613c60b9ea28a65056a9bc42bdab876368f40dcba1772bc704ad0928c45d8b32e909abc0f1916
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-generation.patch
|
|
)
|
|
|
|
if("opengl" IN_LIST FEATURES)
|
|
set(MYGUI_RENDERSYSTEM 4)
|
|
else()
|
|
set(MYGUI_RENDERSYSTEM 1)
|
|
endif()
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DMYGUI_STATIC=TRUE
|
|
-DMYGUI_BUILD_DEMOS=FALSE
|
|
-DMYGUI_BUILD_PLUGINS=TRUE
|
|
-DMYGUI_BUILD_TOOLS=FALSE
|
|
-DMYGUI_BUILD_UNITTESTS=FALSE
|
|
-DMYGUI_BUILD_TEST_APP=FALSE
|
|
-DMYGUI_BUILD_WRAPPER=FALSE
|
|
-DMYGUI_BUILD_DOCS=FALSE
|
|
-DMYGUI_RENDERSYSTEM=${MYGUI_RENDERSYSTEM}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
file(REMOVE_RECURSE
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
)
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
# Handle copyright
|
|
file(INSTALL "${SOURCE_PATH}/COPYING.MIT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|