Skip to content

Commit

Permalink
[tgui] Change the cmake feature flags (microsoft#36452)
Browse files Browse the repository at this point in the history
  • Loading branch information
nfarid authored and TomKatom committed Feb 23, 2024
1 parent 540b328 commit 7e86e41
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
8 changes: 3 additions & 5 deletions ports/tgui/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" TGUI_USE_STATIC_STD_LIBS)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
sdl2 TGUI_HAS_BACKEND_SDL
sfml TGUI_HAS_BACKEND_SFML
sdl2 TGUI_HAS_BACKEND_SDL_RENDERER
sfml TGUI_HAS_BACKEND_SFML_GRAPHICS
tool TGUI_BUILD_GUI_BUILDER
)

Expand All @@ -48,9 +48,7 @@ vcpkg_cmake_configure(
OPTIONS_DEBUG
-DTGUI_BUILD_GUI_BUILDER=OFF
MAYBE_UNUSED_VARIABLES
TGUI_BUILD_FRAMEWORK
TGUI_HAS_BACKEND_SDL
TGUI_HAS_BACKEND_SFML
TGUI_USE_STATIC_STD_LIBS
)

vcpkg_cmake_install()
Expand Down
2 changes: 1 addition & 1 deletion ports/tgui/usage
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tgui provides CMake targets:

find_package(TGUI CONFIG REQUIRED)
target_link_libraries(main PRIVATE tgui)
target_link_libraries(main PRIVATE TGUI::TGUI)
1 change: 1 addition & 0 deletions ports/tgui/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "tgui",
"version": "1.1.0",
"port-version": 1,
"description": "TGUI is an easy to use, cross-platform, C++ GUI for SFML.",
"homepage": "https://tgui.eu",
"license": "Zlib",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -8462,7 +8462,7 @@
},
"tgui": {
"baseline": "1.1.0",
"port-version": 0
"port-version": 1
},
"theia": {
"baseline": "0.8",
Expand Down
5 changes: 5 additions & 0 deletions versions/t-/tgui.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "3c00844f3560bff9d3e31acc247cfddd5edba024",
"version": "1.1.0",
"port-version": 1
},
{
"git-tree": "dd583943a94fda26c0fe58b498ebc8675af7e831",
"version": "1.1.0",
Expand Down

0 comments on commit 7e86e41

Please sign in to comment.