mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 11:49:07 +08:00
848c8178ce
* [skia] Restore simple msvc toolchain fix
* libgifcodec is gone
* Update abseil-cpp
* Use vcpkg abseil-cpp
* Update wuffs
* Update dawn
* Update spirv deps
* Remove tint
* Update vulkan-tools
* versions
* Drop obsolete patch
* Use github directly
* Revert "Use vcpkg abseil-cpp"
This reverts commit 9b4157c980
.
* Fix dawn
* Build, install, export modules
* Unroll default-features
* Fix comments
* Fix skresources
* Fix manifest
* WIP
* WIP
* Pass-through lib dirs
* Filter link libs
* WIP
* WIP
* Add feature 'modules'
* Fix SkDebugf visibility
* WIP
* WIP
* Rewrite gn install and export
* No pdb for release
* Omit explicit ouput check
* Update modules config
* Disable skparagraph DLL, no dllexport
* Disable icu on shared windows
* Cleanup
* Cleanup
* Enable android CI
* Android
* Don't export standard libraries
* Disable FontConfigInterface on windows
38 lines
1.5 KiB
CMake
38 lines
1.5 KiB
CMake
if(NOT COMMAND z_vcpkg_@PORT@_get_link_libraries)
|
|
function(z_vcpkg_@PORT@_get_link_libraries out_var type libraries)
|
|
set(libs "")
|
|
if(type STREQUAL "DEBUG")
|
|
set(path "${z_vcpkg_@PORT@_root}/debug/lib" "${z_vcpkg_@PORT@_root}/lib")
|
|
else()
|
|
set(path "${z_vcpkg_@PORT@_root}/lib" "${z_vcpkg_@PORT@_root}/debug/lib")
|
|
endif()
|
|
foreach(lib IN LISTS libraries)
|
|
if(lib MATCHES [[^/|^(dl|m|pthread)$|^-framework ]])
|
|
list(APPEND libs "${lib}")
|
|
else()
|
|
string(MAKE_C_IDENTIFIER "${out_var}_${lib}_${type}" lib_var)
|
|
find_library("${lib_var}" NAMES "${lib}" NAMES_PER_DIR PATH "${path}")
|
|
mark_as_advanced("${lib_var}")
|
|
if(${lib_var})
|
|
list(APPEND libs "${${lib_var}}")
|
|
else()
|
|
message(WARNING "Omitting '${lib}' from link libraries.")
|
|
endif()
|
|
endif()
|
|
endforeach()
|
|
set("${out_var}" "${libs}" PARENT_SCOPE)
|
|
endfunction()
|
|
endif()
|
|
|
|
get_filename_component(z_vcpkg_@PORT@_root "${CMAKE_CURRENT_LIST_DIR}" PATH)
|
|
get_filename_component(z_vcpkg_@PORT@_root "${z_vcpkg_@PORT@_root}" PATH)
|
|
|
|
file(GLOB z_vcpkg_@PORT@_config_files "${CMAKE_CURRENT_LIST_DIR}/unofficial-@PORT@-*-targets.cmake")
|
|
foreach(z_vcpkg_@PORT@_config_file IN LISTS z_vcpkg_@PORT@_config_files)
|
|
include("${z_vcpkg_@PORT@_config_file}")
|
|
endforeach()
|
|
|
|
unset(z_vcpkg_@PORT@_config_file)
|
|
unset(z_vcpkg_@PORT@_config_files)
|
|
unset(z_vcpkg_@PORT@_root)
|