Skip to content

Commit

Permalink
[bgfx]: add relative path to tools to template
Browse files Browse the repository at this point in the history
  • Loading branch information
bwrsandman committed May 19, 2024
1 parent a76c574 commit e6c2e4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions ports/bgfx/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,16 @@ vcpkg_cmake_configure(
-DBGFX_BUILD_EXAMPLES=OFF
-DBGFX_OPENGLES_VERSION=30
-DBGFX_CMAKE_USER_SCRIPT=vcpkg-inject-packages.cmake
-DVCPKG_HOST_TRIPLET=${HOST_TRIPLET}
# It's important to have `${CMAKE_CURRENT_SOURCE_DIR}` verbatim escaped in bgfxConfig.cmake
-DVCPKG_CURRENT_HOST_INSTALLED_DIR="\\\$\$\{CMAKE_CURRENT_SOURCE_DIR}/vcpkg/packages/${HOST_TRIPLET}/tools/bgfx"
${FEATURE_OPTIONS}
)

vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
vcpkg_copy_pdbs()

if ("tools" IN_LIST FEATURES)
if (BGFX_BUILD_TOOLS)
vcpkg_copy_tools(
TOOL_NAMES bin2c shaderc geometryc geometryv texturec texturev AUTO_CLEAN
)
Expand Down
2 changes: 1 addition & 1 deletion versions/b-/bgfx.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"versions": [
{
"git-tree": "4ba27008e0ff609c3462168edfe1ed0daa3e8d27",
"git-tree": "fd784a42081bcf6496634e4b6645a0d664508806",
"version": "1.127.8725-467",
"port-version": 0
},
Expand Down

0 comments on commit e6c2e4c

Please sign in to comment.