-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
add ios-cmake toolchain #1137
add ios-cmake toolchain #1137
Conversation
This toolchain file is mature, well tested, and has plenty of users It builds for all iOS platofrms, and can, theoritical also for conan build FAT binaries
Some configurations of 'ios-cmake/3.1.2' failed in build 1 (
|
I get much more errors from the conan hooks , but do not know how to solve them, |
Some configurations of 'ios-cmake/3.1.2' failed in build 2 (
|
The reported errors: The url points to this link, and I have no idea what I could put into the test folder I get much more errors from the hooks , but do not know how to solve all of those, |
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.
self.settings.os
and self.options.ios_target
might clash.
Some additional logic in configure()
should fix this.
Just create a small test project that only builds when the os is an apple product.
I think my suggestions will fix some of these. I don't have a mac, so I could not test.
I agree, it lowers the bar for ios developers to use cmake and conan. |
yes, it is possible to put in combinations that make not sense, like tvOS with an arch that does not exist on TV. t |
Some configurations of 'ios-cmake/3.1.2' failed in build 3 (
|
Co-Authored-By: Anonymous Maarten <[email protected]>
Some configurations of 'ios-cmake/3.1.2' failed in build 4 (
|
I wonder if it's still needed, as CMake provides native iOS support? |
yes, and that is respected by the tool chain file. if you go with a cmake > 3.14 but even if you want to go the native way, you would need an extra toolchain file, or a super complex wrapper adding lots of -D... to cmake |
Some configurations of 'ios-cmake/3.1.2' failed in build 5 (
|
The hooks are complaining about the |
Some configurations of 'ios-cmake/3.1.2' failed in build 6 (
|
thanks for the tip with the test package, added one now my next hook locally failing is
how to address these ? I know it is not exactly a header only package, but it is for whatever iOS config, so what is it? |
All green in build 16 (
|
An unexpected error happened and has been reported. Help is on its way! 🏇 |
All green in build 18 (
|
@uilianries , can you please check, I think I either changed, or commented on all change request, and I do not know what is open. I think the actual point was solved in the comments, so there should not be any change request open |
# satisfy KB-H014 (header_only recipes require headers) | ||
tools.save(os.path.join(self.package_folder, "include", "dummy_header.h"), "\n") |
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.
# satisfy KB-H014 (header_only recipes require headers) | |
tools.save(os.path.join(self.package_folder, "include", "dummy_header.h"), "\n") |
You can remove it, this recipe is an exception, so we can add a rule in hooks to skip your package there.
target_version = self.settings.os.version | ||
else: | ||
#hackingtosh ? hu | ||
raise ConanInvalidConfiguration("Building for iOS on a non Mac platform? Please tell me how!") |
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.
raise ConanInvalidConfiguration("Building for iOS on a non Mac platform? Please tell me how!") | |
raise ConanInvalidConfiguration("Building for iOS on a non Mac platform? Open an issue.") |
Nice comment, just try to point to the correct place.
@uilianries , do you think I should stop caring about the old way of cross compiling? |
@a4z Yes, the build context is the new way. As you can see, is much easier solve old limitations. |
awesome, because this means I can also open a PR for the android ndk :-) I will make an additional iteration over the recipe and remove the backward 1 profile os_build/os_arch branch , should be possible for me to do this week |
Great! |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I am against that ! |
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.
LGTM
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.
prince-chrismc/conan-center-index-pending-review#1
First success story!
🚀
There are some editorials for a follow up PR 👍
ios-toolchain/3.1.2
conan-center hook activated.
This toolchain file is mature, tested, and has plenty of users
It builds for all iOS platforms, and can (theoretical also for conan) build FAT binaries