mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 11:41:36 +08:00
[tgui] Enable static build (#5568)
* [tgui] Enable static build * [tgui] Enable static build
This commit is contained in:
parent
ed98d74199
commit
2e8c0ca34d
@ -1,4 +1,4 @@
|
|||||||
Source: tgui
|
Source: tgui
|
||||||
Version: 0.8.4
|
Version: 0.8.4-1
|
||||||
Description: TGUI is an easy to use, cross-platform, c++ GUI for SFML.
|
Description: TGUI is an easy to use, cross-platform, c++ GUI for SFML.
|
||||||
Build-Depends: sfml
|
Build-Depends: sfml
|
||||||
|
@ -11,12 +11,17 @@ vcpkg_extract_source_archive_ex(
|
|||||||
ARCHIVE ${ARCHIVE}
|
ARCHIVE ${ARCHIVE}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Enable static build
|
||||||
|
file(REMOVE ${SOURCE_PATH}/cmake/Modules/FindSFML.cmake)
|
||||||
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" TGUI_SHARED_LIBS)
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${SOURCE_PATH}
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
PREFER_NINJA # Disable this option if project cannot be built with Ninja
|
PREFER_NINJA # Disable this option if project cannot be built with Ninja
|
||||||
OPTIONS
|
OPTIONS
|
||||||
-DTGUI_BUILD_GUI_BUILDER=OFF
|
-DTGUI_BUILD_GUI_BUILDER=OFF
|
||||||
-DTGUI_MISC_INSTALL_PREFIX=${CURRENT_PACKAGES_DIR}/share/tgui
|
-DTGUI_MISC_INSTALL_PREFIX=${CURRENT_PACKAGES_DIR}/share/tgui
|
||||||
|
-DTGUI_SHARED_LIBS=${TGUI_SHARED_LIBS}
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_install_cmake()
|
vcpkg_install_cmake()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user