-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wil: recipe added #16701
wil: recipe added #16701
Conversation
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Make sure to comment in #4 for access |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Chris Mc <[email protected]>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Conan v1 pipeline ✔️All green in build 23 (
Conan v2 pipeline (informative, not required for merge) ✔️
All green in build 22 (
|
* wil recipe added * fix test_package * added _min_cpp to the recipe * fixed layot * fixes * removed camke_module_file_name/cmake_module_target_name * added patch for type conversion * Update 1.0.230202.1-0001-fix-type-conversion.patch * Update recipes/wil/all/conanfile.py Co-authored-by: Chris Mc <[email protected]> * Update recipes/wil/all/test_package/CMakeLists.txt Co-authored-by: Chris Mc <[email protected]> * Update conanfile.py * fix patch type and added source * removed gcc and clang from _compilers_min_version * fixed test_package.cpp * changed type of patch to bugfix * fixup: patch type should be portability since it adds support for vs 2017 --------- Co-authored-by: Chris Mc <[email protected]>
def _compilers_minimum_version(self): | ||
return { | ||
"Visual Studio": "15", | ||
"msvc": "14.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this msvc value is incorrect, it should be 191
# About compiler version: https://github.com/microsoft/wil/issues/207#issuecomment-991722592 | ||
def export_sources(self): | ||
export_conandata_patches(self) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this comment is attached to export_sources?
# https://github.com/microsoft/wil/blob/56e3e5aa79234f8de3ceeeaf05b715b823bc2cca/CMakeLists.txt#L53 | ||
self.cpp_info.set_property("cmake_file_name", "WIL") | ||
self.cpp_info.set_property("cmake_target_name", "WIL::WIL") | ||
|
||
# TODO: to remove in conan v2 once cmake_find_package_* generators removed | ||
self.cpp_info.filenames["cmake_find_package"] = "WIL" | ||
self.cpp_info.filenames["cmake_find_package_multi"] = "WIL" | ||
self.cpp_info.names["cmake_find_package"] = "WIL" | ||
self.cpp_info.names["cmake_find_package_multi"] = "WIL" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I follow this link, I see that config file name is incorrect here, it should be lowercase:
self.cpp_info.set_property("cmake_file_name", "wil")
self.cpp_info.set_property("cmake_target_name", "WIL::WIL")
# TODO: to remove in conan v2 once cmake_find_package_* generators removed
self.cpp_info.filenames["cmake_find_package"] = "wil"
self.cpp_info.filenames["cmake_find_package_multi"] = "wil"
self.cpp_info.names["cmake_find_package"] = "WIL"
self.cpp_info.names["cmake_find_package_multi"] = "WIL"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I must have missed the _LOWER
when I was reading it 😞
review mistakes from #16701 (comment)
Good call outs #17021 👍 |
review mistakes from #16701 (comment)
Specify library name and version: wil/1.0.230202.1
It is a dependency of the onnxruntime library on Windows: #4806
I've managed to build onnxruntime/1.7.1 on windows from the above PR with this lib added.