Skip to content

Commit

Permalink
[gl3w] migrate to new functions from vcpkg-cmake{,-config}
Browse files Browse the repository at this point in the history
  • Loading branch information
cfillion committed Dec 17, 2021
1 parent 669d6c2 commit a73d474
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
7 changes: 3 additions & 4 deletions ports/gl3w/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ vcpkg_execute_required_process(
LOGNAME gl3w-gen
)

vcpkg_configure_cmake(
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
)

vcpkg_install_cmake()
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_fixup_cmake_targets()
vcpkg_cmake_config_fixup()

if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/GL/gl3w.h" "#define GL3W_API" "#define GL3W_API __declspec(dllimport)")
Expand Down
10 changes: 9 additions & 1 deletion ports/gl3w/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
"homepage": "https://github.com/skaslev/gl3w",
"dependencies": [
"egl-registry",
"opengl-registry"
"opengl-registry",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

0 comments on commit a73d474

Please sign in to comment.