Skip to content

Commit

Permalink
[tgui] fix absolute paths
Browse files Browse the repository at this point in the history
  • Loading branch information
autoantwort committed Feb 21, 2022
1 parent 5cf6018 commit 1d73d9a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
9 changes: 5 additions & 4 deletions ports/tgui/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,18 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
tool TGUI_BUILD_GUI_BUILDER
)

vcpkg_configure_cmake(
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
PREFER_NINJA
OPTIONS ${FEATURE_OPTIONS}
-DTGUI_MISC_INSTALL_PREFIX=${TGUI_SHARE_PATH}
-DTGUI_SHARED_LIBS=${TGUI_SHARED_LIBS}
-DTGUI_BACKEND=Custom
-DTGUI_BUILD_EXAMPLES=OFF
)

vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/TGUI)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/TGUI)
vcpkg_copy_pdbs()

if("tool" IN_LIST FEATURES)
Expand All @@ -60,5 +59,7 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/TGUI/extlibs/nanosvg" "${CU

file(RENAME "${CURRENT_PACKAGES_DIR}/share/doc" "${CURRENT_PACKAGES_DIR}/share/${PORT}/doc")

vcpkg_fixup_pkgconfig()

# Handle copyright
file(INSTALL "${SOURCE_PATH}/license.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
13 changes: 12 additions & 1 deletion ports/tgui/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
{
"name": "tgui",
"version-date": "2021-04-19",
"port-version": 2,
"port-version": 3,
"description": "TGUI is an easy to use, cross-platform, C++ GUI for SFML.",
"homepage": "https://tgui.eu",
"license": "Zlib",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"default-features": [
"sdl2",
"sfml"
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -6814,7 +6814,7 @@
},
"tgui": {
"baseline": "2021-04-19",
"port-version": 2
"port-version": 3
},
"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": "0fe7d561ea6d038584711e8581f6a5a72062c543",
"version-date": "2021-04-19",
"port-version": 3
},
{
"git-tree": "0fd517c4e738da62e959b791a6cdd952e7bd8345",
"version-date": "2021-04-19",
Expand Down

0 comments on commit 1d73d9a

Please sign in to comment.